2011-02-04 20:06:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package libmemcached
|
|
|
|
#
|
2012-01-26 09:17:35 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-02-04 20:06:37 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-26 09:17:35 +01:00
|
|
|
|
2011-02-04 20:06:31 +01:00
|
|
|
Name: libmemcached
|
2012-08-14 18:00:14 +02:00
|
|
|
%define libsoname %{name}11
|
|
|
|
Summary: A C and C++ client library to the memcached server
|
2012-01-26 09:17:35 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-10-05 12:42:16 +02:00
|
|
|
Version: 1.0.11
|
2012-01-31 17:21:41 +01:00
|
|
|
Release: 0
|
2012-04-30 10:02:55 +02:00
|
|
|
Url: http://libmemcached.org
|
2012-08-15 08:40:46 +02:00
|
|
|
Source0: https://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz
|
|
|
|
Source1: https://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz.asc
|
2012-11-19 17:38:36 +01:00
|
|
|
Patch0: libmemcached-bigendian.patch
|
2012-01-26 09:17:35 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-02-04 20:06:31 +01:00
|
|
|
# List of additional build dependencies
|
2011-12-08 14:45:25 +01:00
|
|
|
BuildRequires: gcc-c++
|
2012-04-15 17:11:13 +02:00
|
|
|
BuildRequires: libevent-devel
|
2011-12-08 14:45:25 +01:00
|
|
|
BuildRequires: memcached
|
2012-01-31 17:21:41 +01:00
|
|
|
BuildRequires: pkgconfig
|
2011-02-04 20:06:31 +01:00
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Libmemcached is a C and C++ client library to the memcached server
|
|
|
|
(http://danga.com/memcached). It has been designed to be light on
|
|
|
|
memory usage, thread safe, and provide full access to server side
|
|
|
|
methods.
|
|
|
|
|
2012-08-14 18:00:14 +02:00
|
|
|
%package -n %{libsoname}
|
2011-02-04 20:06:31 +01:00
|
|
|
Summary: Libmemcached is a C and C++ client library to the memcached server
|
2012-01-26 09:17:35 +01:00
|
|
|
Group: System/Libraries
|
2011-02-04 20:06:31 +01:00
|
|
|
|
2012-08-14 18:00:14 +02:00
|
|
|
%description -n %{libsoname}
|
2011-02-04 20:06:31 +01:00
|
|
|
Libmemcached is a C and C++ client library to the memcached server
|
|
|
|
(http://danga.com/memcached). It has been designed to be light on
|
|
|
|
memory usage, thread safe, and provide full access to server side
|
|
|
|
methods.
|
|
|
|
|
2012-02-18 12:13:19 +01:00
|
|
|
%package -n libmemcachedutil2
|
2011-02-04 20:06:31 +01:00
|
|
|
Summary: Libmemcached is a C and C++ client library to the memcached server
|
2012-01-26 09:17:35 +01:00
|
|
|
Group: System/Libraries
|
2011-02-04 20:06:31 +01:00
|
|
|
|
2012-02-18 12:13:19 +01:00
|
|
|
%description -n libmemcachedutil2
|
2011-02-04 20:06:31 +01:00
|
|
|
Libmemcached is a C and C++ client library to the memcached server
|
|
|
|
(http://danga.com/memcached). It has been designed to be light on
|
|
|
|
memory usage, thread safe, and provide full access to server side
|
|
|
|
methods.
|
|
|
|
|
|
|
|
The libmemcachedutil library contains utility functions used by
|
|
|
|
libmemcached.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Libmemcached is a C and C++ client library to the memcached server
|
2012-01-26 09:17:35 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-08-14 18:00:14 +02:00
|
|
|
Requires: %{libsoname} = %{version}
|
2012-01-26 09:17:35 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: glibc-devel
|
2012-02-18 12:13:19 +01:00
|
|
|
Requires: libmemcachedutil2 = %{version}
|
2011-02-04 20:06:31 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Libmemcached is a C and C++ client library to the memcached server
|
|
|
|
(http://danga.com/memcached). It has been designed to be light on
|
|
|
|
memory usage, thread safe, and provide full access to server side
|
|
|
|
methods.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-11-19 17:38:36 +01:00
|
|
|
%patch0 -p1
|
2011-02-04 20:06:31 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --with-memcached=%{_sbindir}/memcached --disable-static --with-pic
|
2011-10-18 14:19:54 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-02-04 20:06:31 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
%__rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
# create symlinks for man pages
|
|
|
|
%fdupes -s %{buildroot}%{_mandir}
|
|
|
|
%endif
|
|
|
|
|
2012-04-30 10:02:55 +02:00
|
|
|
#%check
|
|
|
|
#make check
|
2011-02-04 20:06:31 +01:00
|
|
|
|
2012-08-14 18:00:14 +02:00
|
|
|
%post -n %{libsoname} -p /sbin/ldconfig
|
2011-02-04 20:06:31 +01:00
|
|
|
|
2012-08-14 18:00:14 +02:00
|
|
|
%postun -n %{libsoname} -p /sbin/ldconfig
|
2011-02-04 20:06:31 +01:00
|
|
|
|
2012-02-18 12:13:19 +01:00
|
|
|
%post -n libmemcachedutil2 -p /sbin/ldconfig
|
2011-02-04 20:06:31 +01:00
|
|
|
|
2012-02-18 12:13:19 +01:00
|
|
|
%postun -n libmemcachedutil2 -p /sbin/ldconfig
|
2011-02-04 20:06:31 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-02-18 12:13:19 +01:00
|
|
|
%{_bindir}/memcapable
|
2011-02-04 20:06:31 +01:00
|
|
|
%{_bindir}/memcat
|
|
|
|
%{_bindir}/memcp
|
|
|
|
%{_bindir}/memdump
|
|
|
|
%{_bindir}/memerror
|
2012-02-18 12:13:19 +01:00
|
|
|
%{_bindir}/memexist
|
2011-02-04 20:06:31 +01:00
|
|
|
%{_bindir}/memflush
|
2012-02-18 12:13:19 +01:00
|
|
|
%{_bindir}/memparse
|
|
|
|
%{_bindir}/memping
|
2011-02-04 20:06:31 +01:00
|
|
|
%{_bindir}/memrm
|
|
|
|
%{_bindir}/memslap
|
|
|
|
%{_bindir}/memstat
|
2012-02-18 12:13:19 +01:00
|
|
|
%{_bindir}/memtouch
|
2011-02-04 20:06:31 +01:00
|
|
|
%doc %{_mandir}/man1/mem*.1*
|
|
|
|
|
2012-08-14 18:00:14 +02:00
|
|
|
%files -n %{libsoname}
|
2011-02-04 20:06:31 +01:00
|
|
|
%defattr(-,root,root)
|
2012-08-14 18:00:14 +02:00
|
|
|
%{_libdir}/%{name}.so.*
|
2011-02-04 20:06:31 +01:00
|
|
|
|
2012-02-18 12:13:19 +01:00
|
|
|
%files -n libmemcachedutil2
|
2011-02-04 20:06:31 +01:00
|
|
|
%defattr(-,root,root)
|
2012-04-15 17:11:13 +02:00
|
|
|
%{_libdir}/libhashkit.so.2
|
|
|
|
%{_libdir}/libhashkit.so.2.*.*
|
2012-02-18 12:13:19 +01:00
|
|
|
%{_libdir}/libmemcachedutil.so.2
|
|
|
|
%{_libdir}/libmemcachedutil.so.2.*.*
|
|
|
|
%{_libdir}/libmemcachedprotocol.so.0
|
|
|
|
%{_libdir}/libmemcachedprotocol.so.0.*.*
|
2011-02-04 20:06:31 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2012-08-14 18:00:14 +02:00
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%dir %{_includedir}/%{name}-1.0
|
2012-02-18 12:13:19 +01:00
|
|
|
%dir %{_includedir}/libhashkit
|
|
|
|
%dir %{_includedir}/libhashkit-1.0
|
|
|
|
%dir %{_includedir}/libmemcachedprotocol-0.0
|
|
|
|
%dir %{_includedir}/libmemcachedutil-1.0
|
|
|
|
%{_includedir}/libhashkit/*
|
|
|
|
%{_includedir}/libhashkit-1.0/*
|
2012-08-14 18:00:14 +02:00
|
|
|
%{_includedir}/%{name}/*
|
|
|
|
%{_includedir}/%{name}-1.0/*
|
2012-02-18 12:13:19 +01:00
|
|
|
%{_includedir}/libmemcachedprotocol-0.0/*
|
|
|
|
%{_includedir}/libmemcachedutil-1.0/*
|
2011-02-04 20:06:31 +01:00
|
|
|
%{_libdir}/pkgconfig/libmemcached.pc
|
2012-02-18 12:13:19 +01:00
|
|
|
%{_libdir}/libhashkit.so
|
2012-08-14 18:00:14 +02:00
|
|
|
%{_libdir}/%{name}.so
|
2012-02-18 12:13:19 +01:00
|
|
|
%{_libdir}/libmemcachedutil.so
|
|
|
|
%{_libdir}/libmemcachedprotocol.so
|
|
|
|
%doc %{_mandir}/man3/*.3*
|
2011-02-04 20:06:31 +01:00
|
|
|
|
|
|
|
%changelog
|