import qt5-qtwebsockets-5.12.5-1.el8

This commit is contained in:
CentOS Sources 2020-04-28 04:51:46 -04:00 committed by Andrew Lukoshko
parent 1cd57c0ee2
commit 0dc3cbaee0
3 changed files with 44 additions and 8 deletions

2
.gitignore vendored
View File

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

View File

@ -1 +1 @@
33fe7835445100067c06ec05a25812a93929f57f SOURCES/qtwebsockets-everywhere-src-5.11.1.tar.xz
7d38f6bd74ec5f0498cd567925317a3e94c6d779 SOURCES/qtwebsockets-everywhere-src-5.12.5.tar.xz

View File

@ -1,9 +1,11 @@
%global qt_module qtwebsockets
%global build_tests 1
Summary: Qt5 - WebSockets component
Name: qt5-%{qt_module}
Version: 5.11.1
Release: 2%{?dist}
Version: 5.12.5
Release: 1%{?dist}
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
License: LGPLv2 with exceptions or GPLv3 with exceptions
@ -37,6 +39,16 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%description examples
%{summary}.
%if 0%{?build_tests}
%package tests
Summary: Unit tests for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tests
%{summary}.
%endif
%prep
%setup -q -n %{qt_module}-everywhere-src-%{version}
@ -44,12 +56,29 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%build
%{qmake_qt5}
make %{?_smp_mflags}
%make_build
%if 0%{?build_tests}
make sub-tests %{?_smp_mflags} -k ||:
%endif
%install
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
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
@ -63,11 +92,10 @@ done
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files
%license LICENSE.LGPL*
%license LICENSE.*
%{_qt5_libdir}/libQt5WebSockets.so.5*
%{_qt5_archdatadir}/qml/Qt/WebSockets/
@ -86,8 +114,16 @@ popd
%{_qt5_examplesdir}/
%endif
%if 0%{?build_tests}
%files tests
%{_qt5_libdir}/qt5/tests
%endif
%changelog
* Mon Nov 18 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
- 5.12.5
Resolves: bz#1733156
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
- Rebuild to fix CET notes
Resolves: bz#1657244