Fix RPM build for RHEL 5.3 v3.0.45.rhel53
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 20 May 2009 08:09:52 +0000 (10:09 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 20 May 2009 08:10:10 +0000 (10:10 +0200)
RHEL 5.3 does not have package tcp_wrappers-devel . Only tcp_wrappers
which includes both run-time and lib/headers. Fedora core 9 differs
from RHEL 5.3 in that respect.

yaz.spec.in

index a5bc682..116ba98 100644 (file)
@@ -10,7 +10,8 @@ Source: yaz-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 %define TCPWRAPPER tcpd-devel
 %if "%{_vendor}" == "redhat"
-%define TCPWRAPPER tcp_wrappers-devel
+# Fedora requires tcp_wrappers-devel .
+%define TCPWRAPPER tcp_wrappers
 %endif
 BuildRequires: pkgconfig libxml2-devel libxslt-devel gnutls-devel readline-devel libicu-devel %{TCPWRAPPER}
 Packager: Adam Dickmeiss <adam@indexdata.dk>