File libmemcache.spec of Package libmemcache
#
# spec file for package libmemcache (Version 1.4.0.rc2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
# norootforbuild
Name: libmemcache
Version: 1.4.0.rc2
Release: 126
#
Group: Development/Libraries/C and C++
License: BSD 3-Clause; X11/MIT
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#
Url: http://people.freebsd.org/~seanc/libmemcache/
Source: http://people.freebsd.org/~seanc/libmemcache/%{name}/%{name}-%{version}.tar.bz2
Patch: libmemcache-1.4.0.rc2_gnusource.patch
Patch1: libmemcache-1.4.0.rc2_gcc43_inline.patch
Patch2: libmemcache-1.4.0.rc2_preserve_cflags.patch
#
Summary: A client library for memcached
%description
libmemcache implements a client for the superior memcached from Danga
Interactive.
Authors:
--------
Sean Chittenden <sean@chittenden.org>
%define library_name libmemcache0
%define debug_package_requires %{library_name} = %{version}-%{release}
%package -n libmemcache0
License: BSD 3-Clause; X11/MIT
Group: Development/Libraries/C and C++
Summary: A client library for memcached
%description -n libmemcache0
libmemcache implements a client for the superior memcached from Danga
Interactive.
This package holds the shared libraries from libmemcache.
Authors:
--------
Sean Chittenden <sean@chittenden.org>
%package devel
License: BSD 3-Clause; X11/MIT
Requires: %{library_name} = %{version}
Group: Development/Libraries/C and C++
Summary: Development files for libmemcache
%description devel
libmemcache implements a client for the superior memcached from Danga
Interactive.
This package contains the development files for libmemcache.
Authors:
--------
Sean Chittenden <sean@chittenden.org>
%prep
%setup
%patch
%patch1
%patch2
touch NEWS README AUTHORS
%build
autoreconf -fi
%configure
%{__make} STRIP=true
%install
%makeinstall STRIP=true
%{__rm} %{buildroot}%{_libdir}/%{name}.*a
%clean
%{__rm} -rf %{buildroot}
%post -n %{library_name} -p /sbin/ldconfig
%postun -n %{library_name} -p /sbin/ldconfig
%files -n %{library_name}
%defattr(-,root,root)
%{_libdir}/%{name}.so.*
%doc COPYING ChangeLog
%files devel
%defattr(-,root,root)
%{_libdir}/%{name}.so
%{_includedir}/memcache*
%changelog
* Mon Mar 09 2009 mrueckert@suse.de
- use shared library packaging policy
* Fri May 16 2008 mrueckert@suse.de
- added libmemcache-1.4.0.rc2_gcc43_inline.patch:
the changed inline behavior in gcc 4.3 breaks the lib. remove
the inline statement for the functions.
- added libmemcache-1.4.0.rc2_preserve_cflags.patch:
preserve CFLAGS passed from the environment.
- delete static lib and libtoolarchive
* Thu Aug 24 2006 mrueckert@suse.de
- run ldconfig
* Mon Jun 19 2006 mrueckert@suse.de
- update to version 1.4.0rc2:
o many small changes
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Oct 04 2005 mrueckert@suse.de
- update to version 1.4.0b9
* Wed Sep 14 2005 mrueckert@suse.de
- update to version 1.4.0b5