libserf-vl.spec 3.8 KB

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