From 768dbca7f974b897ce7887de8313233cac196830 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Sun, 5 Jul 2015 14:32:20 +0200 Subject: [PATCH] spec: Only require libmysqlclient-devel on sles11sp3 fixes #9558 --- INSTALL.md | 4 ++-- icinga2.spec | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index e6c76a908..50612e569 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -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) diff --git a/icinga2.spec b/icinga2.spec index 9fb5295e2..2c01366da 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -153,8 +153,14 @@ Summary: IDO MySQL database backend for Icinga 2 Group: Applications/System %if "%{_vendor}" == "suse" BuildRequires: libmysqlclient-devel -%endif +%if 0%{?suse_version} >= 1310 BuildRequires: mysql-devel +%endif + +%else +BuildRequires: mysql-devel +%endif #suse + Requires: %{name} = %{version}-%{release} %description ido-mysql