650452
# spec file for libmemcached
650452
#
650452
# Copyright (c) 2009-2018 Remi Collet
650452
# License: CC-BY-SA
650452
# http://creativecommons.org/licenses/by-sa/4.0/
650452
#
650452
# Please, preserve the changelog entries
650452
#
650452
# Lot of tests are broken making test suite unusable
650452
%global with_tests       0%{?_witht_tests:1}
650452
%global with_sasl        1
650452
%global libname          libmemcached
650452
650452
Name:      libmemcached
650452
Summary:   Client library and command line tools for memcached server
650452
Version:   1.0.18
feb4ee
Release:   17%{?dist}
650452
License:   BSD
650452
URL:       http://libmemcached.org/
650452
# Original sources:
650452
#   http://launchpad.net/libmemcached/1.0/%%{version}/+download/libmemcached-%%{version}.tar.gz
650452
# The source tarball must be repackaged to remove the Hsieh hash
650452
# code, since the license is non-free.  When upgrading, download the new
650452
# source tarball, and run "./strip-hsieh.sh <version>" to produce the
650452
# "-exhsieh" tarball.
650452
Source0:   %{libname}-%{version}-exhsieh.tar.gz
650452
650452
BuildRequires: gcc
650452
BuildRequires: gcc-c++
650452
%if %{with_sasl}
650452
BuildRequires: cyrus-sasl-devel
650452
%endif
650452
BuildRequires: flex
650452
BuildRequires: bison
650452
BuildRequires: python3-sphinx
650452
BuildRequires: memcached
650452
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
650452
BuildRequires: systemtap-sdt-devel
650452
%endif
650452
BuildRequires: libevent-devel
650452
650452
Provides:      bundled(bobjenkins-hash)
650452
Requires:      %{name}-libs%{?_isa} = %{version}-%{release}
650452
650452
Patch0: libmemcached-fix-linking-with-libpthread.patch
650452
# Fix: ISO C++ forbids comparison between pointer and integer [-fpermissive]
650452
# https://bugs.launchpad.net/libmemcached/+bug/1663985
650452
Patch1: %{libname}-build.patch
650452
# Fix typo in memparse man page
650452
# https://bugs.launchpad.net/libmemcached/+bug/1675762
650452
Patch2: %{libname}-memparse-man.patch
feb4ee
Patch3: %{libname}-memaslap-help.patch
650452
650452
%description
650452
libmemcached is a C/C++ client library and tools for the memcached server
650452
(http://memcached.org/). It has been designed to be light on memory
650452
usage, and provide full access to server side methods.
650452
650452
It also implements several command line tools:
650452
650452
memaslap    Load testing and benchmarking a server
650452
memcapable  Checking a Memcached server capibilities and compatibility
650452
memcat      Copy the value of a key to standard output
650452
memcp       Copy data to a server
650452
memdump     Dumping your server
650452
memerror    Translate an error code to a string
650452
memexist    Check for the existance of a key
650452
memflush    Flush the contents of your servers
650452
memparse    Parse an option string
650452
memping     Test to see if a server is available.
650452
memrm       Remove a key(s) from the server
650452
memslap     Generate testing loads on a memcached cluster
650452
memstat     Dump the stats of your servers to standard output
650452
memtouch    Touches a key
650452
650452
650452
%package devel
650452
Summary:    Header files and development libraries for %{name}
650452
Requires:   %{name}%{?_isa} = %{version}-%{release}
650452
Requires:   pkgconfig
650452
%if %{with_sasl}
650452
Requires:   cyrus-sasl-devel%{?_isa}
650452
%endif
650452
650452
%description devel
650452
This package contains the header files and development libraries
650452
for %{name}. If you like to develop programs using %{name}, 
650452
you will need to install %{name}-devel.
650452
650452
650452
%package libs
650452
Summary:    %{libname} libraries
650452
650452
%description libs
650452
This package contains the %{libname} libraries version %{version}.
650452
650452
650452
%prep
650452
%setup -q -n %{libname}-%{version}
650452
%patch0 -p1 -b .link
650452
%patch1 -p1 -b .build
650452
%patch2 -p1 -b .memparse-man
feb4ee
%patch3 -p1 -b .memaslap-help
650452
650452
mkdir examples
650452
cp -p tests/*.{cc,h} examples/
650452
650452
650452
%build
650452
# option --with-memcached=false to disable server binary check (as we don't run test)
650452
%configure \
650452
%if %{with_tests}
650452
   --with-memcached=%{_bindir}/memcached \
650452
%else
650452
   --with-memcached=false \
650452
%endif
650452
%if %{with_sasl}
650452
   --enable-sasl \
650452
%else
650452
   --disable-sasl \
650452
%endif
650452
   --enable-libmemcachedprotocol \
650452
   --enable-memaslap \
650452
   --enable-dtrace \
650452
   --disable-static
650452
650452
%if 0%{?fedora} < 14 && 0%{?rhel} < 7
650452
# for warning: unknown option after '#pragma GCC diagnostic' kind
650452
sed -e 's/-Werror//' -i Makefile
650452
%endif
650452
650452
make %{_smp_mflags} V=1
650452
650452
650452
%install
650452
make install  DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
650452
650452
# Hack: when sphinx-build too old (fedora < 14 and rhel < 7)
650452
# install upstream provided man pages
650452
if [ ! -d %{buildroot}%{_mandir}/man1 ]; then
650452
   install -d %{buildroot}%{_mandir}/man1
650452
   install -p -m 644 man/*1 %{buildroot}%{_mandir}/man1
650452
   install -d %{buildroot}%{_mandir}/man3
650452
   install -p -m 644 man/*3 %{buildroot}%{_mandir}/man3
650452
fi
650452
650452
650452
%check
650452
%if %{with_tests}
650452
: Run test suite
650452
make test
650452
%else
650452
: Skip test suite
650452
%endif
650452
650452
650452
%files
650452
%{_bindir}/mem*
650452
%exclude %{_libdir}/lib*.la
650452
%{_mandir}/man1/mem*
650452
650452
%files libs
650452
%license COPYING
650452
%doc AUTHORS README THANKS TODO ChangeLog
650452
%{_libdir}/libhashkit.so.2*
650452
%{_libdir}/libmemcached.so.11*
650452
%{_libdir}/libmemcachedprotocol.so.0*
650452
%{_libdir}/libmemcachedutil.so.2*
650452
650452
%files devel
650452
%doc examples
650452
%{_includedir}/libmemcached
650452
%{_includedir}/libmemcached-1.0
650452
%{_includedir}/libhashkit
650452
%{_includedir}/libhashkit-1.0
650452
%{_includedir}/libmemcachedprotocol-0.0
650452
%{_includedir}/libmemcachedutil-1.0
650452
%{_libdir}/libhashkit.so
650452
%{_libdir}/libmemcached.so
650452
%{_libdir}/libmemcachedprotocol.so
650452
%{_libdir}/libmemcachedutil.so
650452
%{_libdir}/pkgconfig/libmemcached.pc
650452
%{_datadir}/aclocal/ax_libmemcached.m4
650452
%{_mandir}/man3/libmemcached*
650452
%{_mandir}/man3/libhashkit*
650452
%{_mandir}/man3/memcached*
650452
%{_mandir}/man3/hashkit*
650452
650452
650452
%changelog
feb4ee
* Mon Oct 25 2021 Tomas Korbar <tkorbar@redhat.com> - 1.0.18-17
feb4ee
- fix also memaslap help text
feb4ee
- Related: rhbz#2008399
feb4ee
feb4ee
* Mon Oct 11 2021 Tomas Korbar <tkorbar@redhat.com> - 1.0.18-16
feb4ee
- fix typo in memaslap man page
feb4ee
- Resolves: rhbz#2008399
feb4ee
650452
* Fri Jul 27 2018 Miroslav Lichvar <mlichvar@redhat.com> 1.0.18-15
650452
- fix typo in memparse man page (#1609312)
650452
650452
* Mon Jul 09 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.0.18-14
650452
- Change to python3-sphinx
650452
650452
* Tue Feb 20 2018 Remi Collet <remi@remirepo.net> - 1.0.18-13
650452
- missing BR on C/C++ compilers
650452
650452
* Thu Feb 15 2018 Remi Collet <remi@remirepo.net> - 1.0.18-12
650452
- drop ldconfig scriptlets
650452
650452
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-11
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
650452
650452
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-10
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
650452
650452
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-9
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
650452
650452
* Sun Feb 12 2017 Remi Collet <remi@fedoraproject.org> - 1.0.18-8
650452
- add build patch to fix FTBFS
650452
650452
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-8
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
650452
650452
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-7
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
650452
650452
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.18-6
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
650452
650452
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.0.18-5
650452
- Rebuilt for GCC 5 C++11 ABI change
650452
650452
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.18-4
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
650452
650452
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.18-3
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
650452
650452
* Wed Feb 19 2014 Remi Collet <remi@fedoraproject.org> - 1.0.18-2
650452
- cleanups
650452
650452
* Wed Feb 19 2014 Remi Collet <remi@fedoraproject.org> - 1.0.18-1
650452
- update to 1.0.18
650452
- disable test suite (too much broken tests)
650452
650452
* Sat Dec 14 2013 Remi Collet <remi@fedoraproject.org> - 1.0.16-2
650452
- move libraries in new libs sub packages
650452
- add provides for bundled(bobjenkins-hash) #1041351
650452
- apply libpthread workaround #1037707
650452
- spec cleanups
650452
650452
* Tue Dec 03 2013 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.0.16-2
650452
- Fix linking against libpthread as a workaround for libtool bug #661333
650452
650452
* Mon Aug  5 2013 Remi Collet <remi@fedoraproject.org> - 1.0.16-1
650452
- revert to 1.0.16 for fedora 20
650452
650452
* Mon Aug  5 2013 Remi Collet <remi@fedoraproject.org> - 1.0.17-2
650452
- fix BR, libasan don't exist on all arch
650452
- disable all sanitize options (only for dev)
650452
650452
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.17-2
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
650452
650452
* Thu Apr  4 2013 Remi Collet <remi@fedoraproject.org> - 1.0.17-1
650452
- update to 1.0.17
650452
- fix option --with-memcached and report regression
650452
  https://bugs.launchpad.net/libmemcached/+bug/1164440
650452
- broken build when -fsanitize=thread available
650452
  https://bugs.launchpad.net/libmemcached/+bug/1164442
650452
650452
* Mon Feb  4 2013 Remi Collet <remi@fedoraproject.org> - 1.0.16-1
650452
- update to 1.0.16
650452
- ignore test result for memaslap (XFAIL but PASS)
650452
  https://bugs.launchpad.net/libmemcached/+bug/1115357
650452
650452
* Sat Dec 29 2012 Remi Collet <remi@fedoraproject.org> - 1.0.15-1
650452
- update to 1.0.15
650452
- libmemcachedprotocol is back
650452
- add memaslap command line tool
650452
- report various issues to upstream
650452
  https://bugs.launchpad.net/libmemcached/+bug/1094413 (libevent)
650452
  https://bugs.launchpad.net/libmemcached/+bug/1094414 (c99 MODE)
650452
650452
* Sat Nov 17 2012 Remi Collet <remi@fedoraproject.org> - 1.0.14-1
650452
- update to 1.0.14
650452
- libmemcachedprotocol removed
650452
- sasl support is back
650452
- run test during build
650452
- report various issues to upstream
650452
  https://bugs.launchpad.net/libmemcached/+bug/1079994 (bigendian)
650452
  https://bugs.launchpad.net/libmemcached/+bug/1079995 (config.h)
650452
  https://bugs.launchpad.net/libmemcached/+bug/1079996 (dtrace)
650452
  https://bugs.launchpad.net/libmemcached/+bug/1079997 (-ldl)
650452
  https://bugs.launchpad.net/libmemcached/+bug/1080000 (touch)
650452
650452
* Sat Oct 20 2012 Remi Collet <remi@fedoraproject.org> - 1.0.13-1
650452
- update to 1.0.13
650452
650452
* Fri Oct 19 2012 Remi Collet <remi@fedoraproject.org> - 1.0.12-2
650452
- temporary hack: fix LIBMEMCACHED_VERSION_HEX value
650452
650452
* Thu Oct 11 2012 Remi Collet <remi@fedoraproject.org> - 1.0.12-1
650452
- update to 1.0.12
650452
- add aclocal/ax_lib_libmemcached.m4
650452
- abi-compliance-checker verdict : Compatible
650452
- uggly hack for man pages
650452
650452
* Tue Sep 25 2012 Karsten Hopp <karsten@redhat.com> 1.0.11-2
650452
- fix defined but not used variable error on bigendian machines
650452
650452
* Sat Sep 22 2012 Remi Collet <remi@fedoraproject.org> - 1.0.11-1
650452
- update to 1.0.11, soname bump to libmemcached.so.11
650452
- drop broken SASL support
650452
- don't generate parser (bison 2.6 not supported)
650452
650452
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-2
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
650452
650452
* Sun May 27 2012 Remi Collet <remi@fedoraproject.org> - 1.0.8-1
650452
- update to 1.0.8
650452
650452
* Sun Apr 22 2012 Remi Collet <remi@fedoraproject.org> - 1.0.7-1
650452
- update to 1.0.7
650452
- regenerate parser using flex/bison (#816766)
650452
650452
* Sun Apr 22 2012 Remi Collet <remi@fedoraproject.org> - 1.0.6-2
650452
- workaround for SASL detection
650452
650452
* Sat Apr 21 2012 Remi Collet <remi@fedoraproject.org> - 1.0.6-1
650452
- update to 1.0.6
650452
- soname bump to libmemcached.so.10 and libhashkit.so.2
650452
650452
* Sat Mar 03 2012 Remi Collet <remi@fedoraproject.org> - 1.0.4-1
650452
- update to 1.0.4
650452
- soname bump to libmemcached.so.9
650452
- update description
650452
650452
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
650452
- Rebuilt for c++ ABI breakage
650452
650452
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
650452
650452
* Thu Oct 27 2011 Remi Collet <remi@fedoraproject.org> - 1.0.2-1
650452
- update to 1.0.2
650452
650452
* Sun Oct 16 2011 Remi Collet <remi@fedoraproject.org> - 0.53-1
650452
- update to 0.53
650452
650452
* Sat Sep 17 2011 Remi Collet <remi@fedoraproject.org> - 0.52-1
650452
- update to 0.52
650452
650452
* Sun Jul 31 2011 Remi Collet <remi@fedoraproject.org> - 0.51-1
650452
- update to 0.51 (soname bump libmemcached.so.8)
650452
650452
* Thu Jun 02 2011 Remi Collet <Fedora@famillecollet.com> - 0.49-1
650452
- update to 0.49
650452
- add build option : --with tests
650452
650452
* Mon Feb 28 2011 Remi Collet <Fedora@famillecollet.com> - 0.47-1
650452
- update to 0.47
650452
- remove patch merged upstream
650452
650452
* Sun Feb 20 2011 Remi Collet <Fedora@famillecollet.com> - 0.46-2
650452
- patch Makefile.in instead of include.am (to avoid autoconf)
650452
- donc requires pkgconfig with arch
650452
650452
* Fri Feb 18 2011 Remi Collet <Fedora@famillecollet.com> - 0.46-1
650452
- update to 0.46
650452
650452
* Sat Feb 12 2011 Remi Collet <Fedora@famillecollet.com> - 0.44-6
650452
- arch specific requires
650452
650452
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-5
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
650452
650452
* Wed Nov 24 2010 Joe Orton <jorton@redhat.com> - 0.44-4
650452
- repackage source tarball to remove non-free Hsieh hash code
650452
650452
* Sat Oct 02 2010 Remi Collet <Fedora@famillecollet.com> - 0.44-3
650452
- improves SASL patch
650452
650452
* Sat Oct 02 2010 Remi Collet <Fedora@famillecollet.com> - 0.44-2
650452
- enable SASL support
650452
650452
* Fri Oct 01 2010 Remi Collet <Fedora@famillecollet.com> - 0.44-1
650452
- update to 0.44
650452
- add soname version in %%file to detect change
650452
650452
* Fri Jul 30 2010 Remi Collet <Fedora@famillecollet.com> - 0.43-1
650452
- update to 0.43
650452
650452
* Wed Jul 07 2010 Remi Collet <Fedora@famillecollet.com> - 0.42-1
650452
- update to 0.42
650452
650452
* Tue May 04 2010 Remi Collet <Fedora@famillecollet.com> - 0.40-1
650452
- update to 0.40 (new soname for libmemcached.so.5)
650452
- new URI (site + source)
650452
650452
* Sat Mar 13 2010 Remi Collet <Fedora@famillecollet.com> - 0.38-1
650452
- update to 0.38
650452
650452
* Sat Feb 06 2010 Remi Collet <Fedora@famillecollet.com> - 0.37-1
650452
- update to 0.37 (soname bump)
650452
- new libhashkit (should be a separated project in the futur)
650452
650452
* Sun Sep 13 2009 Remi Collet <Fedora@famillecollet.com> - 0.31-1
650452
- update to 0.31
650452
650452
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-2
650452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
650452
650452
* Sun Jun 14 2009 Remi Collet <Fedora@famillecollet.com> - 0.30-1
650452
- update to 0.30
650452
650452
* Tue May 19 2009 Remi Collet <Fedora@famillecollet.com> - 0.29-1
650452
- update to 0.29
650452
650452
* Fri May 01 2009 Remi Collet <Fedora@famillecollet.com> - 0.28-2
650452
- add upstream patch to disable nonfree hsieh hash method
650452
650452
* Sat Apr 25 2009 Remi Collet <Fedora@famillecollet.com> - 0.28-1
650452
- Initial RPM from Brian Aker spec
650452
- create -devel subpackage
650452
- add %%post %%postun %%check section
650452