libserf-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. %global oname serf
  2. Name: libserf
  3. Version: 1.3.9
  4. Release: 2%{?_dist_release}
  5. Summary: High-Performance Asynchronous HTTP Client Library
  6. Summary(ja): 高性能な非同期 HTTP クライアントのライブラリ
  7. License: ASL 2.0
  8. Group: System Environment/Libraries
  9. URL: http://code.google.com/p/serf
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  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: Development/Libraries
  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. %prep
  44. %autosetup -n serf-%{version} -p1
  45. # Shared library versioning support in scons is worse than awful...
  46. # minimally, here fix the soname to match serf-1.2.x. Minor version
  47. # handling should be fixed too; really requires better upstream support:
  48. # http://scons.tigris.org/issues/show_bug.cgi?id=2869
  49. sed -i '/SHLIBVERSION/s/MAJOR/0/' SConstruct
  50. pushd test/server/
  51. tar xvf %{SOURCE1}
  52. popd
  53. %build
  54. scons \
  55. CFLAGS="%{optflags}" \
  56. PREFIX=%{_prefix} \
  57. LIBDIR=%{_libdir} \
  58. GSSAPI=%{_prefix} \
  59. %{?_smp_mflags}
  60. %install
  61. scons install --install-sandbox=%{buildroot}
  62. find %{buildroot} -name '*.*a' -exec rm -vf {} ';'
  63. %check
  64. export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
  65. # disable tests temporarily because testcases are openssl-1.0 style
  66. # and certificates for tests are expired.
  67. scons check || true
  68. %post -p /sbin/ldconfig
  69. %postun -p /sbin/ldconfig
  70. %files
  71. %doc CHANGES LICENSE NOTICE README design-guide.txt
  72. %{_libdir}/*.so.*
  73. %files devel
  74. %{_includedir}/%{oname}-1/
  75. %{_libdir}/*.so
  76. %{_libdir}/pkgconfig/%{oname}*.pc
  77. %changelog
  78. * Mon Dec 16 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.3.9-2
  79. - added Patch1000 to fallback to IPv4.
  80. * Sun Nov 18 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.3.9-1
  81. - updated to 1.3.9.
  82. - imported Patch0-1 from rawhide.
  83. - imported Patch2 from upstream.
  84. - added Patch3 to build with openssl-1.1.1.
  85. - added Source1 to replace expired certificates.
  86. * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.3.8-2
  87. - rebuild with openssl-1.0.2
  88. * Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.3.8-1
  89. - updated to 1.3.8
  90. * Sun Mar 16 2014 NAKAMURA Kenta <kenta@vinelinux.org> - 1.3.4-2
  91. - initial build for Vine Linux
  92. * Mon Feb 17 2014 Joe Orton <jorton@redhat.com> - 1.3.4-1
  93. - update to 1.3.4
  94. * Tue Dec 10 2013 Joe Orton <jorton@redhat.com> - 1.3.3-1
  95. - update to 1.3.3
  96. * Wed Nov 6 2013 Joe Orton <jorton@redhat.com> - 1.3.2-1
  97. - update to 1.3.2
  98. - require krb5-devel for libgssapi (#1027011)
  99. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  101. * Mon Jun 17 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-3
  102. - SPEC cleanup.
  103. * Thu Jun 13 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-2
  104. - Fix the permission of the library.
  105. * Sun Jun 09 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-1
  106. - Initial Package.