Fix error: lrelease-pro: No .pro/.pri files given.

Instead of lrelease-pro we should use lrelease-qt5.
This commit is contained in:
Roman Telezhynskyi 2022-09-13 11:04:38 +03:00
parent d158750279
commit dd3cd509c6

View file

@ -134,24 +134,7 @@ a unique pattern making tool.
%build
%if 0%{?suse_version} > 0
# 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
# Leap
%if 0%{?suse_version} == 1500
# 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"
%endif
%endif
%if 0%{?suse_version} < 1500 && 0%{?suse_version} >= 1315
%if 0%{?suse_version} >= 1315
qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} LRELEASE=lrelease-qt5 Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"
%else
qmake-qt5 PREFIX=%{_prefix} PREFIX_LIB=%{_prefix}/%{_lib} Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols"