forked from pool/libmemcached
Accepting request 395014 from devel:libraries:c_c++
1 OBS-URL: https://build.opensuse.org/request/show/395014 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libmemcached?expand=0&rev=25
This commit is contained in:
commit
a032fa73c9
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 11 14:53:53 UTC 2016 - kstreitova@suse.com
|
||||||
|
|
||||||
|
- use spec-cleaner to clean specfile
|
||||||
|
- remove unnecessary conditionals
|
||||||
|
- update description and summary
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 23 16:50:49 UTC 2015 - mrueckert@suse.de
|
Mon Feb 23 16:50:49 UTC 2015 - mrueckert@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libmemcached
|
# spec file for package libmemcached
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,15 +16,15 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: libmemcached
|
|
||||||
%define libsoname %{name}11
|
%define libsoname %{name}11
|
||||||
Summary: A C and C++ client library to the memcached server
|
Name: libmemcached
|
||||||
License: BSD-3-Clause
|
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Version: 1.0.18
|
Version: 1.0.18
|
||||||
Release: 0
|
Release: 0
|
||||||
|
Summary: A C/C++ client library and tools for the memcached server
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
Url: http://libmemcached.org
|
Url: http://libmemcached.org
|
||||||
Source0: https://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz
|
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
|
Source1: https://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz.asc
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
# PATCH-FIX-UPSTREAM libmemcached-pthread.patch lp#133614 dimstar@opensuse.org -- Fix pthread detection
|
# PATCH-FIX-UPSTREAM libmemcached-pthread.patch lp#133614 dimstar@opensuse.org -- Fix pthread detection
|
||||||
@ -32,51 +32,48 @@ Patch0: libmemcached-pthread.patch
|
|||||||
Patch1: libmemcached-automake1_14.diff
|
Patch1: libmemcached-automake1_14.diff
|
||||||
# PATCH-FIX-UPSTREAM libmemcached-no-docs-available.patch dimstar@opensuse.org -- Do not build docs if not VCS checkout
|
# PATCH-FIX-UPSTREAM libmemcached-no-docs-available.patch dimstar@opensuse.org -- Do not build docs if not VCS checkout
|
||||||
Patch2: libmemcached-no-docs-available.patch
|
Patch2: libmemcached-no-docs-available.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
# List of additional build dependencies
|
# List of additional build dependencies
|
||||||
BuildRequires: automake >= 1.13
|
BuildRequires: automake >= 1.13
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: cyrus-sasl-devel
|
BuildRequires: cyrus-sasl-devel
|
||||||
|
# needed for man pages
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libevent-devel
|
BuildRequires: libevent-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: memcached
|
BuildRequires: memcached
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
# needed for man pages
|
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: python-Sphinx
|
BuildRequires: python-Sphinx
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Libmemcached is a C and C++ client library to the memcached server
|
Libmemcached is a C/C++ client library and tools for the memcached server
|
||||||
(http://danga.com/memcached). It has been designed to be light on
|
(http://memcached.org/). It has been designed to be light on memory
|
||||||
memory usage, thread safe, and provide full access to server side
|
usage, thread safe, and provide full access to server side methods.
|
||||||
methods.
|
|
||||||
|
|
||||||
%package -n %{libsoname}
|
%package -n %{libsoname}
|
||||||
Summary: Libmemcached is a C and C++ client library to the memcached server
|
Summary: Libmemcached is a C/C++ client library and tools for the memcached server
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %{libsoname}
|
%description -n %{libsoname}
|
||||||
Libmemcached is a C and C++ client library to the memcached server
|
Libmemcached is a C/C++ client library and tools for the memcached server
|
||||||
(http://danga.com/memcached). It has been designed to be light on
|
(http://memcached.org/). It has been designed to be light on memory
|
||||||
memory usage, thread safe, and provide full access to server side
|
usage, thread safe, and provide full access to server side methods.
|
||||||
methods.
|
|
||||||
|
|
||||||
%package -n libmemcachedutil2
|
%package -n libmemcachedutil2
|
||||||
Summary: Libmemcached is a C and C++ client library to the memcached server
|
Summary: Libmemcached is a C/C++ client library and tools for the memcached server
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libmemcachedutil2
|
%description -n libmemcachedutil2
|
||||||
Libmemcached is a C and C++ client library to the memcached server
|
Libmemcached is a C/C++ client library and tools for the memcached server
|
||||||
(http://danga.com/memcached). It has been designed to be light on
|
(http://memcached.org/). It has been designed to be light on memory
|
||||||
memory usage, thread safe, and provide full access to server side
|
usage, thread safe, and provide full access to server side methods.
|
||||||
methods.
|
|
||||||
|
|
||||||
The libmemcachedutil library contains utility functions used by
|
The libmemcachedutil library contains utility functions used by
|
||||||
libmemcached.
|
libmemcached.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Libmemcached is a C and C++ client library to the memcached server
|
Summary: Libmemcached is a C/C++ client library and tools for the memcached server
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{libsoname} = %{version}
|
Requires: %{libsoname} = %{version}
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
@ -86,10 +83,9 @@ Requires: glibc-devel
|
|||||||
Requires: libmemcachedutil2 = %{version}
|
Requires: libmemcachedutil2 = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Libmemcached is a C and C++ client library to the memcached server
|
Libmemcached is a C/C++ client library and tools for the memcached server
|
||||||
(http://danga.com/memcached). It has been designed to be light on
|
(http://memcached.org/). It has been designed to be light on memory
|
||||||
memory usage, thread safe, and provide full access to server side
|
usage, thread safe, and provide full access to server side methods.
|
||||||
methods.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -102,25 +98,20 @@ autoreconf -fiv
|
|||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-libmemcachedprotocol \
|
--enable-libmemcachedprotocol \
|
||||||
--with-memcached=%{_sbindir}/memcached
|
--with-memcached=%{_sbindir}/memcached
|
||||||
make V=1 CFLAGS="-std=c99 %optflags" CXXFLAGS="%optflags" %{?_smp_mflags}
|
make V=1 CFLAGS="-std=c99 %{optflags}" CXXFLAGS="%{optflags}" %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall V=1 CFLAGS="-std=c99 %optflags" CXXFLAGS="%optflags"
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install V=1 CFLAGS="-std=c99 %{optflags}" CXXFLAGS="%{optflags}"
|
||||||
%__rm -f %{buildroot}%{_libdir}/*.la
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
%if 0%{?suse_version} > 1020
|
|
||||||
# create symlinks for man pages
|
# create symlinks for man pages
|
||||||
%fdupes -s %{buildroot}%{_mandir}
|
%fdupes -s %{buildroot}%{_mandir}
|
||||||
%endif
|
|
||||||
|
|
||||||
# remove not needed files
|
# remove not needed files
|
||||||
%{__rm} -f %{buildroot}/usr/share/aclocal/ax_libmemcached.m4
|
rm -f %{buildroot}%{_datadir}/aclocal/ax_libmemcached.m4
|
||||||
|
|
||||||
%post -n %{libsoname} -p /sbin/ldconfig
|
%post -n %{libsoname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{libsoname} -p /sbin/ldconfig
|
%postun -n %{libsoname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libmemcachedutil2 -p /sbin/ldconfig
|
%post -n libmemcachedutil2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libmemcachedutil2 -p /sbin/ldconfig
|
%postun -n libmemcachedutil2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -138,7 +129,7 @@ make V=1 CFLAGS="-std=c99 %optflags" CXXFLAGS="%optflags" %{?_smp_mflags}
|
|||||||
%{_bindir}/memslap
|
%{_bindir}/memslap
|
||||||
%{_bindir}/memstat
|
%{_bindir}/memstat
|
||||||
%{_bindir}/memtouch
|
%{_bindir}/memtouch
|
||||||
%doc %{_mandir}/man1/mem*.1*
|
%{_mandir}/man1/mem*.1*
|
||||||
|
|
||||||
%files -n %{libsoname}
|
%files -n %{libsoname}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -172,6 +163,6 @@ make V=1 CFLAGS="-std=c99 %optflags" CXXFLAGS="%optflags" %{?_smp_mflags}
|
|||||||
%{_libdir}/%{name}.so
|
%{_libdir}/%{name}.so
|
||||||
%{_libdir}/libmemcachedutil.so
|
%{_libdir}/libmemcachedutil.so
|
||||||
%{_libdir}/libmemcachedprotocol.so
|
%{_libdir}/libmemcachedprotocol.so
|
||||||
%doc %{_mandir}/man3/*.3*
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user