commit ee365aa5fa5972afeb97a68e0c69c8f1c5aad4fd
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Thu Nov 7 22:14:35 2019 +0000
Fix systemd service name
plex-media-player.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plex-media-player.spec b/plex-media-player.spec
index 8ebb2c3..1ac1dd9 100644
--- a/plex-media-player.spec
+++ b/plex-media-player.spec
@@ -132,8 +132,8 @@ install -pm0755 %{SOURCE9} \
%{buildroot}%{_datadir}/plexmediaplayer/plexmediaplayer-standalone-enable
mkdir -p %{buildroot}%{_unitdir}
-install -pm0644 %{SOURCE3} %{buildroot}%{_unitdir}/plexmediaplayer.service
-install -pm0644 %{SOURCE4} %{buildroot}%{_unitdir}/plexmediaplayer.target
+install -pm0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
+install -pm0644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.target
mkdir -p %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d
install -pm0644 %{SOURCE5} \
@@ -205,8 +205,8 @@ update-desktop-database &> /dev/null || :
%files session
%attr(0750,plex-media-player,plex-media-player) %{_sharedstatedir}/plex-media-player
%{_sysconfdir}/polkit-1/localauthority/50-local.d/plexmediaplayer.pkla.disabled
-%{_unitdir}/plexmediaplayer.service
-%{_unitdir}/plexmediaplayer.target
+%{_unitdir}/%{name}.service
+%{_unitdir}/%{name}.target
%changelog
* Wed Nov 06 2019 Leigh Scott <leigh123linux(a)gmail.com> - 2.40.0-2