Fix for 1091599.
[m6w6/libmemcached] / support / libmemcached.spec.in
1 Name: libmemcached
2 Summary: memcached C library and command line tools
3 Version: @VERSION@
4 Release: 1
5 License: BSD
6 Group: System Environment/Libraries
7 URL: http://launchpad.net/libmemcached
8 Source0: http://download.tangent.org/libmemcached-%{version}.tar.gz
9
10 # For test suite
11 BuildRequires: bash
12 BuildRequires: binutils
13 BuildRequires: coreutils
14 BuildRequires: cpio
15 BuildRequires: cyrus-sasl-devel
16 BuildRequires: diffutils
17 BuildRequires: elfutils
18 BuildRequires: file
19 BuildRequires: findutils
20 BuildRequires: gawk
21 BuildRequires: gcc
22 BuildRequires: glibc
23 BuildRequires: glibc-common
24 BuildRequires: glibc-devel
25 BuildRequires: glibc-headers
26 BuildRequires: grep
27 BuildRequires: gzip
28 BuildRequires: libevent-devel
29 BuildRequires: libstdc++-devel
30 BuildRequires: libuuid-devel
31 BuildRequires: make
32 BuildRequires: memcached
33 BuildRequires: pkgconfig
34 BuildRequires: python-sphinx
35 BuildRequires: sed
36 BuildRequires: tar
37
38 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
39
40
41 %description
42 libmemcached, http://libmemcached.org/, is a C client library to the memcached server
43 (http://danga.com/memcached). It has been designed to be light on memory
44 usage, and provide full access to server side methods.
45
46 It also implements several command line tools:
47
48 memcat - Copy the value of a key to standard output.
49 memflush - Flush the contents of your servers.
50 memrm - Remove a key(s) from the serrver.
51 memstat - Dump the stats of your servers to standard output.
52 memslap - Generate testing loads on a memcached cluster.
53 memcp - Copy files to memcached servers.
54 memerror - Creates human readable messages from libmemecached error codes.
55 memcapable - Verify a memcached server for protocol behavior.
56 memexist - Check for the existance of a key.
57 memtouch - Update the expiration value of a key.
58
59
60 %package devel
61 Summary: Header files and development libraries for %{name}
62 Group: Development/Libraries
63 Requires: %{name} = %{version}-%{release}
64
65 %description devel
66 This package contains the header files and development libraries
67 for %{name}. If you like to develop programs using %{name},
68 you will need to install %{name}-devel.
69
70
71 %prep
72 %setup -q
73
74 %{__mkdir} examples
75
76 %build
77 %configure
78 %{__make} %{?_smp_mflags}
79
80
81 %install
82 %{__rm} -rf %{buildroot}
83 %{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
84
85
86 %check
87 # test suite cannot run in mock (same port use for memcache server on all arch)
88 # 1 test seems to fail..
89 # %{__make} check
90
91
92 %clean
93 %{__rm} -rf %{buildroot}
94
95
96 %post -p /sbin/ldconfig
97
98
99 %postun -p /sbin/ldconfig
100
101
102 %files
103 %defattr (-,root,root,-)
104 %doc AUTHORS COPYING NEWS README THANKS TODO
105 %{_bindir}/mem*
106 %exclude %{_libdir}/libmemcached.la
107 %exclude %{_libdir}/libhashkit.la
108 %exclude %{_libdir}/libmemcachedutil.la
109 %exclude %{_libdir}/libmemcached.a
110 %exclude %{_libdir}/libhashkit.a
111 %exclude %{_libdir}/libmemcachedutil.a
112 %{_libdir}/libhashkit.so.2.0.0
113 %{_libdir}/libmemcached.so.11.0.0
114 %{_libdir}/libmemcachedutil.so.2.0.0
115 %{_libdir}/libhashkit.so.2
116 %{_libdir}/libmemcached.so.11
117 %{_libdir}/libmemcachedutil.so.2
118 %{_mandir}/man1/memaslap.1.gz
119 %{_mandir}/man1/memcapable.1.gz
120 %{_mandir}/man1/memcat.1.gz
121 %{_mandir}/man1/memcp.1.gz
122 %{_mandir}/man1/memdump.1.gz
123 %{_mandir}/man1/memerror.1.gz
124 %{_mandir}/man1/memexist.1.gz
125 %{_mandir}/man1/memflush.1.gz
126 %{_mandir}/man1/memparse.1.gz
127 %{_mandir}/man1/memping.1.gz
128 %{_mandir}/man1/memrm.1.gz
129 %{_mandir}/man1/memslap.1.gz
130 %{_mandir}/man1/memstat.1.gz
131 %{_mandir}/man1/memtouch.1.gz
132
133
134 %files devel
135 %defattr (-,root,root,-)
136 %doc examples
137 %{_datadir}/aclocal/ax_libmemcached.m4
138 %{_includedir}/libhashkit/hashkit.h
139 %{_includedir}/libhashkit-1.0/algorithm.h
140 %{_includedir}/libhashkit-1.0/behavior.h
141 %{_includedir}/libhashkit-1.0/configure.h
142 %{_includedir}/libhashkit-1.0/digest.h
143 %{_includedir}/libhashkit-1.0/function.h
144 %{_includedir}/libhashkit-1.0/has.h
145 %{_includedir}/libhashkit-1.0/hashkit.h
146 %{_includedir}/libhashkit-1.0/hashkit.hpp
147 %{_includedir}/libhashkit-1.0/str_algorithm.h
148 %{_includedir}/libhashkit-1.0/strerror.h
149 %{_includedir}/libhashkit-1.0/types.h
150 %{_includedir}/libhashkit-1.0/visibility.h
151
152 %{_includedir}/libmemcachedutil-1.0/util.h
153 %{_includedir}/libmemcachedutil-1.0/flush.h
154 %{_includedir}/libmemcachedutil-1.0/pid.h
155 %{_includedir}/libmemcachedutil-1.0/ping.h
156 %{_includedir}/libmemcachedutil-1.0/ostream.hpp
157 %{_includedir}/libmemcachedutil-1.0/pool.h
158 %{_includedir}/libmemcachedutil-1.0/version.h
159
160 %{_includedir}/libmemcached/memcached.h
161 %{_includedir}/libmemcached/memcached.hpp
162 %{_includedir}/libmemcached/util.h
163
164 %{_includedir}/libmemcached-1.0/alloc.h
165 %{_includedir}/libmemcached-1.0/allocators.h
166 %{_includedir}/libmemcached-1.0/analyze.h
167 %{_includedir}/libmemcached-1.0/auto.h
168 %{_includedir}/libmemcached-1.0/basic_string.h
169 %{_includedir}/libmemcached-1.0/behavior.h
170 %{_includedir}/libmemcached-1.0/callback.h
171 %{_includedir}/libmemcached-1.0/callbacks.h
172 %{_includedir}/libmemcached-1.0/configure.h
173 %{_includedir}/libmemcached-1.0/defaults.h
174 %{_includedir}/libmemcached-1.0/delete.h
175 %{_includedir}/libmemcached-1.0/deprecated_types.h
176 %{_includedir}/libmemcached-1.0/dump.h
177 %{_includedir}/libmemcached-1.0/error.h
178 %{_includedir}/libmemcached-1.0/exception.hpp
179 %{_includedir}/libmemcached-1.0/exist.h
180 %{_includedir}/libmemcached-1.0/fetch.h
181 %{_includedir}/libmemcached-1.0/flush.h
182 %{_includedir}/libmemcached-1.0/flush_buffers.h
183 %{_includedir}/libmemcached-1.0/get.h
184 %{_includedir}/libmemcached-1.0/hash.h
185 %{_includedir}/libmemcached-1.0/limits.h
186 %{_includedir}/libmemcached-1.0/memcached.h
187 %{_includedir}/libmemcached-1.0/memcached.hpp
188 %{_includedir}/libmemcached-1.0/options.h
189 %{_includedir}/libmemcached-1.0/parse.h
190 %{_includedir}/libmemcached-1.0/platform.h
191 %{_includedir}/libmemcached-1.0/quit.h
192 %{_includedir}/libmemcached-1.0/result.h
193 %{_includedir}/libmemcached-1.0/return.h
194 %{_includedir}/libmemcached-1.0/sasl.h
195 %{_includedir}/libmemcached-1.0/server.h
196 %{_includedir}/libmemcached-1.0/server_list.h
197 %{_includedir}/libmemcached-1.0/stats.h
198 %{_includedir}/libmemcached-1.0/storage.h
199 %{_includedir}/libmemcached-1.0/strerror.h
200 %{_includedir}/libmemcached-1.0/struct/allocator.h
201 %{_includedir}/libmemcached-1.0/struct/analysis.h
202 %{_includedir}/libmemcached-1.0/struct/callback.h
203 %{_includedir}/libmemcached-1.0/struct/memcached.h
204 %{_includedir}/libmemcached-1.0/struct/result.h
205 %{_includedir}/libmemcached-1.0/struct/sasl.h
206 %{_includedir}/libmemcached-1.0/struct/server.h
207 %{_includedir}/libmemcached-1.0/struct/stat.h
208 %{_includedir}/libmemcached-1.0/struct/string.h
209 %{_includedir}/libmemcached-1.0/touch.h
210 %{_includedir}/libmemcached-1.0/triggers.h
211 %{_includedir}/libmemcached-1.0/types.h
212 %{_includedir}/libmemcached-1.0/types/behavior.h
213 %{_includedir}/libmemcached-1.0/types/callback.h
214 %{_includedir}/libmemcached-1.0/types/connection.h
215 %{_includedir}/libmemcached-1.0/types/hash.h
216 %{_includedir}/libmemcached-1.0/types/return.h
217 %{_includedir}/libmemcached-1.0/types/server_distribution.h
218 %{_includedir}/libmemcached-1.0/verbosity.h
219 %{_includedir}/libmemcached-1.0/version.h
220 %{_includedir}/libmemcached-1.0/visibility.h
221 %{_includedir}/libhashkit-1.0/string.h
222 %{_includedir}/libmemcached-1.0/encoding_key.h
223
224 %{_libdir}/libhashkit.so
225 %{_libdir}/libmemcached.so
226 %{_libdir}/libmemcachedutil.so
227 %{_libdir}/pkgconfig/libmemcached.pc
228 %{_mandir}/man3/hashkit_clone.3.gz
229 %{_mandir}/man3/hashkit_crc32.3.gz
230 %{_mandir}/man3/hashkit_create.3.gz
231 %{_mandir}/man3/hashkit_fnv1_32.3.gz
232 %{_mandir}/man3/hashkit_fnv1_64.3.gz
233 %{_mandir}/man3/hashkit_fnv1a_32.3.gz
234 %{_mandir}/man3/hashkit_fnv1a_64.3.gz
235 %{_mandir}/man3/hashkit_free.3.gz
236 %{_mandir}/man3/hashkit_functions.3.gz
237 %{_mandir}/man3/hashkit_hsieh.3.gz
238 %{_mandir}/man3/hashkit_is_allocated.3.gz
239 %{_mandir}/man3/hashkit_jenkins.3.gz
240 %{_mandir}/man3/hashkit_md5.3.gz
241 %{_mandir}/man3/hashkit_murmur.3.gz
242 %{_mandir}/man3/hashkit_value.3.gz
243 %{_mandir}/man3/libhashkit.3.gz
244 %{_mandir}/man3/libmemcached.3.gz
245 %{_mandir}/man3/libmemcached_check_configuration.3.gz
246 %{_mandir}/man3/libmemcached_configuration.3.gz
247 %{_mandir}/man3/libmemcached_examples.3.gz
248 %{_mandir}/man3/libmemcachedutil.3.gz
249 %{_mandir}/man3/memcached.3.gz
250 %{_mandir}/man3/memcached_add.3.gz
251 %{_mandir}/man3/memcached_add_by_key.3.gz
252 %{_mandir}/man3/memcached_analyze.3.gz
253 %{_mandir}/man3/memcached_append.3.gz
254 %{_mandir}/man3/memcached_append_by_key.3.gz
255 %{_mandir}/man3/memcached_behavior_get.3.gz
256 %{_mandir}/man3/memcached_behavior_set.3.gz
257 %{_mandir}/man3/memcached_callback_get.3.gz
258 %{_mandir}/man3/memcached_callback_set.3.gz
259 %{_mandir}/man3/memcached_cas.3.gz
260 %{_mandir}/man3/memcached_cas_by_key.3.gz
261 %{_mandir}/man3/memcached_clone.3.gz
262 %{_mandir}/man3/memcached_create.3.gz
263 %{_mandir}/man3/memcached_decrement.3.gz
264 %{_mandir}/man3/memcached_decrement_with_initial.3.gz
265 %{_mandir}/man3/memcached_delete.3.gz
266 %{_mandir}/man3/memcached_delete_by_key.3.gz
267 %{_mandir}/man3/memcached_destroy_sasl_auth_data.3.gz
268 %{_mandir}/man3/memcached_dump.3.gz
269 %{_mandir}/man3/memcached_fetch.3.gz
270 %{_mandir}/man3/memcached_fetch_execute.3.gz
271 %{_mandir}/man3/memcached_fetch_result.3.gz
272 %{_mandir}/man3/memcached_flush_buffers.3.gz
273 %{_mandir}/man3/memcached_free.3.gz
274 %{_mandir}/man3/memcached_generate_hash.3.gz
275 %{_mandir}/man3/memcached_generate_hash_value.3.gz
276 %{_mandir}/man3/memcached_get.3.gz
277 %{_mandir}/man3/memcached_get_by_key.3.gz
278 %{_mandir}/man3/memcached_get_memory_allocators.3.gz
279 %{_mandir}/man3/memcached_get_sasl_callbacks.3.gz
280 %{_mandir}/man3/memcached_get_user_data.3.gz
281 %{_mandir}/man3/memcached_increment.3.gz
282 %{_mandir}/man3/memcached_increment_with_initial.3.gz
283 %{_mandir}/man3/memcached_lib_version.3.gz
284 %{_mandir}/man3/memcached_mget.3.gz
285 %{_mandir}/man3/memcached_mget_by_key.3.gz
286 %{_mandir}/man3/memcached_mget_execute.3.gz
287 %{_mandir}/man3/memcached_mget_execute_by_key.3.gz
288 %{_mandir}/man3/memcached_pool_behavior_get.3.gz
289 %{_mandir}/man3/memcached_pool_behavior_set.3.gz
290 %{_mandir}/man3/memcached_pool_create.3.gz
291 %{_mandir}/man3/memcached_pool_destroy.3.gz
292 %{_mandir}/man3/memcached_pool_pop.3.gz
293 %{_mandir}/man3/memcached_pool_push.3.gz
294 %{_mandir}/man3/memcached_pool_fetch.3.gz
295 %{_mandir}/man3/memcached_pool_release.3.gz
296 %{_mandir}/man3/memcached_pool_st.3.gz
297 %{_mandir}/man3/memcached_pool.3.gz
298 %{_mandir}/man3/memcached_prepend.3.gz
299 %{_mandir}/man3/memcached_prepend_by_key.3.gz
300 %{_mandir}/man3/memcached_quit.3.gz
301 %{_mandir}/man3/memcached_replace.3.gz
302 %{_mandir}/man3/memcached_replace_by_key.3.gz
303 %{_mandir}/man3/memcached_sasl_set_auth_data.3.gz
304 %{_mandir}/man3/memcached_server_add.3.gz
305 %{_mandir}/man3/memcached_server_count.3.gz
306 %{_mandir}/man3/memcached_server_cursor.3.gz
307 %{_mandir}/man3/memcached_server_list.3.gz
308 %{_mandir}/man3/memcached_server_list_append.3.gz
309 %{_mandir}/man3/memcached_server_list_count.3.gz
310 %{_mandir}/man3/memcached_server_list_free.3.gz
311 %{_mandir}/man3/memcached_server_push.3.gz
312 %{_mandir}/man3/memcached_servers_parse.3.gz
313 %{_mandir}/man3/memcached_set.3.gz
314 %{_mandir}/man3/memcached_set_by_key.3.gz
315 %{_mandir}/man3/memcached_set_memory_allocators.3.gz
316 %{_mandir}/man3/memcached_set_sasl_callbacks.3.gz
317 %{_mandir}/man3/memcached_set_user_data.3.gz
318 %{_mandir}/man3/memcached_stat.3.gz
319 %{_mandir}/man3/memcached_stat_execute.3.gz
320 %{_mandir}/man3/memcached_stat_get_keys.3.gz
321 %{_mandir}/man3/memcached_last_error_message.3.gz
322 %{_mandir}/man3/memcached_stat_get_value.3.gz
323 %{_mandir}/man3/memcached_stat_servername.3.gz
324 %{_mandir}/man3/memcached_strerror.3.gz
325 %{_mandir}/man3/memcached_exist.3.gz
326 %{_mandir}/man3/memcached_exist_by_key.3.gz
327 %{_mandir}/man3/memcached_touch.3.gz
328 %{_mandir}/man3/memcached_touch_by_key.3.gz
329 %{_mandir}/man3/memcached_verbosity.3.gz
330 %{_mandir}/man3/memcached_version.3.gz
331
332
333
334 %changelog
335 * Tue May 22 2012 Brian Aker <brian@tangent.org> - 1.0.8
336
337 * Fri Jan 8 2010 Brian Aker <brian@tangent.org> - 0.37
338 - Modified to be explicit in install include files.
339
340 * Sat Apr 25 2009 Remi Collet <rpms@famillecollet.com> - 0.28
341 - Initial RPM from Brian Aker spec
342 - create -devel subpackage
343 - add %%post %%postun %%check section
344