%define major 0 %define libname %mklibname memcache %{major} Summary: A high performance C API for memcached Name: libmemcache Version: 1.4.0 Release: %mkrel 0.rc2.2 Group: System/Libraries License: BSD-like URL: http://people.freebsd.org/~seanc/libmemcache/ Source0: http://people.freebsd.org/~seanc/libmemcache/%{name}-%{version}.rc2.tar.bz2 BuildRequires: libtool BuildRequires: autoconf2.5 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description libmemcache is the C API for memcached(8), a high-performance, distributed memory object caching system. %package -n %{libname} Summary: A high performance C API library for memcached Group: System/Libraries %description -n %{libname} libmemcache is the C API for memcached(8), a high-performance, distributed memory object caching system. %package -n %{libname}-devel Summary: Static library and header files for the libmemcache library Group: Development/C Obsoletes: %{name}-devel memcache-devel Obsoletes: %{mklibname memcache 1}-devel Provides: %{name}-devel memcache-devel Requires: %{libname} = %{version}-%{release} %description -n %{libname}-devel libmemcache is the C API for memcached(8), a high-performance, distributed memory object caching system. This package contains the static libmemcache library and its header files. %prep %setup -q -n %{name}-%{version}.rc2 %build %configure2_5x %make # this needs some freebsd stuff to work (cough...) #make test %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall_std %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc COPYING ChangeLog INSTALL %{_libdir}/*.so.* %files -n %{libname}-devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/*.la %changelog * Thu Nov 02 2006 Oden Eriksson <oeriksson@mandriva.com> 1.4.0-0.rc2.2mdv2007.0 + Revision: 75442 - fix deps - Import libmemcache * Wed Apr 19 2006 Oden Eriksson <oeriksson@mandriva.com> 1.4.0-0.rc2.1mdk - 1.4.0.rc2 - fix deps * Mon Jan 24 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.4.0-0.b9.1mdk - 1.4.0.b9 * Mon Jan 24 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.2.3-1mdk - 1.2.3 * Sun Jan 23 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.2.2-1mdk - initial Mandrakelinux package