From 9300aa0c18c95a88fe9f16dc3660122d5e1d95a1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 10 Jun 2014 11:49:55 +0000 Subject: [PATCH] Bundle libmemcached with YAZ on CentOS 5/6 YAZ-769 --- yaz.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/yaz.spec b/yaz.spec index e35d6d7..8e6ea58 100644 --- a/yaz.spec +++ b/yaz.spec @@ -46,7 +46,8 @@ BuildRequires: libxml2-devel BuildRequires: libxslt-devel BuildRequires: readline-devel BuildRequires: libicu-devel -BuildRequires: libmemcached-devel +BuildRequires: wget +BuildRequires: cyrus-sasl-devel BuildRequires: libgcrypt-devel Packager: Adam Dickmeiss URL: http://www.indexdata.com/yaz @@ -96,9 +97,17 @@ chain facility of YAZ. %prep %setup +wget -q http://ftp.indexdata.dk/pub/support/libmemcached-1.0.18.tar.gz +tar zxf libmemcached-1.0.18.tar.gz + %build -CFLAGS="$RPM_OPT_FLAGS" \ +YD=`pwd` +cd libmemcached-1.0.18 +./configure --disable-shared --prefix=${YD}/libmemcached +make install +cd .. +PKG_CONFIG_PATH=${YD}/libmemcached/lib/pkgconfig CFLAGS="$RPM_OPT_FLAGS" \ ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ --enable-shared --enable-tcpd --with-xslt --with-gnutls --with-icu make CFLAGS="$RPM_OPT_FLAGS" -- 1.7.10.4