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