Ignore *.exe
[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 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
32
33 %package devel
34 Summary: Header files and development libraries for %{name}
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
37
38 %description devel
39 This package contains the header files and development libraries
40 for %{name}. If you like to develop programs using %{name},
41 you will need to install %{name}-devel.
42
43
44 %prep
45 %setup -q
46
47 %{__mkdir} examples
48 %{__cp} tests/*.{c,cpp,h} examples/
49
50
51 %build
52 %configure
53 %{__make} %{_smp_mflags}
54
55
56 %install
57 %{__rm} -rf %{buildroot}
58 %{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
59
60
61 %check
62 # test suite cannot run in mock (same port use for memcache server on all arch)
63 # 1 test seems to fail..
64 #%{__make} test
65
66
67 %clean
68 %{__rm} -rf %{buildroot}
69
70
71 %post -p /sbin/ldconfig
72
73
74 %postun -p /sbin/ldconfig
75
76
77 %files
78 %defattr (-,root,root,-)
79 %doc AUTHORS COPYING NEWS README THANKS TODO
80 %{_bindir}/mem*
81 %exclude %{_libdir}/libmemcached.la
82 %exclude %{_libdir}/libhashkit.la
83 %exclude %{_libdir}/libmemcachedutil.la
84 %exclude %{_libdir}/libmemcachedprotocol.la
85 %{_libdir}/libhashkit.so.0.0.0
86 %{_libdir}/libmemcached.so.5.0.1
87 %{_libdir}/libmemcachedutil.so.1.0.0
88 %{_libdir}/libmemcachedprotocol.so.0.0.0
89 %{_libdir}/libhashkit.so.0
90 %{_libdir}/libmemcached.so.5
91 %{_libdir}/libmemcachedprotocol.so.0
92 %{_libdir}/libmemcachedutil.so.1
93 %{_mandir}/man1/memcapable.1.gz
94 %{_mandir}/man1/memcat.1.gz
95 %{_mandir}/man1/memcp.1.gz
96 %{_mandir}/man1/memdump.1.gz
97 %{_mandir}/man1/memerror.1.gz
98 %{_mandir}/man1/memflush.1.gz
99 %{_mandir}/man1/memrm.1.gz
100 %{_mandir}/man1/memslap.1.gz
101 %{_mandir}/man1/memstat.1.gz
102
103
104 %files devel
105 %defattr (-,root,root,-)
106 %doc examples
107 %{_includedir}/libmemcached/allocators.h
108 %{_includedir}/libmemcached/delete.h
109 %{_includedir}/libmemcached/fetch.h
110 %{_includedir}/libmemcached/flush.h
111 %{_includedir}/libhashkit/algorithm.h
112 %{_includedir}/libhashkit/behavior.h
113 %{_includedir}/libhashkit/configure.h
114 %{_includedir}/libhashkit/digest.h
115 %{_includedir}/libhashkit/function.h
116 %{_includedir}/libhashkit/hashkit.h
117 %{_includedir}/libhashkit/strerror.h
118 %{_includedir}/libhashkit/types.h
119 %{_includedir}/libhashkit/visibility.h
120 %{_includedir}/libmemcached/analyze.h
121 %{_includedir}/libmemcached/auto.h
122 %{_includedir}/libmemcached/behavior.h
123 %{_includedir}/libmemcached/callback.h
124 %{_includedir}/libmemcached/configure.h
125 %{_includedir}/libmemcached/constants.h
126 %{_includedir}/libmemcached/dump.h
127 %{_includedir}/libmemcached/exception.hpp
128 %{_includedir}/libmemcached/flush_buffers.h
129 %{_includedir}/libmemcached/get.h
130 %{_includedir}/libmemcached/hash.h
131 %{_includedir}/libmemcached/memcached.h
132 %{_includedir}/libmemcached/memcached.hpp
133 %{_includedir}/libmemcached/memcached_util.h
134 %{_includedir}/libmemcached/parse.h
135 %{_includedir}/libmemcached/protocol/cache.h
136 %{_includedir}/libmemcached/protocol/callback.h
137 %{_includedir}/libmemcached/protocol_handler.h
138 %{_includedir}/libmemcached/quit.h
139 %{_includedir}/libmemcached/result.h
140 %{_includedir}/libmemcached/sasl.h
141 %{_includedir}/libmemcached/server.h
142 %{_includedir}/libmemcached/server_list.h
143 %{_includedir}/libmemcached/stats.h
144 %{_includedir}/libmemcached/storage.h
145 %{_includedir}/libmemcached/strerror.h
146 %{_includedir}/libmemcached/string.h
147 %{_includedir}/libmemcached/types.h
148 %{_includedir}/libmemcached/util.h
149 %{_includedir}/libmemcached/util/ping.h
150 %{_includedir}/libmemcached/util/pool.h
151 %{_includedir}/libmemcached/util/version.h
152 %{_includedir}/libmemcached/verbosity.h
153 %{_includedir}/libmemcached/version.h
154 %{_includedir}/libmemcached/visibility.h
155 %{_includedir}/libmemcached/watchpoint.h
156 %{_includedir}/libmemcached/memcached/protocol_binary.h
157 %{_libdir}/libhashkit.so
158 %{_libdir}/libmemcached.so
159 %{_libdir}/libmemcachedprotocol.so
160 %{_libdir}/libmemcachedutil.so
161 %{_libdir}/pkgconfig/libmemcached.pc
162 %{_mandir}/man3/hashkit_clone.3.gz
163 %{_mandir}/man3/hashkit_crc32.3.gz
164 %{_mandir}/man3/hashkit_create.3.gz
165 %{_mandir}/man3/hashkit_fnv1_32.3.gz
166 %{_mandir}/man3/hashkit_fnv1_64.3.gz
167 %{_mandir}/man3/hashkit_fnv1a_32.3.gz
168 %{_mandir}/man3/hashkit_fnv1a_64.3.gz
169 %{_mandir}/man3/hashkit_free.3.gz
170 %{_mandir}/man3/hashkit_functions.3.gz
171 %{_mandir}/man3/hashkit_hsieh.3.gz
172 %{_mandir}/man3/hashkit_is_allocated.3.gz
173 %{_mandir}/man3/hashkit_jenkins.3.gz
174 %{_mandir}/man3/hashkit_md5.3.gz
175 %{_mandir}/man3/hashkit_murmur.3.gz
176 %{_mandir}/man3/hashkit_value.3.gz
177 %{_mandir}/man3/libmemcached.3.gz
178 %{_mandir}/man3/libmemcached_examples.3.gz
179 %{_mandir}/man3/libmemcachedutil.3.gz
180 %{_mandir}/man3/memcached_add.3.gz
181 %{_mandir}/man3/memcached_add_by_key.3.gz
182 %{_mandir}/man3/memcached_analyze.3.gz
183 %{_mandir}/man3/memcached_append.3.gz
184 %{_mandir}/man3/memcached_append_by_key.3.gz
185 %{_mandir}/man3/memcached_behavior_get.3.gz
186 %{_mandir}/man3/memcached_behavior_set.3.gz
187 %{_mandir}/man3/memcached_callback_get.3.gz
188 %{_mandir}/man3/memcached_callback_set.3.gz
189 %{_mandir}/man3/memcached_cas.3.gz
190 %{_mandir}/man3/memcached_cas_by_key.3.gz
191 %{_mandir}/man3/memcached_clone.3.gz
192 %{_mandir}/man3/memcached_create.3.gz
193 %{_mandir}/man3/memcached_decrement.3.gz
194 %{_mandir}/man3/memcached_decrement_with_initial.3.gz
195 %{_mandir}/man3/memcached_delete.3.gz
196 %{_mandir}/man3/memcached_delete_by_key.3.gz
197 %{_mandir}/man3/memcached_destroy_sasl_auth_data.3.gz
198 %{_mandir}/man3/memcached_dump.3.gz
199 %{_mandir}/man3/memcached_fetch.3.gz
200 %{_mandir}/man3/memcached_fetch_execute.3.gz
201 %{_mandir}/man3/memcached_fetch_result.3.gz
202 %{_mandir}/man3/memcached_flush_buffers.3.gz
203 %{_mandir}/man3/memcached_free.3.gz
204 %{_mandir}/man3/memcached_generate_hash_value.3.gz
205 %{_mandir}/man3/memcached_get.3.gz
206 %{_mandir}/man3/memcached_get_by_key.3.gz
207 %{_mandir}/man3/memcached_get_memory_allocators.3.gz
208 %{_mandir}/man3/memcached_get_sasl_callbacks.3.gz
209 %{_mandir}/man3/memcached_get_user_data.3.gz
210 %{_mandir}/man3/memcached_increment.3.gz
211 %{_mandir}/man3/memcached_increment_with_initial.3.gz
212 %{_mandir}/man3/memcached_lib_version.3.gz
213 %{_mandir}/man3/memcached_mget.3.gz
214 %{_mandir}/man3/memcached_mget_by_key.3.gz
215 %{_mandir}/man3/memcached_mget_execute.3.gz
216 %{_mandir}/man3/memcached_mget_execute_by_key.3.gz
217 %{_mandir}/man3/memcached_pool_behavior_get.3.gz
218 %{_mandir}/man3/memcached_pool_behavior_set.3.gz
219 %{_mandir}/man3/memcached_pool_create.3.gz
220 %{_mandir}/man3/memcached_pool_destroy.3.gz
221 %{_mandir}/man3/memcached_pool_pop.3.gz
222 %{_mandir}/man3/memcached_pool_push.3.gz
223 %{_mandir}/man3/memcached_prepend.3.gz
224 %{_mandir}/man3/memcached_prepend_by_key.3.gz
225 %{_mandir}/man3/memcached_quit.3.gz
226 %{_mandir}/man3/memcached_replace.3.gz
227 %{_mandir}/man3/memcached_replace_by_key.3.gz
228 %{_mandir}/man3/memcached_sasl_set_auth_data.3.gz
229 %{_mandir}/man3/memcached_server_add.3.gz
230 %{_mandir}/man3/memcached_server_count.3.gz
231 %{_mandir}/man3/memcached_server_cursor.3.gz
232 %{_mandir}/man3/memcached_server_list.3.gz
233 %{_mandir}/man3/memcached_server_list_append.3.gz
234 %{_mandir}/man3/memcached_server_list_count.3.gz
235 %{_mandir}/man3/memcached_server_list_free.3.gz
236 %{_mandir}/man3/memcached_server_push.3.gz
237 %{_mandir}/man3/memcached_servers_parse.3.gz
238 %{_mandir}/man3/memcached_set.3.gz
239 %{_mandir}/man3/memcached_set_by_key.3.gz
240 %{_mandir}/man3/memcached_set_memory_allocators.3.gz
241 %{_mandir}/man3/memcached_set_sasl_callbacks.3.gz
242 %{_mandir}/man3/memcached_set_user_data.3.gz
243 %{_mandir}/man3/memcached_stat.3.gz
244 %{_mandir}/man3/memcached_stat_get_keys.3.gz
245 %{_mandir}/man3/memcached_stat_get_value.3.gz
246 %{_mandir}/man3/memcached_stat_servername.3.gz
247 %{_mandir}/man3/memcached_strerror.3.gz
248 %{_mandir}/man3/memcached_verbosity.3.gz
249 %{_mandir}/man3/memcached_version.3.gz
250
251
252
253 %changelog
254 * Fri Jan 8 2010 Brian Aker <brian@tangent.org> - 0.37-1
255 - Modified to be explicit in install include files.
256
257 * Sat Apr 25 2009 Remi Collet <rpms@famillecollet.com> - 0.28-1
258 - Initial RPM from Brian Aker spec
259 - create -devel subpackage
260 - add %%post %%postun %%check section
261