From 180fa69938c6e30626250959fe098c42d74dbaec Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Thu, 10 Jun 2021 15:27:04 +0200 Subject: [PATCH] Add gating tests Resolves: bz#1968480 --- qt5-qtxmlpatterns.spec | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/qt5-qtxmlpatterns.spec b/qt5-qtxmlpatterns.spec index cce372e..db74134 100644 --- a/qt5-qtxmlpatterns.spec +++ b/qt5-qtxmlpatterns.spec @@ -1,11 +1,13 @@ %global qt_module qtxmlpatterns +%global build_tests 1 + #global bootstrap 1 Summary: Qt5 - QtXmlPatterns component Name: qt5-%{qt_module} Version: 5.15.2 -Release: 5%{?dist} +Release: 6%{?dist} # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions Url: http://www.qt.io @@ -43,6 +45,14 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %description examples %{summary}. +%if 0%{?build_tests} +%package tests +Summary: Unit tests for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tests +%{summary}. +%endif %prep %autosetup -n %{qt_module}-everywhere-src-%{version} -p1 @@ -54,10 +64,17 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %make_build +%if 0%{?build_tests} +%qt5_build_tests +%endif %install make install INSTALL_ROOT=%{buildroot} +%if 0%{?build_tests} +%qt5_install_tests +%endif + # put non-conflicting binaries with -qt5 postfix in {_bindir} mkdir %{buildroot}%{_bindir} pushd %{buildroot}%{_qt5_bindir} @@ -112,8 +129,16 @@ popd %{_qt5_examplesdir}/ %endif +%if 0%{?build_tests} +%files tests +%{_qt5_libdir}/qt5/tests +%endif %changelog +* Wed Jun 09 2021 Jan Grulich - 5.15.2-6 +- Add gating tests + Resolves: bz#1968480 + * Fri Apr 16 2021 Mohan Boddu - 5.15.2-5 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937