Add gating tests
Resolves: bz#1968477
This commit is contained in:
parent
4146ab18f8
commit
209a2c303f
@ -1,9 +1,11 @@
|
|||||||
%global qt_module qtwayland
|
%global qt_module qtwayland
|
||||||
|
|
||||||
|
%global build_tests 1
|
||||||
|
|
||||||
Summary: Qt5 - Wayland platform support and QtCompositor module
|
Summary: Qt5 - Wayland platform support and QtCompositor module
|
||||||
Name: qt5-%{qt_module}
|
Name: qt5-%{qt_module}
|
||||||
Version: 5.15.2
|
Version: 5.15.2
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
|
|
||||||
License: LGPLv3
|
License: LGPLv3
|
||||||
Url: http://www.qt.io
|
Url: http://www.qt.io
|
||||||
@ -82,6 +84,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
|
||||||
@ -92,10 +102,17 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
|
|
||||||
%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
|
||||||
|
|
||||||
## .prl/.la file love
|
## .prl/.la file love
|
||||||
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
|
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
|
||||||
pushd %{buildroot}%{_qt5_libdir}
|
pushd %{buildroot}%{_qt5_libdir}
|
||||||
@ -144,8 +161,16 @@ popd
|
|||||||
%files examples
|
%files examples
|
||||||
%{_qt5_examplesdir}/wayland/
|
%{_qt5_examplesdir}/wayland/
|
||||||
|
|
||||||
|
%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-7
|
||||||
|
- Add gating tests
|
||||||
|
Resolves: bz#1968477
|
||||||
|
|
||||||
* Mon May 03 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-6
|
* Mon May 03 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-6
|
||||||
- Sync with Fedora
|
- Sync with Fedora
|
||||||
Resolves: bz#1951152
|
Resolves: bz#1951152
|
||||||
|
Loading…
Reference in New Issue
Block a user