commit bfc64d42741c0a075dcb4a1e1cefde4ffcddb13c
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Fri Feb 14 21:07:22 2020 +0000
Fix el8 build
openshot.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/openshot.spec b/openshot.spec
index bde8c40..ac2d8ed 100644
--- a/openshot.spec
+++ b/openshot.spec
@@ -99,7 +99,7 @@ done
# Validate desktop file
desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop
-%if 0%{?rhel}
+%if 0%{?rhel} && 0%{?rhel} <= 7
# Move appdata file to default location
mkdir -p %{buildroot}%{_metainfodir}
mv %{buildroot}%{_datadir}/metainfo/*.appdata.xml %{buildroot}%{_metainfodir}/
@@ -116,7 +116,7 @@ rmdir -p --ignore-fail-on-non-empty
%{buildroot}%{_prefix}/lib/mime/packages
%find_lang OpenShot --with-qt
-%if 0%{?rhel}
+%if 0%{?rhel} && 0%{?rhel} <= 7
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :