commit f995ac15ff0a3454f4f4de450246840229883bce
Author: Xavier Bachelot <xavier(a)bachelot.org>
Date: Tue Dec 10 18:46:55 2019 +0100
Conditionalize snippets needed only for older EL
xine-ui.spec | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/xine-ui.spec b/xine-ui.spec
index 9717066..23852a3 100644
--- a/xine-ui.spec
+++ b/xine-ui.spec
@@ -196,6 +196,7 @@ rm -f %{buildroot}%{_mandir}/man1/xine-check.*
cp -a fedoraskins/* %{buildroot}%{_datadir}/xine/skins/
+%if 0%{?rhel} && 0%{?rhel} < 8
%post
# Mime type
update-desktop-database &> /dev/null || :
@@ -215,6 +216,7 @@ fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+%endif
%files -f 'xi\(ne-ui\|tk\)'.lang