3 %bcond_without kerberos5 # GSSAPI support
4 %bcond_with tests # perform "scons check" (uses localhost network, fails on apr side when IPV6 is enabled and localhost resolves only to IPV4 addresses)
6 Summary: A high-performance asynchronous HTTP client library
7 Summary(pl.UTF-8): Wysokowydajna biblioteka asynchronicznego klienta HTTP
13 Source0: https://www.apache.org/dist/serf/%{name}-%{version}.tar.bz2
14 # Source0-md5: 370a6340ff20366ab088012cd13f2b57
15 Patch0: %{name}-scons.patch
16 Patch1: openssl3.patch
17 Patch2: bio-ctrl.patch
19 URL: https://serf.apache.org/
20 BuildRequires: apr-devel
21 BuildRequires: apr-util-devel
22 %{?with_kerberos5:BuildRequires: heimdal-devel}
23 BuildRequires: openssl-devel >= 0.9.7d
24 BuildRequires: scons >= 2.3.0
25 BuildRequires: zlib-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 The serf library is a C-based HTTP client library built upon the
30 Apache Portable Runtime (APR) library. It multiplexes connections,
31 running the read/write communication asynchronously. Memory copies and
32 transformations are kept to a minimum to provide high performance
35 %description -l pl.UTF-8
36 Biblioteka serf to napisana w C biblioteka klienta HTTP stworzona w
37 oparciu o bibliotekę Apache Portable Runtime (APR). Obsługuje
38 połączenia naprzemiennie, wywołując asynchronicznie komunikację
39 odczyt-zapis. Kopiowanie i transformacje w pamięci są ograniczone do
40 minimum w celu zapewnienia wydajnego działania.
43 Summary: Header files for serf
44 Summary(pl.UTF-8): Pliki nagłówkowe serf
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
48 Requires: apr-util-devel
49 %{?with_kerberos5:Requires: heimdal-devel}
50 Requires: openssl-devel >= 0.9.7d
53 C header files for the serf library.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe dla biblioteki serf.
59 Summary: Static libraries for serf
60 Summary(pl.UTF-8): Biblioteki statyczne serf
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 Static serf libraries.
67 %description static -l pl.UTF-8
68 Statyczne biblioteki serf.
88 rm -rf $RPM_BUILD_ROOT
93 --install-sandbox=$RPM_BUILD_ROOT
96 rm -rf $RPM_BUILD_ROOT
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
102 %defattr(644,root,root,755)
103 %doc CHANGES NOTICE README
104 %attr(755,root,root) %{_libdir}/libserf-1.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libserf-1.so.1
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/libserf-1.so
110 %{_includedir}/serf-1
111 %{_pkgconfigdir}/serf-1.pc
114 %defattr(644,root,root,755)
115 %{_libdir}/libserf-1.a