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}