From 83886dc4bb474cf51be5577f0c4e4fdae9ee9cd0 Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Dec 05 2014 22:24:34 +0000 Subject: Require mysql and mysql-compat-client only when providing them, since otherwise we cannot be sure there is such a package in the repo --- diff --git a/mariadb.spec b/mariadb.spec index 7c11c24..f775987 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -295,8 +295,12 @@ Summary: The MariaDB server and related files Group: Applications/Databases # note: no version here = %%{version}-%%{release} +%if %{with mysql_names} Requires: mysql-compat-client%{?_isa} Requires: mysql%{?_isa} +%else +Requires: %{name}%{?_isa} +%endif Requires: %{name}-common%{?_isa} = %{sameevr} Requires: %{_sysconfdir}/my.cnf Requires: %{_sysconfdir}/my.cnf.d