Include mariadb@.service only when cmake installs it

This commit is contained in:
Honza Horak 2016-07-14 22:04:43 +02:00
parent 5c109c86e1
commit 95ef74d698

View File

@ -1216,7 +1216,10 @@ fi
%{_datadir}/%{pkg_name}/policy/selinux/README %{_datadir}/%{pkg_name}/policy/selinux/README
%{_datadir}/%{pkg_name}/policy/selinux/mariadb-server.* %{_datadir}/%{pkg_name}/policy/selinux/mariadb-server.*
%{_datadir}/%{pkg_name}/systemd/mariadb.service %{_datadir}/%{pkg_name}/systemd/mariadb.service
# mariadb@ is installed only when we have cmake newer than 3.3
%if 0%{?fedora} > 22 || 0%{?rhel} > 7
%{_datadir}/%{pkg_name}/systemd/mariadb@.service %{_datadir}/%{pkg_name}/systemd/mariadb@.service
%endif
%{daemondir}/%{daemon_name}* %{daemondir}/%{daemon_name}*
%{_libexecdir}/mysql-prepare-db-dir %{_libexecdir}/mysql-prepare-db-dir