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