Use with init_systemd condition to build fine on RHEL-6

This commit is contained in:
Honza Horak 2017-08-07 18:19:50 +02:00
parent 47aa81f0f8
commit fe1ebbe8f1

View File

@ -1216,8 +1216,8 @@ fi
%doc Docs/README.wsrep %doc Docs/README.wsrep
%license LICENSE.clustercheck %license LICENSE.clustercheck
%{_bindir}/clustercheck %{_bindir}/clustercheck
%if %{with init_systemd}
%{_bindir}/galera_new_cluster %{_bindir}/galera_new_cluster
%if %{with init_systemd}
%{_bindir}/galera_recovery %{_bindir}/galera_recovery
%{_datadir}/%{pkg_name}/systemd/use_galera_new_cluster.conf %{_datadir}/%{pkg_name}/systemd/use_galera_new_cluster.conf
%endif %endif
@ -1339,11 +1339,13 @@ 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}/policy/selinux/mariadb.* %{_datadir}/%{pkg_name}/policy/selinux/mariadb.*
%if %{with init_systemd}
%{_datadir}/%{pkg_name}/systemd/mariadb.service %{_datadir}/%{pkg_name}/systemd/mariadb.service
# mariadb@ is installed only when we have cmake newer than 3.3 # mariadb@ is installed only when we have cmake newer than 3.3
%if 0%{?fedora} > 22 || 0%{?rhel} > 7 %if 0%{?fedora} > 22 || 0%{?rhel} > 7
%{_datadir}/%{pkg_name}/systemd/mariadb@.service %{_datadir}/%{pkg_name}/systemd/mariadb@.service
%endif %endif
%endif
%{daemondir}/%{daemon_name}* %{daemondir}/%{daemon_name}*
%{_libexecdir}/mysql-prepare-db-dir %{_libexecdir}/mysql-prepare-db-dir