From bd13db8371ff64d25ef5a11bf255bbbd7a370cb4 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 17 Feb 2022 16:51:40 +0200 Subject: [PATCH] Rpm doesn't like a comment at the end of an %if condition. --- dist/rpm/valentina.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dist/rpm/valentina.spec b/dist/rpm/valentina.spec index 8f30ddff9..88153bd6b 100644 --- a/dist/rpm/valentina.spec +++ b/dist/rpm/valentina.spec @@ -135,13 +135,16 @@ a unique pattern making tool. %build %if 0%{?suse_version} > 0 -%if 0%{?suse_version} > 1500 # Tumbleweed +# Tumbleweed +%if 0%{?suse_version} > 1500 qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} LRELEASE=lrelease-pro Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols" %endif -%if 0%{?suse_version} == 1500 # Leap +# Leap +%if 0%{?suse_version} == 1500 -%if 0%{?sle_version} >= 150400 && 0%{?is_opensuse} # Leap 15.4 +# Leap 15.4 +%if 0%{?sle_version} >= 150400 && 0%{?is_opensuse} qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} LRELEASE=lrelease-pro Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols" %else qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} LRELEASE=lrelease-qt5 Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"