Re-enable tests

Resolves: RHEL-53982
This commit is contained in:
Jan Grulich 2024-12-09 15:10:58 +01:00
parent aecda5d33c
commit aece78a5de

View File

@ -8,12 +8,12 @@
%global examples 1
# FIXME: needs bootstrap
#global build_tests 1
%global build_tests 1
Summary: Qt6 - Positioning component
Name: qt6-%{qt_module}
Version: 6.8.1
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
Url: http://www.qt.io
@ -109,6 +109,17 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%qt6_dont_autoinstall_tests
%endif
%if 0%{?build_tests}
# FIXME: avoid SBOM for test plugins
sed -i -e 's@.*qt_sbom/SPDXRef-Package-qtpositioning-qt-plugin-QGeoPositionInfoSourceFactoryTestPlugin.cmake")@@' \
-e 's@.*qt_sbom/SPDXRef-PackagedFile-qt-plugin-QGeoPositionInfoSourceFactoryTestPlugin.cmake")@@' \
-e 's@.*qt_sbom/SPDXRef-Package-qtpositioning-qt-plugin-DummyPluginForTestsFactoryPlugin.cmake")@@' \
-e 's@.*qt_sbom/SPDXRef-PackagedFile-qt-plugin-DummyPluginForTestsFactoryPlugin.cmake")@@' \
-e 's@.*qt_sbom/SPDXRef-Package-qtpositioning-qt-plugin-QGeoSatelliteInfoSourceTestPlugin.cmake")@@' \
-e 's@.*qt_sbom/SPDXRef-PackagedFile-qt-plugin-QGeoSatelliteInfoSourceTestPlugin.cmake")@@' \
%_vpath_srcdir/%_vpath_builddir/qt_sbom/assemble_sbom.cmake
%endif
%cmake_install
%if 0%{?build_tests}
@ -170,6 +181,10 @@ popd
%endif
%changelog
* Mon Dec 09 2024 Jan Grulich <jgrulich@redhat.com> - 6.8.1-2
- Re-enable tests
Resolves: RHEL-53982
* Fri Dec 06 2024 Jan Grulich <jgrulich@redhat.com> - 6.8.1-1
- 6.8.1
Resolves: RHEL-53982