There is no mysql-libs package on el5.

This commit is contained in:
Michael Friedrich 2013-10-07 17:53:53 +02:00
parent 45fd744aee
commit c2ec11e1e5
1 changed files with 6 additions and 1 deletions

View File

@ -65,8 +65,13 @@ 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