From: Adam Dickmeiss Date: Tue, 10 Jun 2014 11:49:55 +0000 (+0000) Subject: Bundle libmemcached with YAZ on CentOS 5/6 YAZ-769 X-Git-Tag: v5.2.0~24 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=9300aa0c18c95a88fe9f16dc3660122d5e1d95a1;p=yaz-moved-to-github.git Bundle libmemcached with YAZ on CentOS 5/6 YAZ-769 --- 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"