vinted-memcached 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. checksums.yaml +7 -0
  2. data/BENCHMARKS +142 -0
  3. data/CHANGELOG +176 -0
  4. data/Gemfile +11 -0
  5. data/Gemfile.lock +45 -0
  6. data/LICENSE +184 -0
  7. data/Manifest +209 -0
  8. data/README.rdoc +124 -0
  9. data/Rakefile +134 -0
  10. data/TODO +1 -0
  11. data/ext/extconf-make.rb +25 -0
  12. data/ext/extconf.rb +78 -0
  13. data/ext/libmemcached-0.32/AUTHORS +7 -0
  14. data/ext/libmemcached-0.32/COPYING +32 -0
  15. data/ext/libmemcached-0.32/ChangeLog +303 -0
  16. data/ext/libmemcached-0.32/INSTALL +302 -0
  17. data/ext/libmemcached-0.32/Makefile.am +36 -0
  18. data/ext/libmemcached-0.32/Makefile.in +911 -0
  19. data/ext/libmemcached-0.32/NEWS +1 -0
  20. data/ext/libmemcached-0.32/README +33 -0
  21. data/ext/libmemcached-0.32/THANKS +14 -0
  22. data/ext/libmemcached-0.32/TODO +11 -0
  23. data/ext/libmemcached-0.32/aclocal.m4 +2108 -0
  24. data/ext/libmemcached-0.32/clients/Makefile.am +80 -0
  25. data/ext/libmemcached-0.32/clients/Makefile.in +773 -0
  26. data/ext/libmemcached-0.32/clients/client_options.h +32 -0
  27. data/ext/libmemcached-0.32/clients/execute.c +64 -0
  28. data/ext/libmemcached-0.32/clients/execute.h +5 -0
  29. data/ext/libmemcached-0.32/clients/generator.c +74 -0
  30. data/ext/libmemcached-0.32/clients/generator.h +20 -0
  31. data/ext/libmemcached-0.32/clients/memcat.c +178 -0
  32. data/ext/libmemcached-0.32/clients/memcp.c +251 -0
  33. data/ext/libmemcached-0.32/clients/memdump.c +170 -0
  34. data/ext/libmemcached-0.32/clients/memerror.c +80 -0
  35. data/ext/libmemcached-0.32/clients/memflush.c +143 -0
  36. data/ext/libmemcached-0.32/clients/memrm.c +160 -0
  37. data/ext/libmemcached-0.32/clients/memslap.c +441 -0
  38. data/ext/libmemcached-0.32/clients/memstat.c +326 -0
  39. data/ext/libmemcached-0.32/clients/utilities.c +207 -0
  40. data/ext/libmemcached-0.32/clients/utilities.h +41 -0
  41. data/ext/libmemcached-0.32/config/compile +143 -0
  42. data/ext/libmemcached-0.32/config/config.guess +1561 -0
  43. data/ext/libmemcached-0.32/config/config.rpath +666 -0
  44. data/ext/libmemcached-0.32/config/config.sub +1686 -0
  45. data/ext/libmemcached-0.32/config/depcomp +630 -0
  46. data/ext/libmemcached-0.32/config/install-sh +520 -0
  47. data/ext/libmemcached-0.32/config/ltmain.sh +9636 -0
  48. data/ext/libmemcached-0.32/config/missing +376 -0
  49. data/ext/libmemcached-0.32/config.h.in +254 -0
  50. data/ext/libmemcached-0.32/configure +23843 -0
  51. data/ext/libmemcached-0.32/configure.ac +120 -0
  52. data/ext/libmemcached-0.32/libmemcached/Makefile.am +111 -0
  53. data/ext/libmemcached-0.32/libmemcached/Makefile.in +1069 -0
  54. data/ext/libmemcached-0.32/libmemcached/byteorder.c +31 -0
  55. data/ext/libmemcached-0.32/libmemcached/common.h +189 -0
  56. data/ext/libmemcached-0.32/libmemcached/crc.c +86 -0
  57. data/ext/libmemcached-0.32/libmemcached/hsieh_hash.c +68 -0
  58. data/ext/libmemcached-0.32/libmemcached/jenkins_hash.c +213 -0
  59. data/ext/libmemcached-0.32/libmemcached/libmemcached.ver +1 -0
  60. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.d +30 -0
  61. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.h +82 -0
  62. data/ext/libmemcached-0.32/libmemcached/md5.c +354 -0
  63. data/ext/libmemcached-0.32/libmemcached/memcached/README.txt +7 -0
  64. data/ext/libmemcached-0.32/libmemcached/memcached/protocol_binary.h +385 -0
  65. data/ext/libmemcached-0.32/libmemcached/memcached.c +153 -0
  66. data/ext/libmemcached-0.32/libmemcached/memcached.h +305 -0
  67. data/ext/libmemcached-0.32/libmemcached/memcached.hpp +799 -0
  68. data/ext/libmemcached-0.32/libmemcached/memcached_allocators.c +72 -0
  69. data/ext/libmemcached-0.32/libmemcached/memcached_analyze.c +100 -0
  70. data/ext/libmemcached-0.32/libmemcached/memcached_auto.c +207 -0
  71. data/ext/libmemcached-0.32/libmemcached/memcached_behavior.c +290 -0
  72. data/ext/libmemcached-0.32/libmemcached/memcached_callback.c +175 -0
  73. data/ext/libmemcached-0.32/libmemcached/memcached_configure.h.in +23 -0
  74. data/ext/libmemcached-0.32/libmemcached/memcached_connect.c +371 -0
  75. data/ext/libmemcached-0.32/libmemcached/memcached_constants.h +146 -0
  76. data/ext/libmemcached-0.32/libmemcached/memcached_delete.c +0 -0
  77. data/ext/libmemcached-0.32/libmemcached/memcached_do.c +72 -0
  78. data/ext/libmemcached-0.32/libmemcached/memcached_dump.c +79 -0
  79. data/ext/libmemcached-0.32/libmemcached/memcached_exist.c +114 -0
  80. data/ext/libmemcached-0.32/libmemcached/memcached_exist.h +20 -0
  81. data/ext/libmemcached-0.32/libmemcached/memcached_fetch.c +102 -0
  82. data/ext/libmemcached-0.32/libmemcached/memcached_flush.c +89 -0
  83. data/ext/libmemcached-0.32/libmemcached/memcached_flush_buffers.c +23 -0
  84. data/ext/libmemcached-0.32/libmemcached/memcached_get.c +494 -0
  85. data/ext/libmemcached-0.32/libmemcached/memcached_get.h +87 -0
  86. data/ext/libmemcached-0.32/libmemcached/memcached_hash.c +252 -0
  87. data/ext/libmemcached-0.32/libmemcached/memcached_hosts.c +510 -0
  88. data/ext/libmemcached-0.32/libmemcached/memcached_internal.h +31 -0
  89. data/ext/libmemcached-0.32/libmemcached/memcached_io.c +594 -0
  90. data/ext/libmemcached-0.32/libmemcached/memcached_io.h +72 -0
  91. data/ext/libmemcached-0.32/libmemcached/memcached_key.c +28 -0
  92. data/ext/libmemcached-0.32/libmemcached/memcached_parse.c +74 -0
  93. data/ext/libmemcached-0.32/libmemcached/memcached_pool.h +38 -0
  94. data/ext/libmemcached-0.32/libmemcached/memcached_purge.c +76 -0
  95. data/ext/libmemcached-0.32/libmemcached/memcached_quit.c +75 -0
  96. data/ext/libmemcached-0.32/libmemcached/memcached_response.c +529 -0
  97. data/ext/libmemcached-0.32/libmemcached/memcached_result.c +57 -0
  98. data/ext/libmemcached-0.32/libmemcached/memcached_result.h +59 -0
  99. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.c +225 -0
  100. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.h +44 -0
  101. data/ext/libmemcached-0.32/libmemcached/memcached_server.c +159 -0
  102. data/ext/libmemcached-0.32/libmemcached/memcached_server.h +93 -0
  103. data/ext/libmemcached-0.32/libmemcached/memcached_stats.c +437 -0
  104. data/ext/libmemcached-0.32/libmemcached/memcached_storage.c +514 -0
  105. data/ext/libmemcached-0.32/libmemcached/memcached_storage.h +107 -0
  106. data/ext/libmemcached-0.32/libmemcached/memcached_strerror.c +92 -0
  107. data/ext/libmemcached-0.32/libmemcached/memcached_string.c +138 -0
  108. data/ext/libmemcached-0.32/libmemcached/memcached_string.h +53 -0
  109. data/ext/libmemcached-0.32/libmemcached/memcached_touch.c +60 -0
  110. data/ext/libmemcached-0.32/libmemcached/memcached_touch.h +31 -0
  111. data/ext/libmemcached-0.32/libmemcached/memcached_types.h +44 -0
  112. data/ext/libmemcached-0.32/libmemcached/memcached_util.h +15 -0
  113. data/ext/libmemcached-0.32/libmemcached/memcached_verbosity.c +36 -0
  114. data/ext/libmemcached-0.32/libmemcached/memcached_version.c +112 -0
  115. data/ext/libmemcached-0.32/libmemcached/memcached_watchpoint.h +38 -0
  116. data/ext/libmemcached-0.32/libmemcached/murmur_hash.c +76 -0
  117. data/ext/libmemcached-0.32/libmemcached/visibility.h +51 -0
  118. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.am +11 -0
  119. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.in +604 -0
  120. data/ext/libmemcached-0.32/libmemcachedutil/libmemcachedutil.ver +1 -0
  121. data/ext/libmemcached-0.32/libmemcachedutil/memcached_pool.c +170 -0
  122. data/ext/libmemcached-0.32/m4/ac_cxx_compile_stdcxx_0x.m4 +103 -0
  123. data/ext/libmemcached-0.32/m4/ac_cxx_header_stdcxx_98.m4 +67 -0
  124. data/ext/libmemcached-0.32/m4/acx_pthread.m4 +276 -0
  125. data/ext/libmemcached-0.32/m4/byteorder.m4 +40 -0
  126. data/ext/libmemcached-0.32/m4/deprecated.m4 +17 -0
  127. data/ext/libmemcached-0.32/m4/enable_utillib.m4 +16 -0
  128. data/ext/libmemcached-0.32/m4/extensions.m4 +94 -0
  129. data/ext/libmemcached-0.32/m4/hsieh.m4 +18 -0
  130. data/ext/libmemcached-0.32/m4/lib-prefix.m4 +221 -0
  131. data/ext/libmemcached-0.32/m4/libtool.m4 +7831 -0
  132. data/ext/libmemcached-0.32/m4/ltoptions.m4 +369 -0
  133. data/ext/libmemcached-0.32/m4/ltsugar.m4 +123 -0
  134. data/ext/libmemcached-0.32/m4/ltversion.m4 +23 -0
  135. data/ext/libmemcached-0.32/m4/lt~obsolete.m4 +98 -0
  136. data/ext/libmemcached-0.32/m4/memcached.m4 +30 -0
  137. data/ext/libmemcached-0.32/m4/pandora_64bit.m4 +55 -0
  138. data/ext/libmemcached-0.32/m4/pandora_canonical.m4 +151 -0
  139. data/ext/libmemcached-0.32/m4/pandora_check_compiler_version.m4 +37 -0
  140. data/ext/libmemcached-0.32/m4/pandora_check_cxx_standard.m4 +16 -0
  141. data/ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4 +41 -0
  142. data/ext/libmemcached-0.32/m4/pandora_ensure_gcc_version.m4 +36 -0
  143. data/ext/libmemcached-0.32/m4/pandora_have_better_malloc.m4 +54 -0
  144. data/ext/libmemcached-0.32/m4/pandora_have_sasl.m4 +133 -0
  145. data/ext/libmemcached-0.32/m4/pandora_header_assert.m4 +23 -0
  146. data/ext/libmemcached-0.32/m4/pandora_libtool.m4 +15 -0
  147. data/ext/libmemcached-0.32/m4/pandora_optimize.m4 +79 -0
  148. data/ext/libmemcached-0.32/m4/pandora_shared_ptr.m4 +56 -0
  149. data/ext/libmemcached-0.32/m4/pandora_vc_build.m4 +32 -0
  150. data/ext/libmemcached-0.32/m4/pandora_warnings.m4 +262 -0
  151. data/ext/libmemcached-0.32/m4/pod2man.m4 +7 -0
  152. data/ext/libmemcached-0.32/m4/protocol_binary.m4 +23 -0
  153. data/ext/libmemcached-0.32/m4/setsockopt.m4 +57 -0
  154. data/ext/libmemcached-0.32/m4/visibility.m4 +52 -0
  155. data/ext/libmemcached-0.32/support/Makefile.am +4 -0
  156. data/ext/libmemcached-0.32/support/Makefile.in +487 -0
  157. data/ext/libmemcached-0.32/support/libmemcached-fc.spec.in +105 -0
  158. data/ext/libmemcached-0.32/support/libmemcached.pc.in +10 -0
  159. data/ext/libmemcached-0.32/support/libmemcached.spec +105 -0
  160. data/ext/libmemcached-0.32/support/libmemcached.spec.in +105 -0
  161. data/ext/libmemcached-0.32/support/set_benchmark.sh +5 -0
  162. data/ext/libmemcached-0.32/tests/Makefile.am +113 -0
  163. data/ext/libmemcached-0.32/tests/Makefile.in +762 -0
  164. data/ext/libmemcached-0.32/tests/atomsmasher.c +245 -0
  165. data/ext/libmemcached-0.32/tests/function.c +4904 -0
  166. data/ext/libmemcached-0.32/tests/ketama_test_cases.h +108 -0
  167. data/ext/libmemcached-0.32/tests/output.cmp +7 -0
  168. data/ext/libmemcached-0.32/tests/output.res +7 -0
  169. data/ext/libmemcached-0.32/tests/output2.res +46 -0
  170. data/ext/libmemcached-0.32/tests/plus.cpp +293 -0
  171. data/ext/libmemcached-0.32/tests/r/memcat.res +19 -0
  172. data/ext/libmemcached-0.32/tests/r/memcp.res +27 -0
  173. data/ext/libmemcached-0.32/tests/r/memrm.res +19 -0
  174. data/ext/libmemcached-0.32/tests/r/memslap.res +33 -0
  175. data/ext/libmemcached-0.32/tests/r/memstat.res +33 -0
  176. data/ext/libmemcached-0.32/tests/server.c +118 -0
  177. data/ext/libmemcached-0.32/tests/server.h +25 -0
  178. data/ext/libmemcached-0.32/tests/start.c +16 -0
  179. data/ext/libmemcached-0.32/tests/t/memcat.test +4 -0
  180. data/ext/libmemcached-0.32/tests/t/memcp.test +3 -0
  181. data/ext/libmemcached-0.32/tests/t/memrm.test +3 -0
  182. data/ext/libmemcached-0.32/tests/t/memslap.test +5 -0
  183. data/ext/libmemcached-0.32/tests/t/memstat.test +3 -0
  184. data/ext/libmemcached-0.32/tests/test.c +137 -0
  185. data/ext/libmemcached-0.32/tests/test.h +46 -0
  186. data/ext/libmemcached-0.32/tests/udp.c +76 -0
  187. data/ext/rlibmemcached.i +258 -0
  188. data/ext/rlibmemcached_wrap.c +13917 -0
  189. data/lib/memcached/auth.rb +16 -0
  190. data/lib/memcached/behaviors.rb +78 -0
  191. data/lib/memcached/exceptions.rb +84 -0
  192. data/lib/memcached/experimental.rb +48 -0
  193. data/lib/memcached/marshal_codec.rb +10 -0
  194. data/lib/memcached/memcached.rb +732 -0
  195. data/lib/memcached/rails.rb +250 -0
  196. data/lib/memcached.rb +33 -0
  197. data/memcached.gemspec +0 -0
  198. data/test/profile/benchmark.rb +280 -0
  199. data/test/profile/c_profiler.rb +14 -0
  200. data/test/profile/exercise.rb +185 -0
  201. data/test/profile/rb_profiler.rb +21 -0
  202. data/test/profile/valgrind.rb +10 -0
  203. data/test/setup.rb +30 -0
  204. data/test/teardown.rb +0 -0
  205. data/test/test_helper.rb +18 -0
  206. data/test/unit/binding_test.rb +8 -0
  207. data/test/unit/memcached_experimental_test.rb +272 -0
  208. data/test/unit/memcached_test.rb +1487 -0
  209. data/test/unit/rails_test.rb +330 -0
  210. metadata +336 -0
@@ -0,0 +1,487 @@
1
+ # Makefile.in generated by automake 1.11.1 from Makefile.am.
2
+ # @configure_input@
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
+ # Inc.
7
+ # This Makefile.in is free software; the Free Software Foundation
8
+ # gives unlimited permission to copy and/or distribute it,
9
+ # with or without modifications, as long as this notice is preserved.
10
+
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
+ # PARTICULAR PURPOSE.
15
+
16
+ @SET_MAKE@
17
+
18
+ VPATH = @srcdir@
19
+ pkgdatadir = $(datadir)/@PACKAGE@
20
+ pkgincludedir = $(includedir)/@PACKAGE@
21
+ pkglibdir = $(libdir)/@PACKAGE@
22
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
23
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24
+ install_sh_DATA = $(install_sh) -c -m 644
25
+ install_sh_PROGRAM = $(install_sh) -c
26
+ install_sh_SCRIPT = $(install_sh) -c
27
+ INSTALL_HEADER = $(INSTALL_DATA)
28
+ transform = $(program_transform_name)
29
+ NORMAL_INSTALL = :
30
+ PRE_INSTALL = :
31
+ POST_INSTALL = :
32
+ NORMAL_UNINSTALL = :
33
+ PRE_UNINSTALL = :
34
+ POST_UNINSTALL = :
35
+ build_triplet = @build@
36
+ host_triplet = @host@
37
+ target_triplet = @target@
38
+ subdir = support
39
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
40
+ $(srcdir)/libmemcached-fc.spec.in $(srcdir)/libmemcached.pc.in \
41
+ $(srcdir)/libmemcached.spec.in
42
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43
+ am__aclocal_m4_deps = $(top_srcdir)/m4/ac_cxx_compile_stdcxx_0x.m4 \
44
+ $(top_srcdir)/m4/ac_cxx_header_stdcxx_98.m4 \
45
+ $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/byteorder.m4 \
46
+ $(top_srcdir)/m4/deprecated.m4 \
47
+ $(top_srcdir)/m4/enable_utillib.m4 \
48
+ $(top_srcdir)/m4/extensions.m4 $(top_srcdir)/m4/hsieh.m4 \
49
+ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
50
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
51
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
52
+ $(top_srcdir)/m4/memcached.m4 \
53
+ $(top_srcdir)/m4/pandora_64bit.m4 \
54
+ $(top_srcdir)/m4/pandora_canonical.m4 \
55
+ $(top_srcdir)/m4/pandora_check_compiler_version.m4 \
56
+ $(top_srcdir)/m4/pandora_check_cxx_standard.m4 \
57
+ $(top_srcdir)/m4/pandora_enable_dtrace.m4 \
58
+ $(top_srcdir)/m4/pandora_ensure_gcc_version.m4 \
59
+ $(top_srcdir)/m4/pandora_have_better_malloc.m4 \
60
+ $(top_srcdir)/m4/pandora_have_sasl.m4 \
61
+ $(top_srcdir)/m4/pandora_header_assert.m4 \
62
+ $(top_srcdir)/m4/pandora_libtool.m4 \
63
+ $(top_srcdir)/m4/pandora_optimize.m4 \
64
+ $(top_srcdir)/m4/pandora_shared_ptr.m4 \
65
+ $(top_srcdir)/m4/pandora_vc_build.m4 \
66
+ $(top_srcdir)/m4/pandora_warnings.m4 \
67
+ $(top_srcdir)/m4/pod2man.m4 \
68
+ $(top_srcdir)/m4/protocol_binary.m4 \
69
+ $(top_srcdir)/m4/setsockopt.m4 $(top_srcdir)/m4/visibility.m4 \
70
+ $(top_srcdir)/configure.ac
71
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
72
+ $(ACLOCAL_M4)
73
+ mkinstalldirs = $(install_sh) -d
74
+ CONFIG_HEADER = $(top_builddir)/config.h
75
+ CONFIG_CLEAN_FILES = libmemcached.pc libmemcached.spec \
76
+ libmemcached-fc.spec
77
+ CONFIG_CLEAN_VPATH_FILES =
78
+ SOURCES =
79
+ DIST_SOURCES =
80
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
81
+ am__vpath_adj = case $$p in \
82
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
83
+ *) f=$$p;; \
84
+ esac;
85
+ am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
86
+ am__install_max = 40
87
+ am__nobase_strip_setup = \
88
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
89
+ am__nobase_strip = \
90
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
91
+ am__nobase_list = $(am__nobase_strip_setup); \
92
+ for p in $$list; do echo "$$p $$p"; done | \
93
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
94
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
95
+ if (++n[$$2] == $(am__install_max)) \
96
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
97
+ END { for (dir in files) print dir, files[dir] }'
98
+ am__base_list = \
99
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
100
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
101
+ am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
102
+ DATA = $(pkgconfig_DATA)
103
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
104
+ ACLOCAL = @ACLOCAL@
105
+ AMTAR = @AMTAR@
106
+ AM_CFLAGS = @AM_CFLAGS@
107
+ AM_CPPFLAGS = @AM_CPPFLAGS@
108
+ AM_CXXFLAGS = @AM_CXXFLAGS@
109
+ AR = @AR@
110
+ AUTOCONF = @AUTOCONF@
111
+ AUTOHEADER = @AUTOHEADER@
112
+ AUTOMAKE = @AUTOMAKE@
113
+ AWK = @AWK@
114
+ BETTER_MALLOC_LIBS = @BETTER_MALLOC_LIBS@
115
+ CC = @CC@
116
+ CCDEPMODE = @CCDEPMODE@
117
+ CC_VERSION = @CC_VERSION@
118
+ CFLAGS = @CFLAGS@
119
+ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@
120
+ CPP = @CPP@
121
+ CPPFLAGS = @CPPFLAGS@
122
+ CXX = @CXX@
123
+ CXXCPP = @CXXCPP@
124
+ CXXDEPMODE = @CXXDEPMODE@
125
+ CXXFLAGS = @CXXFLAGS@
126
+ CXX_VERSION = @CXX_VERSION@
127
+ CYGPATH_W = @CYGPATH_W@
128
+ DEFS = @DEFS@
129
+ DEPDIR = @DEPDIR@
130
+ DEPRECATED = @DEPRECATED@
131
+ DLLTOOL = @DLLTOOL@
132
+ DOXYGEN = @DOXYGEN@
133
+ DSYMUTIL = @DSYMUTIL@
134
+ DTRACE = @DTRACE@
135
+ DTRACEFLAGS = @DTRACEFLAGS@
136
+ DUMPBIN = @DUMPBIN@
137
+ ECHO_C = @ECHO_C@
138
+ ECHO_N = @ECHO_N@
139
+ ECHO_T = @ECHO_T@
140
+ EGREP = @EGREP@
141
+ EXEEXT = @EXEEXT@
142
+ FGREP = @FGREP@
143
+ GREP = @GREP@
144
+ HAVE_LIBSASL = @HAVE_LIBSASL@
145
+ HAVE_LIBSASL2 = @HAVE_LIBSASL2@
146
+ HAVE_VISIBILITY = @HAVE_VISIBILITY@
147
+ INSTALL = @INSTALL@
148
+ INSTALL_DATA = @INSTALL_DATA@
149
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
150
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
151
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
152
+ ISAINFO = @ISAINFO@
153
+ LD = @LD@
154
+ LDFLAGS = @LDFLAGS@
155
+ LD_UTIL_VERSION_SCRIPT = @LD_UTIL_VERSION_SCRIPT@
156
+ LD_VERSION_SCRIPT = @LD_VERSION_SCRIPT@
157
+ LIBC_P = @LIBC_P@
158
+ LIBM = @LIBM@
159
+ LIBMEMCACHED_WITH_SASL_SUPPORT = @LIBMEMCACHED_WITH_SASL_SUPPORT@
160
+ LIBOBJS = @LIBOBJS@
161
+ LIBS = @LIBS@
162
+ LIBSASL = @LIBSASL@
163
+ LIBSASL2 = @LIBSASL2@
164
+ LIBSASL2_PREFIX = @LIBSASL2_PREFIX@
165
+ LIBSASL_PREFIX = @LIBSASL_PREFIX@
166
+ LIBTOOL = @LIBTOOL@
167
+ LIPO = @LIPO@
168
+ LN_S = @LN_S@
169
+ LTLIBOBJS = @LTLIBOBJS@
170
+ LTLIBSASL = @LTLIBSASL@
171
+ LTLIBSASL2 = @LTLIBSASL2@
172
+ MAKEINFO = @MAKEINFO@
173
+ MANIFEST_TOOL = @MANIFEST_TOOL@
174
+ MEMCACHEDUTIL_LIBRARY_VERSION = @MEMCACHEDUTIL_LIBRARY_VERSION@
175
+ MEMCACHED_LIBRARY_VERSION = @MEMCACHED_LIBRARY_VERSION@
176
+ MEMC_BINARY = @MEMC_BINARY@
177
+ MKDIR_P = @MKDIR_P@
178
+ NM = @NM@
179
+ NMEDIT = @NMEDIT@
180
+ NO_CONVERSION = @NO_CONVERSION@
181
+ NO_REDUNDANT_DECLS = @NO_REDUNDANT_DECLS@
182
+ NO_SHADOW = @NO_SHADOW@
183
+ NO_STRICT_ALIASING = @NO_STRICT_ALIASING@
184
+ NO_UNREACHED = @NO_UNREACHED@
185
+ OBJDUMP = @OBJDUMP@
186
+ OBJEXT = @OBJEXT@
187
+ OTOOL = @OTOOL@
188
+ OTOOL64 = @OTOOL64@
189
+ PACKAGE = @PACKAGE@
190
+ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
191
+ PACKAGE_NAME = @PACKAGE_NAME@
192
+ PACKAGE_STRING = @PACKAGE_STRING@
193
+ PACKAGE_TARNAME = @PACKAGE_TARNAME@
194
+ PACKAGE_URL = @PACKAGE_URL@
195
+ PACKAGE_VERSION = @PACKAGE_VERSION@
196
+ PATH_SEPARATOR = @PATH_SEPARATOR@
197
+ PERL = @PERL@
198
+ POD2MAN = @POD2MAN@
199
+ PROTOSKIP_WARNINGS = @PROTOSKIP_WARNINGS@
200
+ PTHREAD_CC = @PTHREAD_CC@
201
+ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
202
+ PTHREAD_LIBS = @PTHREAD_LIBS@
203
+ RANLIB = @RANLIB@
204
+ SED = @SED@
205
+ SET_MAKE = @SET_MAKE@
206
+ SHELL = @SHELL@
207
+ STRIP = @STRIP@
208
+ VERSION = @VERSION@
209
+ abs_builddir = @abs_builddir@
210
+ abs_srcdir = @abs_srcdir@
211
+ abs_top_builddir = @abs_top_builddir@
212
+ abs_top_srcdir = @abs_top_srcdir@
213
+ ac_ct_AR = @ac_ct_AR@
214
+ ac_ct_CC = @ac_ct_CC@
215
+ ac_ct_CXX = @ac_ct_CXX@
216
+ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
217
+ acx_pthread_config = @acx_pthread_config@
218
+ am__include = @am__include@
219
+ am__leading_dot = @am__leading_dot@
220
+ am__quote = @am__quote@
221
+ am__tar = @am__tar@
222
+ am__untar = @am__untar@
223
+ bindir = @bindir@
224
+ build = @build@
225
+ build_alias = @build_alias@
226
+ build_cpu = @build_cpu@
227
+ build_os = @build_os@
228
+ build_vendor = @build_vendor@
229
+ builddir = @builddir@
230
+ datadir = @datadir@
231
+ datarootdir = @datarootdir@
232
+ docdir = @docdir@
233
+ dvidir = @dvidir@
234
+ exec_prefix = @exec_prefix@
235
+ host = @host@
236
+ host_alias = @host_alias@
237
+ host_cpu = @host_cpu@
238
+ host_os = @host_os@
239
+ host_vendor = @host_vendor@
240
+ htmldir = @htmldir@
241
+ includedir = @includedir@
242
+ infodir = @infodir@
243
+ install_sh = @install_sh@
244
+ libdir = @libdir@
245
+ libexecdir = @libexecdir@
246
+ localedir = @localedir@
247
+ localstatedir = @localstatedir@
248
+ mandir = @mandir@
249
+ mkdir_p = @mkdir_p@
250
+ oldincludedir = @oldincludedir@
251
+ pdfdir = @pdfdir@
252
+ prefix = @prefix@
253
+ program_transform_name = @program_transform_name@
254
+ psdir = @psdir@
255
+ sbindir = @sbindir@
256
+ sharedstatedir = @sharedstatedir@
257
+ srcdir = @srcdir@
258
+ sysconfdir = @sysconfdir@
259
+ target = @target@
260
+ target_alias = @target_alias@
261
+ target_cpu = @target_cpu@
262
+ target_os = @target_os@
263
+ target_vendor = @target_vendor@
264
+ top_build_prefix = @top_build_prefix@
265
+ top_builddir = @top_builddir@
266
+ top_srcdir = @top_srcdir@
267
+ EXTRA_DIST = libmemcached.spec set_benchmark.sh libmemcached-fc.spec.in
268
+ pkgconfigdir = $(libdir)/pkgconfig
269
+ pkgconfig_DATA = libmemcached.pc
270
+ all: all-am
271
+
272
+ .SUFFIXES:
273
+ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
274
+ @for dep in $?; do \
275
+ case '$(am__configure_deps)' in \
276
+ *$$dep*) \
277
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
278
+ && { if test -f $@; then exit 0; else break; fi; }; \
279
+ exit 1;; \
280
+ esac; \
281
+ done; \
282
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu support/Makefile'; \
283
+ $(am__cd) $(top_srcdir) && \
284
+ $(AUTOMAKE) --gnu support/Makefile
285
+ .PRECIOUS: Makefile
286
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
287
+ @case '$?' in \
288
+ *config.status*) \
289
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
290
+ *) \
291
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
292
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
293
+ esac;
294
+
295
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
296
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
297
+
298
+ $(top_srcdir)/configure: $(am__configure_deps)
299
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
300
+ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
301
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
302
+ $(am__aclocal_m4_deps):
303
+ libmemcached.pc: $(top_builddir)/config.status $(srcdir)/libmemcached.pc.in
304
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
305
+ libmemcached.spec: $(top_builddir)/config.status $(srcdir)/libmemcached.spec.in
306
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
307
+ libmemcached-fc.spec: $(top_builddir)/config.status $(srcdir)/libmemcached-fc.spec.in
308
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
309
+
310
+ mostlyclean-libtool:
311
+ -rm -f *.lo
312
+
313
+ clean-libtool:
314
+ -rm -rf .libs _libs
315
+ install-pkgconfigDATA: $(pkgconfig_DATA)
316
+ @$(NORMAL_INSTALL)
317
+ test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
318
+ @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
319
+ for p in $$list; do \
320
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
321
+ echo "$$d$$p"; \
322
+ done | $(am__base_list) | \
323
+ while read files; do \
324
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
325
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
326
+ done
327
+
328
+ uninstall-pkgconfigDATA:
329
+ @$(NORMAL_UNINSTALL)
330
+ @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
331
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
332
+ test -n "$$files" || exit 0; \
333
+ echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
334
+ cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
335
+ tags: TAGS
336
+ TAGS:
337
+
338
+ ctags: CTAGS
339
+ CTAGS:
340
+
341
+
342
+ distdir: $(DISTFILES)
343
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
344
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
345
+ list='$(DISTFILES)'; \
346
+ dist_files=`for file in $$list; do echo $$file; done | \
347
+ sed -e "s|^$$srcdirstrip/||;t" \
348
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
349
+ case $$dist_files in \
350
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
351
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
352
+ sort -u` ;; \
353
+ esac; \
354
+ for file in $$dist_files; do \
355
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
356
+ if test -d $$d/$$file; then \
357
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
358
+ if test -d "$(distdir)/$$file"; then \
359
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
360
+ fi; \
361
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
362
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
363
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
364
+ fi; \
365
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
366
+ else \
367
+ test -f "$(distdir)/$$file" \
368
+ || cp -p $$d/$$file "$(distdir)/$$file" \
369
+ || exit 1; \
370
+ fi; \
371
+ done
372
+ check-am: all-am
373
+ check: check-am
374
+ all-am: Makefile $(DATA)
375
+ installdirs:
376
+ for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
377
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
378
+ done
379
+ install: install-am
380
+ install-exec: install-exec-am
381
+ install-data: install-data-am
382
+ uninstall: uninstall-am
383
+
384
+ install-am: all-am
385
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
386
+
387
+ installcheck: installcheck-am
388
+ install-strip:
389
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
390
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
391
+ `test -z '$(STRIP)' || \
392
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
393
+ mostlyclean-generic:
394
+
395
+ clean-generic:
396
+
397
+ distclean-generic:
398
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
399
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
400
+
401
+ maintainer-clean-generic:
402
+ @echo "This command is intended for maintainers to use"
403
+ @echo "it deletes files that may require special tools to rebuild."
404
+ clean: clean-am
405
+
406
+ clean-am: clean-generic clean-libtool mostlyclean-am
407
+
408
+ distclean: distclean-am
409
+ -rm -f Makefile
410
+ distclean-am: clean-am distclean-generic
411
+
412
+ dvi: dvi-am
413
+
414
+ dvi-am:
415
+
416
+ html: html-am
417
+
418
+ html-am:
419
+
420
+ info: info-am
421
+
422
+ info-am:
423
+
424
+ install-data-am: install-pkgconfigDATA
425
+
426
+ install-dvi: install-dvi-am
427
+
428
+ install-dvi-am:
429
+
430
+ install-exec-am:
431
+
432
+ install-html: install-html-am
433
+
434
+ install-html-am:
435
+
436
+ install-info: install-info-am
437
+
438
+ install-info-am:
439
+
440
+ install-man:
441
+
442
+ install-pdf: install-pdf-am
443
+
444
+ install-pdf-am:
445
+
446
+ install-ps: install-ps-am
447
+
448
+ install-ps-am:
449
+
450
+ installcheck-am:
451
+
452
+ maintainer-clean: maintainer-clean-am
453
+ -rm -f Makefile
454
+ maintainer-clean-am: distclean-am maintainer-clean-generic
455
+
456
+ mostlyclean: mostlyclean-am
457
+
458
+ mostlyclean-am: mostlyclean-generic mostlyclean-libtool
459
+
460
+ pdf: pdf-am
461
+
462
+ pdf-am:
463
+
464
+ ps: ps-am
465
+
466
+ ps-am:
467
+
468
+ uninstall-am: uninstall-pkgconfigDATA
469
+
470
+ .MAKE: install-am install-strip
471
+
472
+ .PHONY: all all-am check check-am clean clean-generic clean-libtool \
473
+ distclean distclean-generic distclean-libtool distdir dvi \
474
+ dvi-am html html-am info info-am install install-am \
475
+ install-data install-data-am install-dvi install-dvi-am \
476
+ install-exec install-exec-am install-html install-html-am \
477
+ install-info install-info-am install-man install-pdf \
478
+ install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
479
+ install-strip installcheck installcheck-am installdirs \
480
+ maintainer-clean maintainer-clean-generic mostlyclean \
481
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
482
+ uninstall uninstall-am uninstall-pkgconfigDATA
483
+
484
+
485
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
486
+ # Otherwise a system limit (for SysV at least) may be exceeded.
487
+ .NOEXPORT:
@@ -0,0 +1,105 @@
1
+ Name: libmemcached
2
+ Summary: memcached C library and command line tools
3
+ Version: @VERSION@
4
+ Release: 1%{?dist}
5
+ License: BSD
6
+ Group: System Environment/Libraries
7
+ URL: http://tangent.org/552/libmemcached.html
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
+
31
+
32
+ %package devel
33
+ Summary: Header files and development libraries for %{name}
34
+ Group: Development/Libraries
35
+ Requires: %{name} = %{version}-%{release}
36
+
37
+ %description devel
38
+ This package contains the header files and development libraries
39
+ for %{name}. If you like to develop programs using %{name},
40
+ you will need to install %{name}-devel.
41
+
42
+
43
+ %prep
44
+ %setup -q
45
+
46
+ %{__mkdir} examples
47
+ %{__cp} tests/*.{c,cpp,h} examples/
48
+
49
+
50
+ %build
51
+ %configure
52
+ %{__make} %{_smp_mflags}
53
+
54
+
55
+ %install
56
+ %{__rm} -rf %{buildroot}
57
+ %{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
58
+
59
+
60
+ %check
61
+ # test suite cannot run in mock (same port use for memcache server on all arch)
62
+ # 1 test seems to fail..
63
+ #%{__make} test
64
+
65
+
66
+ %clean
67
+ %{__rm} -rf %{buildroot}
68
+
69
+
70
+ %post -p /sbin/ldconfig
71
+
72
+
73
+ %postun -p /sbin/ldconfig
74
+
75
+
76
+ %files
77
+ %defattr (-,root,root,-)
78
+ %doc AUTHORS COPYING NEWS README THANKS TODO
79
+ %{_bindir}/mem*
80
+ %exclude %{_libdir}/libmemcached.a
81
+ %exclude %{_libdir}/libmemcached.la
82
+ %exclude %{_libdir}/libmemcachedutil.a
83
+ %exclude %{_libdir}/libmemcachedutil.la
84
+ %{_libdir}/libmemcached.so.*
85
+ %{_libdir}/libmemcachedutil.so.*
86
+ %{_mandir}/man1/mem*
87
+
88
+
89
+ %files devel
90
+ %defattr (-,root,root,-)
91
+ %doc examples
92
+ %{_includedir}/libmemcached
93
+ %{_libdir}/libmemcached.so
94
+ %{_libdir}/libmemcachedutil.so
95
+ %{_libdir}/pkgconfig/libmemcached.pc
96
+ %{_mandir}/man3/libmemcached*.3.gz
97
+ %{_mandir}/man3/memcached_*.3.gz
98
+
99
+
100
+ %changelog
101
+ * Sat Apr 25 2009 Remi Collet <rpms@famillecollet.com> - 0.28-1
102
+ - Initial RPM from Brian Aker spec
103
+ - create -devel subpackage
104
+ - add %%post %%postun %%check section
105
+
@@ -0,0 +1,10 @@
1
+ prefix=@prefix@
2
+ exec_prefix=@exec_prefix@
3
+ libdir=@libdir@
4
+ includedir=@includedir@
5
+
6
+ Name: libmemcached
7
+ Description: libmemcached C library.
8
+ Version: @VERSION@
9
+ Libs: -L${libdir} -lmemcached
10
+ Cflags: -I${includedir}
@@ -0,0 +1,105 @@
1
+ Name: libmemcached
2
+ Summary: memcached C library and command line tools
3
+ Version: 0.32
4
+ Release: 1
5
+ License: BSD
6
+ Group: System Environment/Libraries
7
+ URL: http://tangent.org/552/libmemcached.html
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
+
31
+
32
+ %package devel
33
+ Summary: Header files and development libraries for %{name}
34
+ Group: Development/Libraries
35
+ Requires: %{name} = %{version}-%{release}
36
+
37
+ %description devel
38
+ This package contains the header files and development libraries
39
+ for %{name}. If you like to develop programs using %{name},
40
+ you will need to install %{name}-devel.
41
+
42
+
43
+ %prep
44
+ %setup -q
45
+
46
+ %{__mkdir} examples
47
+ %{__cp} tests/*.{c,cpp,h} examples/
48
+
49
+
50
+ %build
51
+ %configure
52
+ %{__make} %{_smp_mflags}
53
+
54
+
55
+ %install
56
+ %{__rm} -rf %{buildroot}
57
+ %{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
58
+
59
+
60
+ %check
61
+ # test suite cannot run in mock (same port use for memcache server on all arch)
62
+ # 1 test seems to fail..
63
+ #%{__make} test
64
+
65
+
66
+ %clean
67
+ %{__rm} -rf %{buildroot}
68
+
69
+
70
+ %post -p /sbin/ldconfig
71
+
72
+
73
+ %postun -p /sbin/ldconfig
74
+
75
+
76
+ %files
77
+ %defattr (-,root,root,-)
78
+ %doc AUTHORS COPYING NEWS README THANKS TODO
79
+ %{_bindir}/mem*
80
+ %exclude %{_libdir}/libmemcached.a
81
+ %exclude %{_libdir}/libmemcached.la
82
+ %exclude %{_libdir}/libmemcachedutil.a
83
+ %exclude %{_libdir}/libmemcachedutil.la
84
+ %{_libdir}/libmemcached.so.*
85
+ %{_libdir}/libmemcachedutil.so.*
86
+ %{_mandir}/man1/mem*
87
+
88
+
89
+ %files devel
90
+ %defattr (-,root,root,-)
91
+ %doc examples
92
+ %{_includedir}/libmemcached
93
+ %{_libdir}/libmemcached.so
94
+ %{_libdir}/libmemcachedutil.so
95
+ %{_libdir}/pkgconfig/libmemcached.pc
96
+ %{_mandir}/man3/libmemcached*.3.gz
97
+ %{_mandir}/man3/memcached_*.3.gz
98
+
99
+
100
+ %changelog
101
+ * Sat Apr 25 2009 Remi Collet <rpms@famillecollet.com> - 0.28-1
102
+ - Initial RPM from Brian Aker spec
103
+ - create -devel subpackage
104
+ - add %%post %%postun %%check section
105
+