File libmemcache.spec of Package libmemcache

#
# spec file for package libmemcache (Version 1.4.0.rc2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libmemcache
Version:        1.4.0.rc2
Release:        97
#
Group:          Development/Libraries/C and C++
License:        BSD 3-Clause
#
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>

%package devel
License:        BSD 3-Clause
Requires:       %{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 -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/%{name}.so.*
%doc COPYING ChangeLog

%files devel
%defattr(-,root,root)
%{_libdir}/%{name}.so
%{_includedir}/memcache*

%changelog
* 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
openSUSE Build Service is sponsored by