Add gating tests
Resolves: bz#1968465
This commit is contained in:
parent
04f4da5ab6
commit
9789e0df12
@ -1,9 +1,11 @@
|
|||||||
%global qt_module qtimageformats
|
%global qt_module qtimageformats
|
||||||
|
|
||||||
|
%global build_tests 1
|
||||||
|
|
||||||
Summary: Qt5 - QtImageFormats component
|
Summary: Qt5 - QtImageFormats 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, for details
|
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for details
|
||||||
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
||||||
@ -41,6 +43,14 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
%description examples
|
%description examples
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
%if 0%{?build_tests}
|
||||||
|
%package tests
|
||||||
|
Summary: Unit tests for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description tests
|
||||||
|
%{summary}.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1
|
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1
|
||||||
@ -53,10 +63,16 @@ rm -rv src/3rdparty
|
|||||||
|
|
||||||
%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.GPL*
|
%license LICENSE.GPL*
|
||||||
@ -70,8 +86,16 @@ make install INSTALL_ROOT=%{buildroot}
|
|||||||
%{_qt5_plugindir}/imageformats/libqwebp.so
|
%{_qt5_plugindir}/imageformats/libqwebp.so
|
||||||
%{_qt5_libdir}/cmake/Qt5Gui/Qt5Gui_*Plugin.cmake
|
%{_qt5_libdir}/cmake/Qt5Gui/Qt5Gui_*Plugin.cmake
|
||||||
|
|
||||||
|
%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#1968465
|
||||||
|
|
||||||
* 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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user