Require mysql and mysql-compat-client only when providing them, since otherwise we cannot be sure there is such a package in the repo

This commit is contained in:
Honza Horak 2015-01-12 23:15:34 +01:00
parent 1eadb03b89
commit 0878280bf1

View File

@ -236,7 +236,12 @@ Summary: The MySQL server and related files
Group: Applications/Databases Group: Applications/Databases
# note: no version here = %%{sameevr} # note: no version here = %%{sameevr}
%if %{with mysql_names}
Requires: mysql-compat-client%{?_isa}
Requires: mysql%{?_isa} Requires: mysql%{?_isa}
%else
Requires: %{name}%{?_isa}
%endif
Requires: %{name}-common%{?_isa} = %{sameevr} Requires: %{name}-common%{?_isa} = %{sameevr}
Requires: %{_sysconfdir}/my.cnf Requires: %{_sysconfdir}/my.cnf
Requires: %{_sysconfdir}/my.cnf.d Requires: %{_sysconfdir}/my.cnf.d