source: projects/specs/trunk/lib/libs/libserf/libserf-vl.spec @ 11918

Revision 11918, 3.8 KB checked in by tomop, 5 years ago (diff)

libserf-1.3.9-1

Line 
1%global oname   serf
2
3Name:           libserf
4Version:        1.3.9
5Release:        1%{?_dist_release}
6Summary:        High-Performance Asynchronous HTTP Client Library
7Summary(ja):    高性能な非同期 HTTP クライアントのライブラリ
8License:        ASL 2.0
9Group:          System Environment/Libraries
10URL:            http://code.google.com/p/serf
11
12Vendor:         Project Vine
13Distribution:   Vine Linux
14
15Source0:        https://serf.googlecode.com/files/serf-%{version}.tar.bz2
16Source1:        libserf-certs.tar.xz
17Patch0:         %{name}-norpath.patch
18Patch1:         %{name}-python3.patch
19Patch2:         r1712790-serf_bucket_aggregate_prepend-empty-list.patch
20Patch3:         %{name}-1.3.9-openssl111.patch
21
22BuildRoot:      %{_tmppath}/%{name}-%{version}-root
23BuildRequires:  apr-devel
24BuildRequires:  apr-util-devel
25BuildRequires:  krb5-devel
26BuildRequires:  openssl-devel
27BuildRequires:  pkgconfig
28BuildRequires:  scons
29BuildRequires:  zlib-devel
30
31%description
32The serf library is a C-based HTTP client library built upon the Apache
33Portable Runtime (APR) library. It multiplexes connections, running the
34read/write communication asynchronously. Memory copies and transformations are
35kept to a minimum to provide high performance operation.
36
37%package        devel
38Summary:        Development files for %{name}
39Summary(ja):    %{name} の開発用ファイル群
40Group:          Development/Libraries
41Requires:       %{name}%{?_isa} = %{version}-%{release}
42Requires:       apr-devel%{?_isa}
43
44%description    devel
45The %{name}-devel package contains libraries and header files for
46developing applications that use %{name}.
47
48%prep
49%autosetup -n serf-%{version} -p1
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
55sed -i '/SHLIBVERSION/s/MAJOR/0/' SConstruct
56
57pushd test/server/
58tar xvf %{SOURCE1}
59popd
60
61%build
62scons \
63      CFLAGS="%{optflags}" \
64      PREFIX=%{_prefix} \
65      LIBDIR=%{_libdir} \
66      GSSAPI=%{_prefix} \
67      %{?_smp_mflags}
68
69%install
70scons install --install-sandbox=%{buildroot}
71find %{buildroot} -name '*.*a' -exec rm -vf {} ';'
72
73%check
74export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
75# disable tests temporarily because testcases are openssl-1.0 style
76# and certificates for tests are expired.
77
78scons check || true
79
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
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
101* Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.3.8-2
102- rebuild with openssl-1.0.2
103
104* Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.3.8-1
105- updated to 1.3.8
106
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.
Note: See TracBrowser for help on using the repository browser.