Fix comment, use macro

This obsoletes:
  https://src.fedoraproject.org/rpms/mariadb/pull-request/23
This commit is contained in:
Michal Schorm 2021-03-18 03:18:43 +01:00
parent d61a5d2f31
commit 910309466e

View File

@ -975,8 +975,9 @@ rm %{buildroot}%{_libexecdir}/rcmysql
# We don't use this location of service files # We don't use this location of service files
# Note: currently there still are "mariadb" named systemd service files on this location # Note: currently there still are "mariadb" named systemd service files on this location
rm %{buildroot}%{_datadir}/%{pkg_name}/systemd/{mysql,mysqld}.service rm %{buildroot}%{_datadir}/%{pkg_name}/systemd/{mysql,mysqld}.service
# These may come handy in a future, but right now we use our own services # Our downstream Systemd service file have set aliases to the "mysql" names in the [Install] section.
rm %{buildroot}/usr/lib/systemd/system/{mysql,mysqld}.service # They can be enabled / disabled by "systemctl enable / diable <service_name>"
rm %{buildroot}%{_unitdir}/{mysql,mysqld}.service
# install systemd unit files and scripts for handling server startup # install systemd unit files and scripts for handling server startup
install -D -p -m 644 %{_vpath_builddir}/scripts/mysql.service %{buildroot}%{_unitdir}/%{daemon_name}.service install -D -p -m 644 %{_vpath_builddir}/scripts/mysql.service %{buildroot}%{_unitdir}/%{daemon_name}.service