Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
libmemcached
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 40
[-]
[+]
Changed
libmemcached.spec
@@ -1,16 +1,19 @@ # norootforbuild +%define pkgname libmemcached -Summary: memcached C library and command line tools -Name: libmemcached -Version: 0.28 +Summary: Memcached C library and command line tools +Name: %{pkgname} +Version: 0.29 Release: 1 License: BSD Group: System Environment/Libraries URL: http://tangent.org/552/libmemcached.html -Packager: Carsten Schoene <cs@linux-administrator.com> -Source: http://download.tangent.org/libmemcached-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: http://download.tangent.org/%{pkgname}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{pkgname}-%{version}-build BuildRequires: gcc-c++ memcached +%if 0%{?suse_version} > 1020 +BuildRequires: fdupes +%endif %description libmemcached is a C client library to the memcached server @@ -27,6 +30,15 @@ memcp - Copy files to memcached servers. memerror - Creates human readable messages from libmemecached error codes. +%package devel +Group: Development/Libraries +Summary: Memcached C library and command line tools +Requires: %{pkgname} = %{version} +Requires: glibc-devel + +%description devel +Development libraries and header files. + %prep %setup @@ -43,9 +55,36 @@ %{__rm} -rf %{buildroot} %{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS="" +# strip binaries +strip %{buildroot}%{_bindir}/memcat +strip %{buildroot}%{_bindir}/memcp +strip %{buildroot}%{_bindir}/memerror +strip %{buildroot}%{_bindir}/memflush +strip %{buildroot}%{_bindir}/memrm +strip %{buildroot}%{_bindir}/memslap +strip %{buildroot}%{_bindir}/memstat +strip %{buildroot}%{_libdir}/libmemcached.so.2.0.0 +strip %{buildroot}%{_libdir}/libmemcachedutil.so.0.0.0 + +# find duplicate files and symlink +%if 0%{?suse_version} > 1020 +# create symlinks for man pages +%fdupes -s $RPM_BUILD_ROOT/%{_mandir} +# create hardlinks for the rest +%fdupes $RPM_BUILD_ROOT +%endif + + %clean %{__rm} -rf %{buildroot} +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + + %files %defattr(0755,root,root,-) %{_bindir}/memcat @@ -55,23 +94,7 @@ %{_bindir}/memrm %{_bindir}/memstat %{_bindir}/memslap -%dir %{_includedir}/libmemcached -%defattr(0644,root,root,-) -%{_includedir}/libmemcached/memcached.h -%{_includedir}/libmemcached/memcached.hh -%{_includedir}/libmemcached/libmemcached_config.h -%{_includedir}/libmemcached/memcached_constants.h -%{_includedir}/libmemcached/memcached_result.h -%{_includedir}/libmemcached/memcached_server.h -%{_includedir}/libmemcached/memcached_string.h -%{_includedir}/libmemcached/memcached_types.h -%{_includedir}/libmemcached/memcached_watchpoint.h -%{_includedir}/libmemcached/memcached_storage.h -%{_includedir}/libmemcached/memcached_get.h -%{_libdir}/libmemcached.a -%{_libdir}/libmemcached.la -%attr(0755,root,root) %{_libdir}/libmemcached.so* -%{_libdir}/pkgconfig/libmemcached.pc +%defattr(0640,root,root,-) %{_mandir}/man1/memcat.1.gz %{_mandir}/man1/memcp.1.gz %{_mandir}/man1/memerror.1.gz @@ -131,8 +154,50 @@ %{_mandir}/man3/memcached_analyze.3.gz %{_mandir}/man3/memcached_flush_buffers.3.gz %{_mandir}/man3/memcached_generate_hash_value.3.gz +%{_mandir}/man3/libmemcachedutil.3.gz +%{_mandir}/man3/memcached_decrement_with_initial.3.gz +%{_mandir}/man3/memcached_increment_with_initial.3.gz +%{_mandir}/man3/memcached_pool_create.3.gz +%{_mandir}/man3/memcached_pool_destroy.3.gz +%{_mandir}/man3/memcached_pool_pop.3.gz +%{_mandir}/man3/memcached_pool_push.3.gz +%attr(0755,root,root) %{_libdir}/libmemcachedutil.so.0* +%attr(0755,root,root) %{_libdir}/libmemcached.so.2* + +%files devel +%defattr(-,root,root,-) +%dir %{_includedir}/libmemcached +%{_includedir}/libmemcached/memcached.h +%{_includedir}/libmemcached/memcached.hh +%{_includedir}/libmemcached/memcached_constants.h +%{_includedir}/libmemcached/memcached_result.h +%{_includedir}/libmemcached/memcached_server.h +%{_includedir}/libmemcached/memcached_string.h +%{_includedir}/libmemcached/memcached_types.h +%{_includedir}/libmemcached/memcached_watchpoint.h +%{_includedir}/libmemcached/memcached_storage.h +%{_includedir}/libmemcached/memcached_get.h +%{_includedir}/libmemcached/memcached_pool.h +%{_includedir}/libmemcached/memcached_util.h +%{_libdir}/libmemcached.a +%{_libdir}/libmemcached.la +%{_libdir}/libmemcachedutil.a +%{_libdir}/libmemcachedutil.la +%attr(0755,root,root) %{_libdir}/libmemcachedutil.so +%attr(0755,root,root) %{_libdir}/libmemcached.so +%{_libdir}/pkgconfig/libmemcached.pc + %changelog +* Tue May 19 2009 Carsten Schoene <cs@linux-administrator.com> - 0.29-1 +- version bump to 0.29 + - Fixed malloc usage to calloc for spots where we need zero filled memory. + - All code warnings now treated as errors. + - Fixes for debian packaging. + - Added new pooling mechanism. + - MEMCACHED_BEHAVIOR_NO_BLOCK no longer also sets MEMCACHED_BEHAVIOR_BUFFER_REQUESTS. + - Updated generic rpm. + * Wed Apr 15 2009 Carsten Schoene <cs@linux-administrator.com> - 0.28-1 - version bump to 0.28 - Fixed bug in init sructure (reapplied)
Added
libmemcached-0.29.tar.bz2
^