diff --git a/qt5-qtconnectivity.spec b/qt5-qtconnectivity.spec index 72e8007..4bf7911 100644 --- a/qt5-qtconnectivity.spec +++ b/qt5-qtconnectivity.spec @@ -1,9 +1,11 @@ %global qt_module qtconnectivity +%global build_tests 1 + Summary: Qt5 - Connectivity components Name: qt5-%{qt_module} Version: 5.15.2 -Release: 4%{?dist} +Release: 5%{?dist} # See LICENSE.GPL3, respectively, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions @@ -38,6 +40,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} @@ -49,10 +59,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 + %if 0%{?docs} make install_docs INSTALL_ROOT=%{buildroot} %endif @@ -112,8 +129,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-5 +- Add gating tests + Resolves: bz#1968461 + * Fri Apr 16 2021 Mohan Boddu - 5.15.2-4 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937