baadda
# Regression tests take a long time, you can skip 'em with this
baadda
%{!?runselftest: %{expand: %%global runselftest 1}}
baadda
%global with_sasl        1
baadda
baadda
Name:      libmemcached
baadda
Summary:   Client library and command line tools for memcached server
baadda
Version:   1.0.16
baadda
Release:   5%{?dist}
baadda
License:   BSD
baadda
Group:     System Environment/Libraries
baadda
URL:       http://libmemcached.org/
baadda
# Original sources:
baadda
#   http://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz
baadda
# The source tarball must be repackaged to remove the Hsieh hash
baadda
# code, since the license is non-free.  When upgrading, download the new
baadda
# source tarball, and run "./strip-hsieh.sh <version>" to produce the
baadda
# "-exhsieh" tarball.
baadda
Source0:   libmemcached-%{version}-exhsieh.tar.gz
baadda
baadda
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
baadda
%if %{with_sasl}
baadda
BuildRequires: cyrus-sasl-devel
baadda
%endif
baadda
BuildRequires: flex
baadda
BuildRequires: bison
baadda
BuildRequires: python-sphinx
baadda
BuildRequires: memcached
baadda
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
baadda
BuildRequires: systemtap-sdt-devel
baadda
%endif
baadda
BuildRequires: libevent-devel
baadda
baadda
Patch0: libmemcached-fix-linking-with-libpthread.patch
baadda
baadda
%description
baadda
libmemcached is a C/C++ client library and tools for the memcached server
baadda
(http://memcached.org/). It has been designed to be light on memory
baadda
usage, and provide full access to server side methods.
baadda
baadda
It also implements several command line tools:
baadda
baadda
memaslap    Load testing and benchmarking a server
baadda
memcapable  Checking a Memcached server capibilities and compatibility
baadda
memcat      Copy the value of a key to standard output
baadda
memcp       Copy data to a server
baadda
memdump     Dumping your server
baadda
memerror    Translate an error code to a string
baadda
memexist    Check for the existance of a key
baadda
memflush    Flush the contents of your servers
baadda
memparse    Parse an option string
baadda
memping     Test to see if a server is available.
baadda
memrm       Remove a key(s) from the server
baadda
memslap     Generate testing loads on a memcached cluster
baadda
memstat     Dump the stats of your servers to standard output
baadda
memtouch    Touches a key
baadda
baadda
baadda
%package devel
baadda
Summary: Header files and development libraries for %{name}
baadda
Group: Development/Libraries
baadda
Requires: %{name}%{?_isa} = %{version}-%{release}
baadda
Requires: pkgconfig
baadda
%if %{with_sasl}
baadda
Requires: cyrus-sasl-devel%{?_isa}
baadda
%endif
baadda
baadda
%description devel
baadda
This package contains the header files and development libraries
baadda
for %{name}. If you like to develop programs using %{name}, 
baadda
you will need to install %{name}-devel.
baadda
baadda
baadda
%prep
baadda
%setup -q
baadda
%patch0 -p1 -b .pthread
baadda
baadda
mkdir examples
baadda
cp -p tests/*.{cc,h} examples/
baadda
baadda
# Don't test memaslap: https://bugs.launchpad.net/libmemcached/+bug/1115357
baadda
sed -i '/^TESTS = /s|\($(bin_PROGRAMS)\)|$(filter-out clients/memaslap,\1)|' Makefile.in
baadda
baadda
%build
baadda
# option --with-memcached=false to disable server binary check (as we don't run test)
baadda
%configure \
baadda
%if %{runselftest}
baadda
   --with-memcached=%{_bindir}/memcached \
baadda
%else
baadda
   --with-memcached=false \
baadda
%endif
baadda
%if %{with_sasl}
baadda
   --enable-sasl \
baadda
%else
baadda
   --disable-sasl \
baadda
%endif
baadda
   --enable-libmemcachedprotocol \
baadda
   --enable-memaslap \
baadda
   --enable-dtrace \
baadda
   --disable-static
baadda
baadda
%if 0%{?fedora} < 14 && 0%{?rhel} < 7
baadda
# for warning: unknown option after '#pragma GCC diagnostic' kind
baadda
sed -e 's/-Werror//' -i Makefile
baadda
%endif
baadda
baadda
make %{_smp_mflags}
baadda
baadda
baadda
%install
baadda
rm -rf %{buildroot}
baadda
make install  DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
baadda
baadda
# Hack: when sphinx-build too old (fedora < 14 and rhel < 7)
baadda
# install upstream provided man pages
baadda
if [ ! -d %{buildroot}%{_mandir}/man1 ]; then
baadda
   install -d %{buildroot}%{_mandir}/man1
baadda
   install -p -m 644 man/*1 %{buildroot}%{_mandir}/man1
baadda
   install -d %{buildroot}%{_mandir}/man3
baadda
   install -p -m 644 man/*3 %{buildroot}%{_mandir}/man3
baadda
fi
baadda
baadda
baadda
%check
baadda
%if %{runselftest}
baadda
make test
baadda
%endif
baadda
baadda
baadda
%clean
baadda
rm -rf %{buildroot}
baadda
baadda
baadda
%post -p /sbin/ldconfig
baadda
baadda
baadda
%postun -p /sbin/ldconfig
baadda
 
baadda
baadda
%files
baadda
%defattr (-,root,root,-) 
baadda
%doc AUTHORS COPYING README THANKS TODO ChangeLog
baadda
%{_bindir}/mem*
baadda
%exclude %{_libdir}/lib*.la
baadda
%{_libdir}/libhashkit.so.2*
baadda
%{_libdir}/libmemcached.so.11*
baadda
%{_libdir}/libmemcachedprotocol.so.0*
baadda
%{_libdir}/libmemcachedutil.so.2*
baadda
%{_mandir}/man1/mem*
baadda
baadda
baadda
%files devel
baadda
%defattr (-,root,root,-) 
baadda
%doc examples
baadda
%{_includedir}/libmemcached
baadda
%{_includedir}/libmemcached-1.0
baadda
%{_includedir}/libhashkit
baadda
%{_includedir}/libhashkit-1.0
baadda
%{_includedir}/libmemcachedprotocol-0.0
baadda
%{_includedir}/libmemcachedutil-1.0
baadda
%{_libdir}/libhashkit.so
baadda
%{_libdir}/libmemcached.so
baadda
%{_libdir}/libmemcachedprotocol.so
baadda
%{_libdir}/libmemcachedutil.so
baadda
%{_libdir}/pkgconfig/libmemcached.pc
baadda
%{_datadir}/aclocal/ax_libmemcached.m4
baadda
%{_mandir}/man3/libmemcached*
baadda
%{_mandir}/man3/libhashkit*
baadda
%{_mandir}/man3/memcached*
baadda
%{_mandir}/man3/hashkit*
baadda
baadda
baadda
%changelog
baadda
* Thu Jul 02 2015 Miroslav Lichvar <mlichvar@redhat.com> - 1.0.16-5
baadda
- don't test memaslap in make check (#1231828)
baadda
- rebuild with fixed binutils (#1238466)
baadda
baadda
* Wed Apr 22 2015 Miroslav Lichvar <mlichvar@redhat.com> - 1.0.16-4
baadda
- fix linking with libpthread (#1116949)
baadda
baadda
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.16-3
baadda
- Mass rebuild 2014-01-24
baadda
baadda
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.16-2
baadda
- Mass rebuild 2013-12-27
baadda
baadda
* Tue Apr 30 2013 Daniel Mach <dmach@redhat.com> - 1.0.16-1.2
baadda
- Rebuild for cyrus-sasl
baadda
baadda
* Mon Feb  4 2013 Remi Collet <remi@fedoraproject.org> - 1.0.16-1
baadda
- update to 1.0.16
baadda
- ignore test result for memaslap (XFAIL but PASS)
baadda
  https://bugs.launchpad.net/libmemcached/+bug/1115357
baadda
baadda
* Sat Dec 29 2012 Remi Collet <remi@fedoraproject.org> - 1.0.15-1
baadda
- update to 1.0.15
baadda
- libmemcachedprotocol is back
baadda
- add memaslap command line tool
baadda
- report various issues to upstream
baadda
  https://bugs.launchpad.net/libmemcached/+bug/1094413 (libevent)
baadda
  https://bugs.launchpad.net/libmemcached/+bug/1094414 (c99 MODE)
baadda
baadda
* Sat Nov 17 2012 Remi Collet <remi@fedoraproject.org> - 1.0.14-1
baadda
- update to 1.0.14
baadda
- libmemcachedprotocol removed
baadda
- sasl support is back
baadda
- run test during build
baadda
- report various issues to upstream
baadda
  https://bugs.launchpad.net/libmemcached/+bug/1079994 (bigendian)
baadda
  https://bugs.launchpad.net/libmemcached/+bug/1079995 (config.h)
baadda
  https://bugs.launchpad.net/libmemcached/+bug/1079996 (dtrace)
baadda
  https://bugs.launchpad.net/libmemcached/+bug/1079997 (-ldl)
baadda
  https://bugs.launchpad.net/libmemcached/+bug/1080000 (touch)
baadda
baadda
* Sat Oct 20 2012 Remi Collet <remi@fedoraproject.org> - 1.0.13-1
baadda
- update to 1.0.13
baadda
baadda
* Fri Oct 19 2012 Remi Collet <remi@fedoraproject.org> - 1.0.12-2
baadda
- temporary hack: fix LIBMEMCACHED_VERSION_HEX value
baadda
baadda
* Thu Oct 11 2012 Remi Collet <remi@fedoraproject.org> - 1.0.12-1
baadda
- update to 1.0.12
baadda
- add aclocal/ax_lib_libmemcached.m4
baadda
- abi-compliance-checker verdict : Compatible
baadda
- uggly hack for man pages
baadda
baadda
* Tue Sep 25 2012 Karsten Hopp <karsten@redhat.com> 1.0.11-2
baadda
- fix defined but not used variable error on bigendian machines
baadda
baadda
* Sat Sep 22 2012 Remi Collet <remi@fedoraproject.org> - 1.0.11-1
baadda
- update to 1.0.11, soname bump to libmemcached.so.11
baadda
- drop broken SASL support
baadda
- don't generate parser (bison 2.6 not supported)
baadda
baadda
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-2
baadda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
baadda
baadda
* Sun May 27 2012 Remi Collet <remi@fedoraproject.org> - 1.0.8-1
baadda
- update to 1.0.8
baadda
baadda
* Sun Apr 22 2012 Remi Collet <remi@fedoraproject.org> - 1.0.7-1
baadda
- update to 1.0.7
baadda
- regenerate parser using flex/bison (#816766)
baadda
baadda
* Sun Apr 22 2012 Remi Collet <remi@fedoraproject.org> - 1.0.6-2
baadda
- workaround for SASL detection
baadda
baadda
* Sat Apr 21 2012 Remi Collet <remi@fedoraproject.org> - 1.0.6-1
baadda
- update to 1.0.6
baadda
- soname bump to libmemcached.so.10 and libhashkit.so.2
baadda
baadda
* Sat Mar 03 2012 Remi Collet <remi@fedoraproject.org> - 1.0.4-1
baadda
- update to 1.0.4
baadda
- soname bump to libmemcached.so.9
baadda
- update description
baadda
baadda
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
baadda
- Rebuilt for c++ ABI breakage
baadda
baadda
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
baadda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
baadda
baadda
* Thu Oct 27 2011 Remi Collet <remi@fedoraproject.org> - 1.0.2-1
baadda
- update to 1.0.2
baadda
baadda
* Sun Oct 16 2011 Remi Collet <remi@fedoraproject.org> - 0.53-1
baadda
- update to 0.53
baadda
baadda
* Sat Sep 17 2011 Remi Collet <remi@fedoraproject.org> - 0.52-1
baadda
- update to 0.52
baadda
baadda
* Sun Jul 31 2011 Remi Collet <remi@fedoraproject.org> - 0.51-1
baadda
- update to 0.51 (soname bump libmemcached.so.8)
baadda
baadda
* Thu Jun 02 2011 Remi Collet <Fedora@famillecollet.com> - 0.49-1
baadda
- update to 0.49
baadda
- add build option : --with tests
baadda
baadda
* Mon Feb 28 2011 Remi Collet <Fedora@famillecollet.com> - 0.47-1
baadda
- update to 0.47
baadda
- remove patch merged upstream
baadda
baadda
* Sun Feb 20 2011 Remi Collet <Fedora@famillecollet.com> - 0.46-2
baadda
- patch Makefile.in instead of include.am (to avoid autoconf)
baadda
- donc requires pkgconfig with arch
baadda
baadda
* Fri Feb 18 2011 Remi Collet <Fedora@famillecollet.com> - 0.46-1
baadda
- update to 0.46
baadda
baadda
* Sat Feb 12 2011 Remi Collet <Fedora@famillecollet.com> - 0.44-6
baadda
- arch specific requires
baadda
baadda
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-5
baadda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
baadda
baadda
* Wed Nov 24 2010 Joe Orton <jorton@redhat.com> - 0.44-4
baadda
- repackage source tarball to remove non-free Hsieh hash code
baadda
baadda
* Sat Oct 02 2010 Remi Collet <Fedora@famillecollet.com> - 0.44-3
baadda
- improves SASL patch
baadda
baadda
* Sat Oct 02 2010 Remi Collet <Fedora@famillecollet.com> - 0.44-2
baadda
- enable SASL support
baadda
baadda
* Fri Oct 01 2010 Remi Collet <Fedora@famillecollet.com> - 0.44-1
baadda
- update to 0.44
baadda
- add soname version in %%file to detect change
baadda
baadda
* Fri Jul 30 2010 Remi Collet <Fedora@famillecollet.com> - 0.43-1
baadda
- update to 0.43
baadda
baadda
* Wed Jul 07 2010 Remi Collet <Fedora@famillecollet.com> - 0.42-1
baadda
- update to 0.42
baadda
baadda
* Tue May 04 2010 Remi Collet <Fedora@famillecollet.com> - 0.40-1
baadda
- update to 0.40 (new soname for libmemcached.so.5)
baadda
- new URI (site + source)
baadda
baadda
* Sat Mar 13 2010 Remi Collet <Fedora@famillecollet.com> - 0.38-1
baadda
- update to 0.38
baadda
baadda
* Sat Feb 06 2010 Remi Collet <Fedora@famillecollet.com> - 0.37-1
baadda
- update to 0.37 (soname bump)
baadda
- new libhashkit (should be a separated project in the futur)
baadda
baadda
* Sun Sep 13 2009 Remi Collet <Fedora@famillecollet.com> - 0.31-1
baadda
- update to 0.31
baadda
baadda
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-2
baadda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
baadda
baadda
* Sun Jun 14 2009 Remi Collet <Fedora@famillecollet.com> - 0.30-1
baadda
- update to 0.30
baadda
baadda
* Tue May 19 2009 Remi Collet <Fedora@famillecollet.com> - 0.29-1
baadda
- update to 0.29
baadda
baadda
* Fri May 01 2009 Remi Collet <Fedora@famillecollet.com> - 0.28-2
baadda
- add upstream patch to disable nonfree hsieh hash method
baadda
baadda
* Sat Apr 25 2009 Remi Collet <Fedora@famillecollet.com> - 0.28-1
baadda
- Initial RPM from Brian Aker spec
baadda
- create -devel subpackage
baadda
- add %%post %%postun %%check section
baadda