libserf-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. %global oname serf
  2. Name: libserf
  3. Version: 1.3.9
  4. Release: 3%{?_dist_release}
  5. Summary: High-Performance Asynchronous HTTP Client Library
  6. Summary(ja): 高性能な非同期 HTTP クライアントのライブラリ
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: ASL 2.0
  11. URL: http://code.google.com/p/serf
  12. Source0: https://serf.googlecode.com/files/serf-%{version}.tar.bz2
  13. Source1: libserf-certs.tar.xz
  14. Patch0: %{name}-norpath.patch
  15. Patch1: %{name}-python3.patch
  16. Patch2: r1712790-serf_bucket_aggregate_prepend-empty-list.patch
  17. Patch3: %{name}-1.3.9-openssl111.patch
  18. # fallback to IPv4
  19. # https://issues.apache.org/jira/browse/SERF-190
  20. Patch1000: serf_v6fallback.patch
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildRequires: apr-devel
  23. BuildRequires: apr-util-devel
  24. BuildRequires: krb5-devel
  25. BuildRequires: openssl-devel
  26. BuildRequires: pkgconfig
  27. BuildRequires: scons
  28. BuildRequires: zlib-devel
  29. %description
  30. The serf library is a C-based HTTP client library built upon the Apache
  31. Portable Runtime (APR) library. It multiplexes connections, running the
  32. read/write communication asynchronously. Memory copies and transformations are
  33. kept to a minimum to provide high performance operation.
  34. %package devel
  35. Summary: Development files for %{name}
  36. Summary(ja): %{name} の開発用ファイル群
  37. Group: programming
  38. Requires: %{name}%{?_isa} = %{version}-%{release}
  39. Requires: apr-devel%{?_isa}
  40. %description devel
  41. The %{name}-devel package contains libraries and header files for
  42. developing applications that use %{name}.
  43. %debug_package
  44. %prep
  45. %autosetup -n serf-%{version} -p1
  46. # Shared library versioning support in scons is worse than awful...
  47. # minimally, here fix the soname to match serf-1.2.x. Minor version
  48. # handling should be fixed too; really requires better upstream support:
  49. # http://scons.tigris.org/issues/show_bug.cgi?id=2869
  50. sed -i '/SHLIBVERSION/s/MAJOR/0/' SConstruct
  51. pushd test/server/
  52. tar xvf %{SOURCE1}
  53. popd
  54. %build
  55. scons \
  56. CFLAGS="%{build_cflags}" \
  57. LINKFLAGS="%{build_ldflags}" \
  58. PREFIX=%{_prefix} \
  59. LIBDIR=%{_libdir} \
  60. GSSAPI=%{_prefix} \
  61. %{?_smp_mflags}
  62. %install
  63. scons install --install-sandbox=%{buildroot}
  64. find %{buildroot} -name '*.*a' -exec rm -vf {} ';'
  65. %check
  66. export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
  67. # disable tests temporarily because testcases are openssl-1.0 style
  68. # and certificates for tests are expired.
  69. scons check || true
  70. %files
  71. %license LICENSE NOTICE
  72. %doc CHANGES README design-guide.txt
  73. %{_libdir}/*.so.*
  74. %files devel
  75. %{_includedir}/%{oname}-1/
  76. %{_libdir}/*.so
  77. %{_libdir}/pkgconfig/%{oname}*.pc
  78. %changelog
  79. * Fri Mar 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.3.9-3
  80. - dropped scriptlets.
  81. * Mon Dec 16 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.3.9-2
  82. - added Patch1000 to fallback to IPv4.
  83. * Sun Nov 18 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.3.9-1
  84. - updated to 1.3.9.
  85. - imported Patch0-1 from rawhide.
  86. - imported Patch2 from upstream.
  87. - added Patch3 to build with openssl-1.1.1.
  88. - added Source1 to replace expired certificates.
  89. * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.3.8-2
  90. - rebuild with openssl-1.0.2
  91. * Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.3.8-1
  92. - updated to 1.3.8
  93. * Sun Mar 16 2014 NAKAMURA Kenta <kenta@vinelinux.org> - 1.3.4-2
  94. - initial build for Vine Linux
  95. * Mon Feb 17 2014 Joe Orton <jorton@redhat.com> - 1.3.4-1
  96. - update to 1.3.4
  97. * Tue Dec 10 2013 Joe Orton <jorton@redhat.com> - 1.3.3-1
  98. - update to 1.3.3
  99. * Wed Nov 6 2013 Joe Orton <jorton@redhat.com> - 1.3.2-1
  100. - update to 1.3.2
  101. - require krb5-devel for libgssapi (#1027011)
  102. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
  103. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  104. * Mon Jun 17 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-3
  105. - SPEC cleanup.
  106. * Thu Jun 13 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-2
  107. - Fix the permission of the library.
  108. * Sun Jun 09 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-1
  109. - Initial Package.