X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=yaz.spec;h=3ec25e7dcce9ce7d8caeeca3b39390a2f74fd5ea;hp=ece58efa756bcc40454379f5899eaf89328bb7cd;hb=81358822816ed75a14af31a0656550de1329c33a;hpb=07f52472f0a1f21c120b85fea5ece60102ad4353 diff --git a/yaz.spec b/yaz.spec index ece58ef..3ec25e7 100644 --- a/yaz.spec +++ b/yaz.spec @@ -4,13 +4,14 @@ # # spec file for YAZ -%define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n') +%define idmetaversion %(. ./IDMETA; echo $VERSION) Name: yaz Summary: Z39.50 Programs Version: %{idmetaversion} -Release: 4.redis +Release: 1.indexdata # determine system +%define is_redhat5 %(grep 'release 5' /etc/redhat-release >/dev/null 2>&1 && echo 1 || echo 0) %define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0) %define is_suse %(test -e /etc/SuSE-release >/dev/null && echo 1 || echo 0) %define is_suse11 %(grep 'VERSION = 11' /etc/SuSE-release >/dev/null 2>&1 && echo 1 || echo 0) @@ -23,10 +24,10 @@ Source: yaz-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root Prefix: %{_prefix} -%define TCPWRAPPER tcp_wrappers - -%if %is_fedora %define TCPWRAPPER tcp_wrappers-devel + +%if %is_redhat5 +%define TCPWRAPPER tcp_wrappers %endif %if %is_suse @@ -47,8 +48,10 @@ BuildRequires: libxslt-devel BuildRequires: readline-devel BuildRequires: libicu-devel BuildRequires: wget -BuildRequires: libgcrypt-devel +%if %is_redhat5 +%else BuildRequires: hiredis-devel +%endif Packager: Adam Dickmeiss URL: http://www.indexdata.com/yaz @@ -59,8 +62,11 @@ for the ANSI/NISO Z39.50 protocol for Information Retrieval. %package -n libyaz5 Summary: Z39.50 Library Group: Libraries -Requires: libxslt, gnutls, libicu, libgcrypt +Requires: libxslt, gnutls, libicu +%if %is_redhat5 +%else Requires: hiredis +%endif %description -n libyaz5 YAZ is a library for the ANSI/NISO Z39.50 protocol for Information @@ -103,7 +109,7 @@ chain facility of YAZ. CFLAGS="$RPM_OPT_FLAGS" \ ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ --enable-shared --enable-tcpd --with-xslt --with-gnutls --with-icu \ - --without-memcached --with-redis + --without-memcached make CFLAGS="$RPM_OPT_FLAGS" %install @@ -116,7 +122,7 @@ rm -fr ${RPM_BUILD_ROOT} %files %defattr(-,root,root) -%doc README LICENSE NEWS +%doc README.md LICENSE NEWS %{_bindir}/yaz-client %{_bindir}/yaz-ztest %{_bindir}/zoomsh