workaround QMAKE_LIBS_LIBATOMIC

OBS-URL: https://build.opensuse.org/package/show/network/datovka?expand=0&rev=48
This commit is contained in:
Jiri Slaby 2022-02-01 08:16:02 +00:00 committed by Git OBS Bridge
parent c535d5c5e2
commit b51ce47eb7

View File

@ -38,8 +38,6 @@ Source1: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%
# PATCH-FIX-UPSTREAM: remove some issues with current .pro file
Patch0: datovka-fix-pro.patch
%if 0%{qt_version} == 6
# private-devel is only temporary to fix "Library 'libatomic' is not defined."
BuildRequires: qt6-core-private-devel
BuildRequires: qt6-tools-linguist
%else
BuildRequires: libqt5-linguist
@ -91,7 +89,9 @@ export CXXFLAGS="-std=c++11 %{optflags}"
%endif
%{lrelease} datovka.pro
%if 0%{qt_version} == 6
%qmake6 PREFIX=%{_prefix} DISABLE_VERSION_CHECK_BY_DEFAULT=1
# QMAKE_LIBS_LIBATOMIC= is only temporary to fix:
# "Library 'libatomic' is not defined."
%qmake6 PREFIX=%{_prefix} DISABLE_VERSION_CHECK_BY_DEFAULT=1 QMAKE_LIBS_LIBATOMIC=
%qmake6_build
%else
%qmake5 PREFIX=%{_prefix} DISABLE_VERSION_CHECK_BY_DEFAULT=1