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