]> granicus.if.org Git - icinga2/commitdiff
There is no mysql-libs package on el5.
authorMichael Friedrich <michael.friedrich@netways.de>
Mon, 7 Oct 2013 15:53:53 +0000 (17:53 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 7 Oct 2013 15:53:53 +0000 (17:53 +0200)
icinga2.spec.in

index 06d28d4e262e549191f5dc5d6bf49abc001dbab5..3896ba1a10a45a6e3671d1e6481a0901668cfbaa 100644 (file)
@@ -65,13 +65,18 @@ BuildRequires: libmysqlclient-devel
 Requires: libmysqlclient18
 %endif
 %if "%{_vendor}" == "redhat"
+# el5 only provides mysql package
+%if 0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5"
+BuildRequires: mysql
+%else
 BuildRequires: mysql-libs
 BuildRequires: mysql
+%fi
 BuildRequires: mysql-devel
 Requires: mysql
 %endif
 
-%description ido-mysql 
+%description ido-mysql
 Icinga 2 IDO mysql database backend. Compatible with Icinga 1.x
 IDOUtils schema >= 1.10