]> git.pld-linux.org Git - packages/apr_memcache.git/blob - apr_memcache.spec
- new
[packages/apr_memcache.git] / apr_memcache.spec
1 Summary:        A client for memcached
2 Name:           apr_memcache
3 Version:        0.7.0
4 Release:        0.1
5 License:        Apache License
6 Group:          Libraries
7 Source0:        http://www.outoforder.cc/downloads/apr_memcache/%{name}-%{version}.tar.bz2
8 # Source0-md5:  1d62fea9253d17d304cfe9b26813ef4c
9 Patch0:         %{name}-libtool.patch
10 URL:            http://www.outoforder.cc/projects/libs/apr_memcache/
11 BuildRequires:  apr-devel >= 1.2.2
12 BuildRequires:  apr-util-devel >= 1.2.2
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libtool
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 apr_memcache is a client for memcached written in C, using APR and
20 APR-Util. It provides pooled client connections and is thread safe,
21 making it perfect for use inside Apache Modules.
22
23 %package devel
24 Summary:        Development files for apr_memcache
25 Summary(pl.UTF-8):      Pliki nagłowkowe apr_memcache
26 Group:          Development/Libraries
27 Requires:       %{name} = %{version}-%{release}
28
29 %description devel
30 Header files for apr_memcache.
31
32 %description devel -l pl.UTF-8
33 Pliki nagłowkowe apr_memcache.
34
35 %package static
36 Summary:        Static apr_memcache library
37 Summary(pl.UTF-8):      Statyczna biblioteka apr_memcache
38 Group:          Development/Libraries
39 Requires:       %{name}-devel = %{version}-%{release}
40
41 %description static
42 Static apr_memcache library.
43
44 %description static -l pl.UTF-8
45 Statyczna biblioteka apr_memcache.
46
47 %prep
48 %setup -q
49 %patch0 -p1
50
51 %build
52 %{__libtoolize}
53 %{__aclocal} -I m4
54 %{__autoheader}
55 %{__automake}
56 %{__autoconf}
57
58 %configure \
59         --with-apr=%{_bindir}/apr-1-config \
60         --with-apr-util=%{_bindir}/apu-1-config
61
62 %{__make} \
63         CFLAGS="%{rpmcflags} `apu-1-config --includes` `apr-1-config --includes`"
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %files
78 %defattr(644,root,root,755)
79 %doc LICENSE NOTICE test
80 %attr(755,root,root) %{_libdir}/lib*.so.*
81
82 %files devel
83 %defattr(644,root,root,755)
84 %{_includedir}/apr_memcache-0/
85 %attr(755,root,root) %{_libdir}/lib*.so
86 %{_libdir}/lib*.la
87
88 %files static
89 %defattr(644,root,root,755)
90 %{_libdir}/lib*.a
This page took 0.122717 seconds and 3 git commands to generate.