]> git.pld-linux.org Git - packages/serf.git/blame - serf.spec
- rebuild with openssl 3.0.0, rel 3
[packages/serf.git] / serf.spec
CommitLineData
c72b12a8
JB
1#
2# Conditional build:
2a71e6bd 3%bcond_without kerberos5 # GSSAPI support
8e37a909 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)
6726a0a8
AM
5#
6Summary: A high-performance asynchronous HTTP client library
c72b12a8 7Summary(pl.UTF-8): Wysokowydajna biblioteka asynchronicznego klienta HTTP
6726a0a8 8Name: serf
01a898a2 9Version: 1.3.9
6d8d61ae 10Release: 3
e302ecef 11License: Apache v2.0
6726a0a8 12Group: Libraries
01a898a2
JP
13Source0: https://www.apache.org/dist/serf/%{name}-%{version}.tar.bz2
14# Source0-md5: 370a6340ff20366ab088012cd13f2b57
8e37a909 15Patch0: %{name}-scons.patch
6d8d61ae 16Patch1: openssl3.patch
01a898a2 17URL: https://serf.apache.org/
6726a0a8
AM
18BuildRequires: apr-devel
19BuildRequires: apr-util-devel
2a71e6bd 20%{?with_kerberos5:BuildRequires: heimdal-devel}
6726a0a8 21BuildRequires: openssl-devel >= 0.9.7d
8e37a909 22BuildRequires: scons >= 2.3.0
c415bf16 23BuildRequires: zlib-devel
6726a0a8
AM
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27The serf library is a C-based HTTP client library built upon the
28Apache Portable Runtime (APR) library. It multiplexes connections,
29running the read/write communication asynchronously. Memory copies and
30transformations are kept to a minimum to provide high performance
31operation.
32
c72b12a8
JB
33%description -l pl.UTF-8
34Biblioteka serf to napisana w C biblioteka klienta HTTP stworzona w
35oparciu o bibliotekę Apache Portable Runtime (APR). Obsługuje
36połączenia naprzemiennie, wywołując asynchronicznie komunikację
37odczyt-zapis. Kopiowanie i transformacje w pamięci są ograniczone do
38minimum w celu zapewnienia wydajnego działania.
39
6726a0a8
AM
40%package devel
41Summary: Header files for serf
42Summary(pl.UTF-8): Pliki nagłówkowe serf
43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
45Requires: apr-devel
e302ecef 46Requires: apr-util-devel
2a71e6bd 47%{?with_kerberos5:Requires: heimdal-devel}
8e37a909 48Requires: openssl-devel >= 0.9.7d
6726a0a8
AM
49
50%description devel
51C header files for the serf library.
52
53%description devel -l pl.UTF-8
54Pliki nagłówkowe dla biblioteki serf.
55
56%package static
57Summary: Static libraries for serf
58Summary(pl.UTF-8): Biblioteki statyczne serf
59Group: Development/Libraries
60Requires: %{name}-devel = %{version}-%{release}
61
62%description static
63Static serf libraries.
64
65%description static -l pl.UTF-8
66Statyczne biblioteki serf.
67
68%prep
69%setup -q
e302ecef 70%patch0 -p1
6d8d61ae 71%patch1 -p1
6726a0a8
AM
72
73%build
8e37a909
JB
74%scons \
75 PREFIX=%{_prefix} \
76 LIBDIR=%{_libdir} \
77 GSSAPI=/usr
6726a0a8 78
8e37a909
JB
79%if %{with tests}
80%scons check
81%endif
6726a0a8
AM
82
83%install
84rm -rf $RPM_BUILD_ROOT
85
8e37a909
JB
86%scons install \
87 PREFIX=%{_prefix} \
88 LIBDIR=%{_libdir} \
89 --install-sandbox=$RPM_BUILD_ROOT
b9151149 90
6726a0a8
AM
91%clean
92rm -rf $RPM_BUILD_ROOT
93
94%post -p /sbin/ldconfig
95%postun -p /sbin/ldconfig
96
97%files
98%defattr(644,root,root,755)
99%doc CHANGES NOTICE README
ce51d6ca 100%attr(755,root,root) %{_libdir}/libserf-1.so.*.*.*
a85d13ce 101%attr(755,root,root) %ghost %{_libdir}/libserf-1.so.1
6726a0a8
AM
102
103%files devel
104%defattr(644,root,root,755)
ce51d6ca 105%attr(755,root,root) %{_libdir}/libserf-1.so
8e37a909 106%{_includedir}/serf-1
ce51d6ca 107%{_pkgconfigdir}/serf-1.pc
6726a0a8
AM
108
109%files static
110%defattr(644,root,root,755)
ce51d6ca 111%{_libdir}/libserf-1.a
This page took 0.082918 seconds and 4 git commands to generate.