Do not build examples on s390x as they fail

This commit is contained in:
Jan Grulich 2021-01-25 14:44:01 +01:00
parent 5d1a03e482
commit b348c2c734

View File

@ -36,12 +36,13 @@ Requires: qt6-qtdeclarative-devel%{?_isa}
%description devel %description devel
%{summary}. %{summary}.
%ifnarch s390x
%package examples %package examples
Summary: Programming examples for %{name} Summary: Programming examples for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description examples %description examples
%{summary}. %{summary}.
%endif
%prep %prep
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1 %autosetup -n %{qt_module}-everywhere-src-%{version} -p1
@ -54,7 +55,10 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
# Disable LTO # Disable LTO
%define _lto_cflags %{nil} %define _lto_cflags %{nil}
%cmake_qt6 %cmake_qt6 \
%ifarch s390x
-DQT_BUILD_EXAMPLES=OFF
%endif
# -DQT_FEATURE_system_assimp=ON # -DQT_FEATURE_system_assimp=ON
%cmake_build %cmake_build
@ -139,12 +143,12 @@ popd
%{_qt6_libdir}/libQt6Quick3DUtils.so %{_qt6_libdir}/libQt6Quick3DUtils.so
%{_qt6_libdir}/metatypes/qt6*_metatypes.json %{_qt6_libdir}/metatypes/qt6*_metatypes.json
%ifnarch s390x
%if 0%{?_qt6_examplesdir:1} %if 0%{?_qt6_examplesdir:1}
%files examples %files examples
%{_qt6_examplesdir}/ %{_qt6_examplesdir}/
%endif %endif
%endif
%changelog %changelog
* Thu Jan 14 2021 Jan Grulich <jgrulich@redhat.com> - 6.0.0-1 * Thu Jan 14 2021 Jan Grulich <jgrulich@redhat.com> - 6.0.0-1