Do not build examples on s390x as they fail
This commit is contained in:
parent
5d1a03e482
commit
b348c2c734
@ -36,12 +36,13 @@ Requires: qt6-qtdeclarative-devel%{?_isa}
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
%ifnarch s390x
|
||||
%package examples
|
||||
Summary: Programming examples for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description examples
|
||||
%{summary}.
|
||||
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1
|
||||
@ -54,7 +55,10 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
# Disable LTO
|
||||
%define _lto_cflags %{nil}
|
||||
|
||||
%cmake_qt6
|
||||
%cmake_qt6 \
|
||||
%ifarch s390x
|
||||
-DQT_BUILD_EXAMPLES=OFF
|
||||
%endif
|
||||
# -DQT_FEATURE_system_assimp=ON
|
||||
|
||||
%cmake_build
|
||||
@ -139,12 +143,12 @@ popd
|
||||
%{_qt6_libdir}/libQt6Quick3DUtils.so
|
||||
%{_qt6_libdir}/metatypes/qt6*_metatypes.json
|
||||
|
||||
|
||||
%ifnarch s390x
|
||||
%if 0%{?_qt6_examplesdir:1}
|
||||
%files examples
|
||||
%{_qt6_examplesdir}/
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Jan 14 2021 Jan Grulich <jgrulich@redhat.com> - 6.0.0-1
|
||||
|
Loading…
Reference in New Issue
Block a user