projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8a26576
)
Define tcpwrappers for fedora, redhat, suse
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 14 Jan 2011 15:28:32 +0000
(16:28 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 14 Jan 2011 15:28:32 +0000
(16:28 +0100)
yaz.spec
patch
|
blob
|
history
diff --git
a/yaz.spec
b/yaz.spec
index
5b5cab6
..
fe6657f
100644
(file)
--- a/
yaz.spec
+++ b/
yaz.spec
@@
-1,3
+1,12
@@
+# This file is part of the YAZ toolkit
+# Copyright (C) 1995-2011 Index Data
+#
+# spec file for YAZ
+
+# 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_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
Summary: Z39.50 Programs
Name: yaz
Version: 4.1.2
Summary: Z39.50 Programs
Name: yaz
Version: 4.1.2
@@
-9,12
+18,18
@@
Vendor: Index Data ApS <info@indexdata.dk>
Source: yaz-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prefix: %{_prefix}
Source: yaz-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prefix: %{_prefix}
-%if "%{_vendor}" == "redhat"
-# Fedora requires tcp_wrappers-devel .
-BuildRequires: tcp_wrappers
-%else
-BuildRequires: tcpd-devel
+
+%define TCPWRAPPER tcp_wrappers
+
+%if %is_fedora
+%define TCPWRAPPER tcp_wrappers-devel
%endif
%endif
+
+%if %is_suse
+%define TCPWRAPPER tcpd-devel
+%endif
+
+BuildRequires: %{TCPWRAPPER}
BuildRequires: pkgconfig
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: pkgconfig
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel