]> granicus.if.org Git - icinga2/commitdiff
spec: Only require libmysqlclient-devel on sles11sp3
authorMichael Friedrich <michael.friedrich@gmail.com>
Sun, 5 Jul 2015 12:32:20 +0000 (14:32 +0200)
committerMichael Friedrich <michael.friedrich@gmail.com>
Sun, 5 Jul 2015 13:00:36 +0000 (15:00 +0200)
fixes #9558

INSTALL.md
icinga2.spec

index e6c76a9088208cd156795ff483e79bf464ecc1d6..50612e5699f2005641882b602e62caa03a0b1b76 100644 (file)
@@ -27,8 +27,8 @@ parentheses):
 * GNU flex (flex) >= 2.5.35
 * recommended: libexecinfo on FreeBSD (automatically used when Icinga 2 is
                installed via port or package)
-* optional: MySQL (mysql-devel on RHEL, libmysqlclient-dev on Debian); set CMake
-             variable `ICINGA2_WITH_MYSQL` to `OFF` to disable this module
+* optional: MySQL (mysql-devel on RHEL, libmysqlclient-devel on SUSE, libmysqlclient-dev on Debian);
+            set CMake variable `ICINGA2_WITH_MYSQL` to `OFF` to disable this module
 * optional: PostgreSQL (postgresql-devel on RHEL, libpq-dev on Debian); set CMake
             variable `ICINGA2_WITH_PGSQL` to `OFF` to disable this module
 * optional: YAJL (yajl-devel on RHEL, libyajl-dev on Debian)
index 9fb5295e240569041abd4b7f7f9532200ad5e4c2..2c01366da45c8c2ecaf68069a4e4f50ceb8c0b0a 100644 (file)
@@ -153,8 +153,14 @@ Summary:      IDO MySQL database backend for Icinga 2
 Group:        Applications/System
 %if "%{_vendor}" == "suse"
 BuildRequires: libmysqlclient-devel
+%if 0%{?suse_version} >= 1310
+BuildRequires: mysql-devel
 %endif
+
+%else
 BuildRequires: mysql-devel
+%endif #suse
+
 Requires: %{name} = %{version}-%{release}
 
 %description ido-mysql