2007-01-15 23:22:24 +00:00
|
|
|
#
|
2011-11-21 14:46:43 +00:00
|
|
|
# spec file for package libmemcache
|
2007-01-15 23:22:24 +00:00
|
|
|
#
|
2015-07-30 19:25:42 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:22:24 +00:00
|
|
|
#
|
2009-03-09 22:15:17 +00: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.
|
|
|
|
|
2007-01-15 23:22:24 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-05-16 23:39:02 +00:00
|
|
|
|
2015-07-30 19:25:42 +00:00
|
|
|
%define library_name libmemcache0
|
2007-01-15 23:22:24 +00:00
|
|
|
Name: libmemcache
|
|
|
|
Version: 1.4.0.rc2
|
2012-01-31 16:14:10 +00:00
|
|
|
Release: 0
|
2015-07-30 19:25:42 +00:00
|
|
|
Summary: A client library for memcached
|
|
|
|
License: BSD-3-Clause and MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-05-16 23:39:02 +00:00
|
|
|
Url: http://people.freebsd.org/~seanc/libmemcache/
|
2007-01-15 23:22:24 +00:00
|
|
|
Source: http://people.freebsd.org/~seanc/libmemcache/%{name}/%{name}-%{version}.tar.bz2
|
2015-07-30 19:25:42 +00:00
|
|
|
Patch0: libmemcache-1.4.0.rc2_gnusource.patch
|
2008-05-16 23:39:02 +00:00
|
|
|
Patch1: libmemcache-1.4.0.rc2_gcc43_inline.patch
|
|
|
|
Patch2: libmemcache-1.4.0.rc2_preserve_cflags.patch
|
2015-07-30 19:25:42 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2011-11-21 14:46:43 +00:00
|
|
|
BuildRequires: libtool
|
2015-07-30 19:25:42 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-15 23:22:24 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libmemcache implements a client for the superior memcached from Danga
|
|
|
|
Interactive.
|
|
|
|
|
|
|
|
|
2015-07-30 19:25:42 +00:00
|
|
|
%package -n %{library_name}
|
2009-03-09 22:15:17 +00:00
|
|
|
Summary: A client library for memcached
|
2012-01-31 16:14:10 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-03-09 22:15:17 +00:00
|
|
|
|
|
|
|
%description -n libmemcache0
|
|
|
|
libmemcache implements a client for the superior memcached from Danga
|
|
|
|
Interactive.
|
|
|
|
|
|
|
|
This package holds the shared libraries from libmemcache.
|
|
|
|
|
2007-01-15 23:22:24 +00:00
|
|
|
%package devel
|
2008-05-16 23:39:02 +00:00
|
|
|
Summary: Development files for libmemcache
|
2012-01-31 16:14:10 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-07-30 19:25:42 +00:00
|
|
|
Requires: %{library_name} = %{version}
|
2007-01-15 23:22:24 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libmemcache implements a client for the superior memcached from Danga
|
|
|
|
Interactive.
|
|
|
|
|
|
|
|
This package contains the development files for libmemcache.
|
|
|
|
|
|
|
|
%prep
|
2024-03-01 08:30:56 +00:00
|
|
|
%autosetup -p0
|
2007-01-15 23:22:24 +00:00
|
|
|
touch NEWS README AUTHORS
|
|
|
|
|
|
|
|
%build
|
2015-07-30 19:25:42 +00:00
|
|
|
autoreconf -fiv
|
2007-01-15 23:22:24 +00:00
|
|
|
%configure
|
2015-07-30 19:25:42 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:22:24 +00:00
|
|
|
|
|
|
|
%install
|
2015-07-30 19:25:42 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags} STRIP=true
|
|
|
|
rm %{buildroot}%{_libdir}/%{name}.*a
|
2007-01-15 23:22:24 +00:00
|
|
|
|
2009-03-09 22:15:17 +00:00
|
|
|
%post -n %{library_name} -p /sbin/ldconfig
|
2007-01-15 23:22:24 +00:00
|
|
|
|
2009-03-09 22:15:17 +00:00
|
|
|
%postun -n %{library_name} -p /sbin/ldconfig
|
2007-01-15 23:22:24 +00:00
|
|
|
|
2009-03-09 22:15:17 +00:00
|
|
|
%files -n %{library_name}
|
2007-01-15 23:22:24 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%doc COPYING ChangeLog
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_includedir}/memcache*
|
|
|
|
|
2008-05-16 23:39:02 +00:00
|
|
|
%changelog
|