]>
Commit | Line | Data |
---|---|---|
c72b12a8 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # don't perform "make check" | |
6726a0a8 AM |
4 | # |
5 | Summary: A high-performance asynchronous HTTP client library | |
c72b12a8 | 6 | Summary(pl.UTF-8): Wysokowydajna biblioteka asynchronicznego klienta HTTP |
6726a0a8 | 7 | Name: serf |
97291b04 | 8 | Version: 0.7.1 |
6726a0a8 | 9 | Release: 1 |
e302ecef | 10 | License: Apache v2.0 |
6726a0a8 | 11 | Group: Libraries |
e302ecef | 12 | #Source0Download: http://code.google.com/p/serf/downloads/list |
6726a0a8 | 13 | Source0: http://serf.googlecode.com/files/%{name}-%{version}.tar.bz2 |
97291b04 | 14 | # Source0-md5: 026754d6067d9d775b98d996809c672f |
e302ecef | 15 | Patch0: %{name}-sh.patch |
6726a0a8 AM |
16 | URL: http://code.google.com/p/serf/ |
17 | BuildRequires: apr-devel | |
18 | BuildRequires: apr-util-devel | |
e302ecef JB |
19 | BuildRequires: autoconf >= 2.50 |
20 | BuildRequires: automake | |
6726a0a8 | 21 | BuildRequires: openssl-devel >= 0.9.7d |
c415bf16 | 22 | BuildRequires: zlib-devel |
6726a0a8 AM |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | The serf library is a C-based HTTP client library built upon the | |
27 | Apache Portable Runtime (APR) library. It multiplexes connections, | |
28 | running the read/write communication asynchronously. Memory copies and | |
29 | transformations are kept to a minimum to provide high performance | |
30 | operation. | |
31 | ||
c72b12a8 JB |
32 | %description -l pl.UTF-8 |
33 | Biblioteka serf to napisana w C biblioteka klienta HTTP stworzona w | |
34 | oparciu o bibliotekę Apache Portable Runtime (APR). Obsługuje | |
35 | połączenia naprzemiennie, wywołując asynchronicznie komunikację | |
36 | odczyt-zapis. Kopiowanie i transformacje w pamięci są ograniczone do | |
37 | minimum w celu zapewnienia wydajnego działania. | |
38 | ||
6726a0a8 AM |
39 | %package devel |
40 | Summary: Header files for serf | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe serf | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: apr-devel | |
e302ecef | 45 | Requires: apr-util-devel |
6726a0a8 AM |
46 | |
47 | %description devel | |
48 | C header files for the serf library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe dla biblioteki serf. | |
52 | ||
53 | %package static | |
54 | Summary: Static libraries for serf | |
55 | Summary(pl.UTF-8): Biblioteki statyczne serf | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static serf libraries. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczne 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 | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
b9151149 JB |
86 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so* |
87 | ||
6726a0a8 AM |
88 | %clean |
89 | rm -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 | |
e302ecef JB |
97 | %attr(755,root,root) %{_libdir}/libserf-0.so.*.*.* |
98 | %attr(755,root,root) %ghost %{_libdir}/libserf-0.so.0 | |
6726a0a8 AM |
99 | |
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
e302ecef JB |
102 | %attr(755,root,root) %{_libdir}/libserf-0.so |
103 | %{_libdir}/libserf-0.la | |
6726a0a8 AM |
104 | %{_includedir}/serf*.h |
105 | ||
106 | %files static | |
107 | %defattr(644,root,root,755) | |
e302ecef | 108 | %{_libdir}/libserf-0.a |