From e7fe65bb0895a91714b664eff5d88602ea2524a5 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 18 Jan 2011 12:20:24 +0100 Subject: [PATCH] RPM: use libgnutls-devel on SLES11. --- yaz.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/yaz.spec b/yaz.spec index fe6657f..db6c5ef 100644 --- a/yaz.spec +++ b/yaz.spec @@ -6,6 +6,7 @@ # determine system %define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0) %define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0) +%define is_suse11 %(grep 'VERSION = 11' /etc/SuSE-release >/dev/null && echo 1 || echo 0) %define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0) Summary: Z39.50 Programs Name: yaz @@ -30,10 +31,16 @@ Prefix: %{_prefix} %endif BuildRequires: %{TCPWRAPPER} + +%if %is_suse11 +BuildRequires: libgnutls-devel +%else +BuildRequires: gnutls-devel +%endif + BuildRequires: pkgconfig BuildRequires: libxml2-devel BuildRequires: libxslt-devel -BuildRequires: gnutls-devel BuildRequires: readline-devel BuildRequires: libicu-devel Packager: Adam Dickmeiss -- 1.7.10.4