[libmemcached] enable SASL support
Remi Collet
remi at fedoraproject.org
Sat Oct 2 07:19:52 UTC 2010
commit 3ca37632f2a66ba10d8601416679707c4bb9dce2
Author: remi <fedora at famillecollet.com>
Date: Sat Oct 2 09:19:52 2010 +0200
enable SASL support
libmemcached-sasl.patch | 10 ++++++++++
libmemcached.spec | 12 +++++++++++-
2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/libmemcached-sasl.patch b/libmemcached-sasl.patch
new file mode 100644
index 0000000..0ebb435
--- /dev/null
+++ b/libmemcached-sasl.patch
@@ -0,0 +1,10 @@
+diff -up libmemcached-0.44/support/libmemcached.pc.in.sasl libmemcached-0.44/support/libmemcached.pc.in
+--- libmemcached-0.44/support/libmemcached.pc.in.sasl 2010-10-02 08:20:58.000000000 +0200
++++ libmemcached-0.44/support/libmemcached.pc.in 2010-10-02 08:24:07.000000000 +0200
+@@ -6,5 +6,5 @@ includedir=@includedir@
+ Name: libmemcached
+ Description: libmemcached C library.
+ Version: @VERSION@
+-Libs: -L${libdir} -lmemcached
++Libs: @LTLIBSASL2@ -L${libdir} -lmemcached
+ Cflags: -I${includedir}
diff --git a/libmemcached.spec b/libmemcached.spec
index d49ab25..4e1fb4c 100644
--- a/libmemcached.spec
+++ b/libmemcached.spec
@@ -1,13 +1,17 @@
Name: libmemcached
Summary: Client library and command line tools for memcached server
Version: 0.44
-Release: 1%{?dist}
+Release: 2%{?dist}
License: BSD
Group: System Environment/Libraries
URL: http://libmemcached.org/
Source0: http://launchpad.net/libmemcached/1.0/%{version}/+download/libmemcached-%{version}.tar.gz
+# Add -lsasl2 to libmemcached.pc
+# See http://lists.libmemcached.org/pipermail/libmemcached-discuss/2010-October/002207.html
+Patch0: libmemcached-sasl.patch
+BuildRequires: cyrus-sasl-devel
# checked during configure (for test suite)
BuildRequires: memcached
@@ -35,6 +39,7 @@ Summary: Header files and development libraries for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
+Requires: cyrus-sasl-devel
%description devel
This package contains the header files and development libraries
@@ -45,6 +50,8 @@ you will need to install %{name}-devel.
%prep
%setup -q
+%patch0 -p1 -b .sasl
+
%{__rm} -f libmemcached/hsieh_hash.c
%{__mkdir} examples
@@ -110,6 +117,9 @@ you will need to install %{name}-devel.
%changelog
+* Sat Oct 02 2010 Remi Collet <Fedora at famillecollet.com> - 0.44-2
+- enable SASL support
+
* Fri Oct 01 2010 Remi Collet <Fedora at famillecollet.com> - 0.44-1
- update to 0.44
- add soname version in %%file to detect change
More information about the scm-commits
mailing list