libserf-vl.spec 3.0 KB

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