import qt5-qtserialport-5.12.5-1.el8

This commit is contained in:
CentOS Sources 2020-04-28 05:02:08 -04:00 committed by Andrew Lukoshko
parent e8249e1d40
commit 4b36acf6b0
3 changed files with 39 additions and 4 deletions

2
.gitignore vendored
View File

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

View File

@ -1 +1 @@
3371db4a50e8ee3c56cf928f61f31317354641a4 SOURCES/qtserialport-everywhere-src-5.11.1.tar.xz 8bc7ab77ea5a188b167da0da36bed5624085faad SOURCES/qtserialport-everywhere-src-5.12.5.tar.xz

View File

@ -1,9 +1,11 @@
%global qt_module qtserialport %global qt_module qtserialport
%global build_tests 1
Summary: Qt5 - SerialPort component Summary: Qt5 - SerialPort component
Name: qt5-%{qt_module} Name: qt5-%{qt_module}
Version: 5.11.1 Version: 5.12.5
Release: 3%{?dist} Release: 1%{?dist}
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions License: LGPLv2 with exceptions or GPLv3 with exceptions
@ -34,6 +36,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
%setup -q -n %{qt_module}-everywhere-src-%{version} %setup -q -n %{qt_module}-everywhere-src-%{version}
@ -45,10 +55,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
pushd %{buildroot}%{_qt5_libdir} pushd %{buildroot}%{_qt5_libdir}
@ -86,8 +113,16 @@ popd
%files examples %files examples
%{_qt5_examplesdir}/ %{_qt5_examplesdir}/
%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#1733150
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-3 * Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-3
- Rebuild for broken CI - Rebuild for broken CI
Resolves: bz#1657236 Resolves: bz#1657236