From bc6df0c86824254ef7502c52be91ddc3ee573ead Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 9 Jun 2021 13:34:43 +0200 Subject: [PATCH] Add gating tests Resolves: bz#1968466 --- qt5-qtlocation.spec | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/qt5-qtlocation.spec b/qt5-qtlocation.spec index e5f63a5..c331d2a 100644 --- a/qt5-qtlocation.spec +++ b/qt5-qtlocation.spec @@ -1,5 +1,7 @@ %global qt_module qtlocation +%global build_tests 1 + Summary: Qt5 - Location component Name: qt5-%{qt_module} Version: 5.15.2 @@ -51,6 +53,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 %setup -q -n %{qt_module}-everywhere-src-%{version} @@ -68,9 +78,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 + ## .prl/.la file love # nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs pushd %{buildroot}%{_qt5_libdir} @@ -126,8 +144,16 @@ popd %files examples %{_qt5_examplesdir}/ +%if 0%{?build_tests} +%files tests +%{_qt5_libdir}/qt5/tests +%endif %changelog +* Wed Jun 09 2021 Jan Grulich - 5.15.2-7 +- Add gating tests + Resolves: bz#1968466 + * Fri Apr 16 2021 Mohan Boddu - 5.15.2-6 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937