]>
Commit | Line | Data |
---|---|---|
2d343229 | 1 | Summary: A client for memcached |
811abbf4 | 2 | Summary(pl.UTF-8): Klient memcached |
2d343229 AG |
3 | Name: apr_memcache |
4 | Version: 0.7.0 | |
4c154083 | 5 | Release: 1 |
811abbf4 | 6 | License: Apache |
2d343229 AG |
7 | Group: Libraries |
8 | Source0: http://www.outoforder.cc/downloads/apr_memcache/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 1d62fea9253d17d304cfe9b26813ef4c | |
10 | Patch0: %{name}-libtool.patch | |
11 | URL: http://www.outoforder.cc/projects/libs/apr_memcache/ | |
811abbf4 JB |
12 | BuildRequires: apr-devel >= 1:1.2.2 |
13 | BuildRequires: apr-util-devel >= 1:1.2.2 | |
2d343229 AG |
14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
16 | BuildRequires: libtool | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | apr_memcache is a client for memcached written in C, using APR and | |
21 | APR-Util. It provides pooled client connections and is thread safe, | |
22 | making it perfect for use inside Apache Modules. | |
23 | ||
811abbf4 JB |
24 | %description -l pl.UTF-8 |
25 | apr_memcache to klient memcached napisany w C, wykorzystujący APR i | |
26 | APR-Util. Udostępnia pule połączeń klienckich i może być używany | |
27 | wielowątkowo, co czyni go dobrze nadającym się do używania w modułach | |
28 | Apache'a. | |
29 | ||
2d343229 AG |
30 | %package devel |
31 | Summary: Development files for apr_memcache | |
811abbf4 | 32 | Summary(pl.UTF-8): Pliki nagłówkowe apr_memcache |
2d343229 AG |
33 | Group: Development/Libraries |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Header files for apr_memcache. | |
38 | ||
39 | %description devel -l pl.UTF-8 | |
811abbf4 | 40 | Pliki nagłówkowe apr_memcache. |
2d343229 AG |
41 | |
42 | %package static | |
43 | Summary: Static apr_memcache library | |
44 | Summary(pl.UTF-8): Statyczna biblioteka apr_memcache | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static apr_memcache library. | |
50 | ||
51 | %description static -l pl.UTF-8 | |
52 | Statyczna biblioteka apr_memcache. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
56 | %patch0 -p1 | |
57 | ||
58 | %build | |
59 | %{__libtoolize} | |
60 | %{__aclocal} -I m4 | |
61 | %{__autoheader} | |
62 | %{__automake} | |
63 | %{__autoconf} | |
64 | ||
65 | %configure \ | |
66 | --with-apr=%{_bindir}/apr-1-config \ | |
67 | --with-apr-util=%{_bindir}/apu-1-config | |
68 | ||
69 | %{__make} \ | |
70 | CFLAGS="%{rpmcflags} `apu-1-config --includes` `apr-1-config --includes`" | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc LICENSE NOTICE test | |
87 | %attr(755,root,root) %{_libdir}/lib*.so.* | |
88 | ||
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
2d343229 AG |
91 | %attr(755,root,root) %{_libdir}/lib*.so |
92 | %{_libdir}/lib*.la | |
811abbf4 | 93 | %{_includedir}/apr_memcache-0 |
2d343229 AG |
94 | |
95 | %files static | |
96 | %defattr(644,root,root,755) | |
97 | %{_libdir}/lib*.a |