From 54111b6293e4b2669d54391f08a106c65648ce93 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 5 Nov 2013 10:43:43 +0100 Subject: [PATCH] Fix package dependencies for RHEL 5. Refs #4999 --- icinga2.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/icinga2.spec b/icinga2.spec index c66eb81ed..8de8ccfaa 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -159,6 +159,12 @@ Group: Applications/System %if "%{_vendor}" == "suse" BuildRequires: postgresql-libs %endif +%if "%{_vendor}" == "redhat" +# el5 only provides mysql package +%if 0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" +BuildRequires: postgresql84 +%endif +%endif BuildRequires: postgresql-devel Requires: postgresql-libs Requires: %{name} = %{version}-%{release} -- 2.40.0