commit dfaf055ca2b978e435c3f866cda95508fb9743c6
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Fri Nov 8 10:46:12 2019 +0000
Use build requires systemd-rpm-macros for fedora
plex-media-player.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plex-media-player.spec b/plex-media-player.spec
index 6b1fda9..09584b0 100644
--- a/plex-media-player.spec
+++ b/plex-media-player.spec
@@ -36,8 +36,11 @@ BuildRequires: ninja-build
BuildRequires: libappstream-glib
BuildRequires: desktop-file-utils
BuildRequires: python3
+%if 0%{?fedora}
+BuildRequires: systemd-rpm-macros
+%else
BuildRequires: systemd
-
+%endif
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libGL-devel
@@ -148,7 +151,7 @@ desktop-file-install \
mkdir -p %{buildroot}%{_sharedstatedir}/plex-media-player
%if 0%{?rhel} == 7
-%post
+%postgit commit -a -m 'Fix directory ownership and move standalone files to session
sub-package'
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;