From b0de325d3434da892f5fdbb4b23cddceff704c7e Mon Sep 17 00:00:00 2001 From: TI_Eugene Date: Tue, 25 Jan 2022 02:19:16 +0300 Subject: [PATCH] EPEL8..9 fix --- qpdfview.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/qpdfview.spec b/qpdfview.spec index bf0983c..f45c391 100644 --- a/qpdfview.spec +++ b/qpdfview.spec @@ -1,8 +1,6 @@ #%%global prerelease beta1 -# RHEL & Fedora <= 33 -%global with_qt4 0%{?rhel} || 0%{?fedora} <= 33 -# Fedora * -%global with_qt5 0%{?fedora} +%global with_qt4 0%{?rhel} && 0%{?rhel} < 8 +%global with_qt5 (0%{?rhel} && 0%{?rhel} >= 8) || 0%{?fedora} Name: qpdfview @@ -146,8 +144,10 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %if %{with_qt5} desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-qt5.desktop %endif -# unknown language -# rm -f %{buildroot}/%{_datadir}/%{name}/%{name}_ast.qm +# unknown language (epel7..9, f34) +%if 0%{?rhel} || 0%{?fedora} <= 34 + rm -f %{buildroot}/%{_datadir}/%{name}/%{name}_ast.qm +%endif %if %{with_qt4} @@ -185,6 +185,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-qt5.desktop %{_mandir}/man?/* %changelog +* Mon Jan 24 2022 TI_Eugene - 0.4.18-9 +- EPEL8..9 fix + * Fri Jan 21 2022 Fedora Release Engineering - 0.4.18-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild