From 0a4e1ff90cca1d803a2a78f4e0d58178e55f2373a07955ddd453d61255287b32 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Fri, 4 Feb 2011 19:06:31 +0000 Subject: [PATCH] Accepting request 59857 from YaST:Web Accepted submit request 59857 from user schubi2 OBS-URL: https://build.opensuse.org/request/show/59857 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libmemcached?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + libmemcached-0.30.tar.bz2 | 3 + libmemcached.changes | 25 ++++++++ libmemcached.spec | 119 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 171 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libmemcached-0.30.tar.bz2 create mode 100644 libmemcached.changes create mode 100644 libmemcached.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libmemcached-0.30.tar.bz2 b/libmemcached-0.30.tar.bz2 new file mode 100644 index 0000000..54acbf1 --- /dev/null +++ b/libmemcached-0.30.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d15bbe042cd3e120988794081a4a8b0374f080eead00846d7f4df043bc6e8168 +size 357587 diff --git a/libmemcached.changes b/libmemcached.changes new file mode 100644 index 0000000..6fb633e --- /dev/null +++ b/libmemcached.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Tue Jun 2 19:49:13 CEST 2009 - pascal.bleser@opensuse.org + +- spec file cleanups + * removed autoreconf, not needed as there are no patches to autotools + * proper use of macros such as %%makeinstall + * slightly more deterministic %%files sections + +- disabled %%check section for now, one check failing for no apparent reason + +- split out new libmemcached0 library into its own subpackage + +- update to 0.30: + * added a memcachd_dump command (and framework for the memdump tool) + * realigned all structures to remove padding (and line up important bits for 64-bit caches + * removed some of the sprintf() statements in storage calls() + * removed printf() in a stat call for unknown stat members + * added amemcached_generate_hash() function + * added tests to make sure all hash functions are stable + +------------------------------------------------------------------- +Thu Feb 5 02:50:16 CET 2009 - crrodriguez@suse.de + +- initial version + diff --git a/libmemcached.spec b/libmemcached.spec new file mode 100644 index 0000000..b464dc0 --- /dev/null +++ b/libmemcached.spec @@ -0,0 +1,119 @@ +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