]> git.pld-linux.org Git - packages/serf.git/blame - serf.spec
- updated to 1.0.0 (note: new library name)
[packages/serf.git] / serf.spec
CommitLineData
c72b12a8
JB
1#
2# Conditional build:
ce51d6ca 3%bcond_with tests # perform "make check" (uses localhost network, fails on apr side when IPV6 is enabled and localhost resolves only to IPV4 addresses)
6726a0a8
AM
4#
5Summary: A high-performance asynchronous HTTP client library
c72b12a8 6Summary(pl.UTF-8): Wysokowydajna biblioteka asynchronicznego klienta HTTP
6726a0a8 7Name: serf
ce51d6ca 8Version: 1.0.0
6726a0a8 9Release: 1
e302ecef 10License: Apache v2.0
6726a0a8 11Group: Libraries
e302ecef 12#Source0Download: http://code.google.com/p/serf/downloads/list
6726a0a8 13Source0: http://serf.googlecode.com/files/%{name}-%{version}.tar.bz2
ce51d6ca 14# Source0-md5: 3b179ed18f65c43141528aa6d2440db4
e302ecef 15Patch0: %{name}-sh.patch
6726a0a8
AM
16URL: http://code.google.com/p/serf/
17BuildRequires: apr-devel
18BuildRequires: apr-util-devel
e302ecef
JB
19BuildRequires: autoconf >= 2.50
20BuildRequires: automake
6726a0a8 21BuildRequires: openssl-devel >= 0.9.7d
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
6726a0a8
AM
46
47%description devel
48C header files for the serf library.
49
50%description devel -l pl.UTF-8
51Pliki nagłówkowe dla biblioteki serf.
52
53%package static
54Summary: Static libraries for serf
55Summary(pl.UTF-8): Biblioteki statyczne serf
56Group: Development/Libraries
57Requires: %{name}-devel = %{version}-%{release}
58
59%description static
60Static serf libraries.
61
62%description static -l pl.UTF-8
63Statyczne biblioteki serf.
64
65%prep
66%setup -q
e302ecef 67%patch0 -p1
6726a0a8
AM
68
69%build
e302ecef
JB
70%{__aclocal} -I build
71%{__autoconf}
6726a0a8
AM
72%configure \
73 --with-apr=%{_prefix} \
74 --with-apr-util=%{_prefix} \
75 --with-openssl=%{_prefix}
76%{__make}
77
78%{?with_tests:%{__make} check}
79
80%install
81rm -rf $RPM_BUILD_ROOT
82
83%{__make} install \
84 DESTDIR=$RPM_BUILD_ROOT
85
b9151149
JB
86chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
87
6726a0a8
AM
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%post -p /sbin/ldconfig
92%postun -p /sbin/ldconfig
93
94%files
95%defattr(644,root,root,755)
96%doc CHANGES NOTICE README
ce51d6ca
JB
97%attr(755,root,root) %{_libdir}/libserf-1.so.*.*.*
98%attr(755,root,root) %ghost %{_libdir}/libserf-1.so.0
6726a0a8
AM
99
100%files devel
101%defattr(644,root,root,755)
ce51d6ca
JB
102%attr(755,root,root) %{_libdir}/libserf-1.so
103%{_libdir}/libserf-1.la
6726a0a8 104%{_includedir}/serf*.h
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 0.039378 seconds and 4 git commands to generate.