Do not bundle libmemcached. Linking does not work for C
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 11 Jun 2014 08:46:22 +0000 (10:46 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 11 Jun 2014 08:46:22 +0000 (10:46 +0200)
Everybody using YAZ would have to switch to g++. And that doesn't
fly.

yaz.spec

index 8e10326..1b1acb5 100644 (file)
--- a/yaz.spec
+++ b/yaz.spec
@@ -47,7 +47,6 @@ BuildRequires: libxslt-devel
 BuildRequires: readline-devel
 BuildRequires: libicu-devel
 BuildRequires: wget
-BuildRequires: cyrus-sasl-devel
 BuildRequires: libgcrypt-devel
 Packager: Adam Dickmeiss <adam@indexdata.dk>
 URL: http://www.indexdata.com/yaz
@@ -97,19 +96,12 @@ 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
 
-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" \
+CFLAGS="$RPM_OPT_FLAGS" \
  ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
-       --enable-shared --enable-tcpd --with-xslt --with-gnutls --with-icu
+       --enable-shared --enable-tcpd --with-xslt --with-gnutls --with-icu \
+       --without-memcached
 make CFLAGS="$RPM_OPT_FLAGS"
 
 %install