import qt5-qtwebchannel-5.12.5-1.el8

This commit is contained in:
CentOS Sources 2020-04-28 04:53:10 -04:00 committed by Andrew Lukoshko
parent eedeb27e19
commit d5205f3e90
3 changed files with 41 additions and 4 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/qtwebchannel-everywhere-src-5.11.1.tar.xz SOURCES/qtwebchannel-everywhere-src-5.12.5.tar.xz

View File

@ -1 +1 @@
9c257b055323a74bf12cf81e96d07e305cb395d4 SOURCES/qtwebchannel-everywhere-src-5.11.1.tar.xz 12c7b4c73c5b8a7f02e36aa12ddf58779eafd28c SOURCES/qtwebchannel-everywhere-src-5.12.5.tar.xz

View File

@ -1,9 +1,11 @@
%global qt_module qtwebchannel %global qt_module qtwebchannel
%global build_tests 1
Summary: Qt5 - WebChannel component Summary: Qt5 - WebChannel component
Name: qt5-%{qt_module} Name: qt5-%{qt_module}
Version: 5.11.1 Version: 5.12.5
Release: 2%{?dist} Release: 1%{?dist}
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details # See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
License: LGPLv2 with exceptions or GPLv3 with exceptions License: LGPLv2 with exceptions or GPLv3 with exceptions
@ -36,6 +38,16 @@ 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
%setup -q -n %{qt_module}-everywhere-src-%{version} %setup -q -n %{qt_module}-everywhere-src-%{version}
@ -45,10 +57,27 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%make_build %make_build
%if 0%{?build_tests}
make sub-tests %{?_smp_mflags} -k ||:
%endif
%install %install
make install INSTALL_ROOT=%{buildroot} make install INSTALL_ROOT=%{buildroot}
%if 0%{?build_tests}
# Install tests for gating
mkdir -p %{buildroot}%{_qt5_libdir}/qt5
find ./tests -not -path '*/\.*' -type d | while read LINE
do
mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE"
done
find ./tests -not -path '*/\.*' -not -name '*.h' -not -name '*.cpp' -not -name '*.pro' -not -name 'uic_wrapper.sh' -not -name 'Makefile' -not -name 'target_wrapper.sh' -type f | while read LINE
do
cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/
done
%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
@ -84,8 +113,16 @@ popd
%{_qt5_examplesdir}/ %{_qt5_examplesdir}/
%endif %endif
%if 0%{?build_tests}
%files tests
%{_qt5_libdir}/qt5/tests
%endif
%changelog %changelog
* Mon Nov 18 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
- 5.12.5
Resolves: bz#1733155
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2 * Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
- Rebuild to fix CET notes - Rebuild to fix CET notes
Resolves: bz#1657242 Resolves: bz#1657242