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