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