120 lines
3.3 KiB
RPMSpec
120 lines
3.3 KiB
RPMSpec
|
Name: libmemcached
|
||
|
# List of additional build dependencies
|
||
|
BuildRequires: gcc-c++ memcached
|
||
|
%if 0%{?suse_version} > 1020
|
||
|
BuildRequires: fdupes
|
||
|
%endif
|
||
|
Version: 0.30
|
||
|
Release: 1
|
||
|
License: BSD
|
||
|
# http://download.tangent.org/libmemcached-%{version}.tar.gz
|
||
|
Source: %{name}-%{version}.tar.bz2
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Summary: Libmemcached is a C and C++ client library to the memcached server
|
||
|
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
Libmemcached is a C and C++ client library to the memcached server
|
||
|
(http://danga.com/memcached). It has been designed to be light on
|
||
|
memory usage, thread safe, and provide full access to server side
|
||
|
methods.
|
||
|
|
||
|
%package -n libmemcached2
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Summary: Libmemcached is a C and C++ client library to the memcached server
|
||
|
|
||
|
%description -n libmemcached2
|
||
|
Libmemcached is a C and C++ client library to the memcached server
|
||
|
(http://danga.com/memcached). It has been designed to be light on
|
||
|
memory usage, thread safe, and provide full access to server side
|
||
|
methods.
|
||
|
|
||
|
%package -n libmemcachedutil0
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Summary: Libmemcached is a C and C++ client library to the memcached server
|
||
|
|
||
|
%description -n libmemcachedutil0
|
||
|
Libmemcached is a C and C++ client library to the memcached server
|
||
|
(http://danga.com/memcached). It has been designed to be light on
|
||
|
memory usage, thread safe, and provide full access to server side
|
||
|
methods.
|
||
|
|
||
|
The libmemcachedutil library contains utility functions used by
|
||
|
libmemcached.
|
||
|
|
||
|
%package devel
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: %{name} = %{version} libmemcached2 = %{version} glibc-devel
|
||
|
Summary: Libmemcached is a C and C++ client library to the memcached server
|
||
|
|
||
|
%description devel
|
||
|
Libmemcached is a C and C++ client library to the memcached server
|
||
|
(http://danga.com/memcached). It has been designed to be light on
|
||
|
memory usage, thread safe, and provide full access to server side
|
||
|
methods.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
%configure --with-memcached=%{_sbindir}/memcached --disable-static --with-pic
|
||
|
%__make %{?jobs:-j%jobs}
|
||
|
|
||
|
%install
|
||
|
%makeinstall
|
||
|
%__rm -f %{buildroot}%{_libdir}/*.la
|
||
|
%if 0%{?suse_version} > 1020
|
||
|
# create symlinks for man pages
|
||
|
%fdupes -s %{buildroot}%{_mandir}
|
||
|
%endif
|
||
|
|
||
|
#%check
|
||
|
#%__make check
|
||
|
|
||
|
%clean
|
||
|
%__rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n libmemcached2 -p /sbin/ldconfig
|
||
|
|
||
|
%postun -n libmemcached2 -p /sbin/ldconfig
|
||
|
|
||
|
%post -n libmemcachedutil0 -p /sbin/ldconfig
|
||
|
|
||
|
%postun -n libmemcachedutil0 -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/memcat
|
||
|
%{_bindir}/memcp
|
||
|
%{_bindir}/memdump
|
||
|
%{_bindir}/memerror
|
||
|
%{_bindir}/memflush
|
||
|
%{_bindir}/memrm
|
||
|
%{_bindir}/memslap
|
||
|
%{_bindir}/memstat
|
||
|
%doc %{_mandir}/man1/mem*.1*
|
||
|
|
||
|
%files -n libmemcached2
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libmemcached.so.2
|
||
|
%{_libdir}/libmemcached.so.2.*.*
|
||
|
|
||
|
%files -n libmemcachedutil0
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libmemcachedutil.so.0
|
||
|
%{_libdir}/libmemcachedutil.so.0.*.*
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_includedir}/libmemcached
|
||
|
%{_includedir}/libmemcached/*
|
||
|
%{_libdir}/pkgconfig/libmemcached.pc
|
||
|
%{_libdir}/libmemcached.so
|
||
|
%{_libdir}//libmemcachedutil.so
|
||
|
%{_mandir}/man3/*.3*
|
||
|
|
||
|
%changelog
|
||
|
* Thu Feb 05 2009 crrodriguez@novell.com
|
||
|
- packaged libmemcached version 0.26 using the buildservice spec file wizard
|