Name: libmemcached Summary: memcached C library and command line tools Version: @VERSION@ Release: 1 License: BSD Group: System Environment/Libraries URL: http://launchpad.net/libmemcached Source0: http://download.tangent.org/libmemcached-%{version}.tar.gz # For test suite BuildRequires: memcached BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description libmemcached is a C client library to the memcached server (http://danga.com/memcached). It has been designed to be light on memory usage, and provide full access to server side methods. It also implements several command line tools: memcat - Copy the value of a key to standard output. memflush - Flush the contents of your servers. memrm - Remove a key(s) from the serrver. memstat - Dump the stats of your servers to standard output. memslap - Generate testing loads on a memcached cluster. memcp - Copy files to memcached servers. memerror - Creates human readable messages from libmemecached error codes. memcapable - Verify a memcached server for protocol behavior. %package devel Summary: Header files and development libraries for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header files and development libraries for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %setup -q %{__mkdir} examples %{__cp} tests/*.{c,cpp,h} examples/ %build %configure %{__make} %{_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS="" %check # test suite cannot run in mock (same port use for memcache server on all arch) # 1 test seems to fail.. #%{__make} test %clean %{__rm} -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr (-,root,root,-) %doc AUTHORS COPYING NEWS README THANKS TODO %{_bindir}/mem* %exclude %{_libdir}/libmemcached.la %exclude %{_libdir}/libhashkit.la %exclude %{_libdir}/libmemcachedutil.la %exclude %{_libdir}/libmemcachedprotocol.la %{_libdir}/libhashkit.so.* %{_libdir}/libmemcached.so.* %{_libdir}/libmemcachedutil.so.* %{_libdir}/libmemcachedprotocol.so.* %{_mandir}/man1/mem* %files devel %defattr (-,root,root,-) %doc examples %{_includedir}/libhashkit/algorithm.h %{_includedir}/libhashkit/behavior.h %{_includedir}/libhashkit/hashkit.h %{_includedir}/libhashkit/strerror.h %{_includedir}/libhashkit/types.h %{_includedir}/libhashkit/visibility.h %{_includedir}/libmemcached/analyze.h %{_includedir}/libmemcached/auto.h %{_includedir}/libmemcached/behavior.h %{_includedir}/libmemcached/callback.h %{_includedir}/libmemcached/configure.h %{_includedir}/libmemcached/constants.h %{_includedir}/libmemcached/dump.h %{_includedir}/libmemcached/exception.hpp %{_includedir}/libmemcached/get.h %{_includedir}/libmemcached/memcached.h %{_includedir}/libmemcached/memcached.hpp %{_includedir}/libmemcached/memcached_util.h %{_includedir}/libmemcached/protocol %{_includedir}/libmemcached/protocol/cache.h %{_includedir}/libmemcached/protocol/callback.h %{_includedir}/libmemcached/protocol_handler.h %{_includedir}/libmemcached/result.h %{_includedir}/libmemcached/server.h %{_includedir}/libmemcached/stats.h %{_includedir}/libmemcached/storage.h %{_includedir}/libmemcached/string.h %{_includedir}/libmemcached/types.h %{_includedir}/libmemcached/util/pool.h %{_includedir}/libmemcached/visibility.h %{_includedir}/libmemcached/watchpoint.h %{_libdir}/libhashkit.so %{_libdir}/libmemcached.so %{_libdir}/libmemcachedprotocol.so %{_libdir}/libmemcachedutil.so %{_libdir}/pkgconfig/libmemcached.pc %{_mandir}/man3/hashkit*.3.gz %{_mandir}/man3/libmemcached*.3.gz %{_mandir}/man3/memcached_*.3.gz %changelog * Fri Jan 8 2010 Brian Aker - 0.37-1 - Modified to be explicit in install include files. * Sat Apr 25 2009 Remi Collet - 0.28-1 - Initial RPM from Brian Aker spec - create -devel subpackage - add %%post %%postun %%check section