X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=yaz.spec;h=e654ca568b2455de2dc452d4413171fc5b938470;hp=1b1acb585851c96ecf6413d83b43145d7b8ebe33;hb=02b4f0ab937b62d892d3e0918439da770fe720c2;hpb=ae36e69eb7fa1ba7c8c10c7c41bf7e30dc861db4 diff --git a/yaz.spec b/yaz.spec index 1b1acb5..e654ca5 100644 --- a/yaz.spec +++ b/yaz.spec @@ -4,18 +4,19 @@ # # 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: 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) %define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0) -Requires: libxslt, gnutls, readline, libyaz5 = %{version} +Requires: readline, libyaz5 = %{version} License: BSD Group: Applications/Internet Vendor: Index Data ApS @@ -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,7 +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 @@ -58,7 +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