Add gating tests

Resolves: bz#1968464
This commit is contained in:
Jan Grulich 2021-06-09 13:06:23 +02:00
parent 4e49d4c48e
commit ace7008c29

View File

@ -1,9 +1,11 @@
%global qt_module qtgraphicaleffects %global qt_module qtgraphicaleffects
%global build_tests 1
Summary: Qt5 - QtGraphicalEffects component Summary: Qt5 - QtGraphicalEffects component
Name: qt5-%{qt_module} Name: qt5-%{qt_module}
Version: 5.15.2 Version: 5.15.2
Release: 4%{?dist} Release: 5%{?dist}
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively from qt5-qtbase for details # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively from qt5-qtbase for details
License: LGPLv2 with exceptions or GPLv3 with exceptions License: LGPLv2 with exceptions or GPLv3 with exceptions
@ -30,6 +32,15 @@ visually impressive and configurable effects to user interfaces. Effects
are visual items that can be added to Qt Quick user interface as UI are visual items that can be added to Qt Quick user interface as UI
components. components.
%if 0%{?build_tests}
%package tests
Summary: Unit tests for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tests
%{summary}.
%endif
%prep %prep
%setup -q -n %{qt_module}-everywhere-src-%{version} %setup -q -n %{qt_module}-everywhere-src-%{version}
@ -40,17 +51,32 @@ components.
%make_build %make_build
%if 0%{?build_tests}
%qt5_build_tests
%endif
%install %install
make install INSTALL_ROOT=%{buildroot} make install INSTALL_ROOT=%{buildroot}
%if 0%{?build_tests}
%qt5_install_tests
%endif
%files %files
%license LICENSE.* %license LICENSE.*
%{_qt5_qmldir}/QtGraphicalEffects/ %{_qt5_qmldir}/QtGraphicalEffects/
%if 0%{?build_tests}
%files tests
%{_qt5_libdir}/qt5/tests
%endif
%changelog %changelog
* Wed Jun 09 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-5
- Add gating tests
Resolves: bz#1968464
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.15.2-4 * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.15.2-4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937