]>
Commit | Line | Data |
---|---|---|
b3eb527f | 1 | # |
a7fb1d55 AM |
2 | # TODO: |
3 | # m4 macros from pandora-build (http://code.launchpad.net/pandora-build) | |
4 | # | |
b3eb527f | 5 | # Conditional build |
6 | %bcond_without static_libs # don't build static library | |
e1d032be | 7 | |
a76bb5e7 | 8 | Summary: memcached client library |
623bd9c9 | 9 | Summary(pl.UTF-8): Blblioteka kliencka memcached |
a76bb5e7 | 10 | Name: libmemcached |
1a91d275 | 11 | Version: 1.0.18 |
f5efce4c | 12 | Release: 9 |
a76bb5e7 AG |
13 | License: BSD |
14 | Group: Libraries | |
1a91d275 JB |
15 | Source0: https://launchpad.net/libmemcached/1.0/%{version}/+download/%{name}-%{version}.tar.gz |
16 | # Source0-md5: b3958716b4e53ddc5992e6c49d97e819 | |
8c457ca1 | 17 | Patch1: pointer_comparison.patch |
f3928235 | 18 | URL: https://libmemcached.org/ |
99aa0066 | 19 | BuildRequires: cyrus-sasl-devel |
ba8924c1 | 20 | BuildRequires: libevent-devel |
a76bb5e7 | 21 | BuildRequires: libstdc++-devel |
a76bb5e7 | 22 | BuildRequires: perl-tools-pod |
b048042d | 23 | BuildRequires: sphinx-pdg |
a76bb5e7 AG |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | libmemcached is a C and C++ client library to the memcached server | |
f3928235 JB |
28 | (http://memcached.org/). It has been designed to be light on memory |
29 | usage, thread safe, and provide full access to server side | |
a76bb5e7 AG |
30 | methods. |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | libmemcached to biblioteka kliencka serwera memcached | |
f3928235 JB |
34 | (http://memcached.org/) dla języków C/C++. Została zaprojektowana z |
35 | myślą o niewielkim zużyciu pamięci, bezpieczeństwe i pełnym dostępie | |
a76bb5e7 AG |
36 | do metod po stronie serwera. |
37 | ||
38 | %package devel | |
39 | Summary: Header files for memcached library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki memcached | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
bc883c5c | 43 | Requires: cyrus-sasl-devel |
a76bb5e7 AG |
44 | |
45 | %description devel | |
46 | Header files for memcached library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki memcached. | |
50 | ||
51 | %package static | |
52 | Summary: Static memcached library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka memcached | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static memcached library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka memcached. | |
62 | ||
63 | %prep | |
64 | %setup -q | |
5cfce8bb | 65 | |
8c457ca1 JK |
66 | %patch1 -p1 |
67 | ||
a76bb5e7 | 68 | %build |
a76bb5e7 | 69 | %configure \ |
b048042d JB |
70 | PTHREAD_CFLAGS="-pthread" \ |
71 | PTHREAD_LIBS="-lpthread" \ | |
72 | --enable-dtrace \ | |
e1d032be | 73 | --enable-libmemcachedprotocol \ |
b048042d JB |
74 | --disable-silent-rules \ |
75 | %{?with_static_libs:--enable-static} \ | |
f3928235 | 76 | --without-memcached # disable memcached detection, we're not doing tests |
1a91d275 | 77 | |
a76bb5e7 AG |
78 | %{__make} |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post -p /sbin/ldconfig | |
90 | %postun -p /sbin/ldconfig | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
94 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
c909e202 | 95 | %attr(755,root,root) %{_bindir}/memcapable |
96 | %attr(755,root,root) %{_bindir}/memcat | |
97 | %attr(755,root,root) %{_bindir}/memcp | |
98 | %attr(755,root,root) %{_bindir}/memdump | |
99 | %attr(755,root,root) %{_bindir}/memerror | |
a7fb1d55 | 100 | %attr(755,root,root) %{_bindir}/memexist |
c909e202 | 101 | %attr(755,root,root) %{_bindir}/memflush |
f922b7a0 | 102 | %attr(755,root,root) %{_bindir}/memparse |
80bcd255 | 103 | %attr(755,root,root) %{_bindir}/memping |
c909e202 | 104 | %attr(755,root,root) %{_bindir}/memrm |
105 | %attr(755,root,root) %{_bindir}/memslap | |
106 | %attr(755,root,root) %{_bindir}/memstat | |
a7fb1d55 | 107 | %attr(755,root,root) %{_bindir}/memtouch |
ba8924c1 | 108 | %attr(755,root,root) %{_libdir}/libhashkit.so.*.*.* |
c909e202 | 109 | %attr(755,root,root) %{_libdir}/libmemcached.so.*.*.* |
110 | %attr(755,root,root) %{_libdir}/libmemcachedprotocol.so.*.*.* | |
111 | %attr(755,root,root) %{_libdir}/libmemcachedutil.so.*.*.* | |
e1d032be ER |
112 | %attr(755,root,root) %ghost %{_libdir}/libhashkit.so.2 |
113 | %attr(755,root,root) %ghost %{_libdir}/libmemcached.so.11 | |
e1c5f7f8 ER |
114 | %attr(755,root,root) %ghost %{_libdir}/libmemcachedprotocol.so.0 |
115 | %attr(755,root,root) %ghost %{_libdir}/libmemcachedutil.so.2 | |
c909e202 | 116 | %{_mandir}/man1/mem*.1* |
a76bb5e7 AG |
117 | |
118 | %files devel | |
119 | %defattr(644,root,root,755) | |
ba8924c1 | 120 | %attr(755,root,root) %{_libdir}/libhashkit.so |
121 | %attr(755,root,root) %{_libdir}/libmemcached.so | |
122 | %attr(755,root,root) %{_libdir}/libmemcachedprotocol.so | |
123 | %attr(755,root,root) %{_libdir}/libmemcachedutil.so | |
124 | %{_libdir}/libhashkit.la | |
c909e202 | 125 | %{_libdir}/libmemcached.la |
126 | %{_libdir}/libmemcachedprotocol.la | |
127 | %{_libdir}/libmemcachedutil.la | |
ba8924c1 | 128 | %{_includedir}/libhashkit |
e1d032be | 129 | %{_includedir}/libhashkit-1.0 |
a76bb5e7 | 130 | %{_includedir}/libmemcached |
e1d032be ER |
131 | %{_includedir}/libmemcached-1.0 |
132 | %{_includedir}/libmemcachedprotocol-0.0 | |
133 | %{_includedir}/libmemcachedutil-1.0 | |
c909e202 | 134 | %{_pkgconfigdir}/libmemcached.pc |
e1d032be | 135 | %{_aclocaldir}/ax_libmemcached.m4 |
b048042d JB |
136 | %{_mandir}/man3/hashkit_*.3* |
137 | %{_mandir}/man3/libhashkit.3* | |
138 | %{_mandir}/man3/libmemcached*.3* | |
139 | %{_mandir}/man3/memcached*.3* | |
a76bb5e7 | 140 | |
b3eb527f | 141 | %if %{with static_libs} |
a76bb5e7 AG |
142 | %files static |
143 | %defattr(644,root,root,755) | |
ba8924c1 | 144 | %{_libdir}/libhashkit.a |
145 | %{_libdir}/libmemcached.a | |
146 | %{_libdir}/libmemcachedprotocol.a | |
147 | %{_libdir}/libmemcachedutil.a | |
b3eb527f | 148 | %endif |