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