spec: Only require libmysqlclient-devel on sles11sp3

fixes #9558
This commit is contained in:
Michael Friedrich 2015-07-05 14:32:20 +02:00
parent f4aeb1999c
commit 768dbca7f9
2 changed files with 9 additions and 3 deletions

View 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)

View File

@ -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