|
|
|
@ -1,13 +1,15 @@
|
|
|
|
|
%global qt_module qtquickcontrols2
|
|
|
|
|
|
|
|
|
|
%global build_tests 1
|
|
|
|
|
|
|
|
|
|
Name: qt5-%{qt_module}
|
|
|
|
|
Summary: Qt5 - module with set of QtQuick controls for embedded
|
|
|
|
|
Version: 5.11.1
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 5.15.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: GPLv2+ or LGPLv3 and GFDL
|
|
|
|
|
Url: http://www.qt.io
|
|
|
|
|
%global majmin %(echo %{version} | cut -d. -f1-2)
|
|
|
|
|
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz
|
|
|
|
|
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
# filter qml provides
|
|
|
|
|
%global __provides_exclude_from ^%{_qt5_archdatadir}/qml/.*\\.so$
|
|
|
|
@ -46,6 +48,15 @@ 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}
|
|
|
|
@ -56,10 +67,28 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
@ -99,9 +128,31 @@ rm -f %{buildroot}%{_qt5_libdir}/libQt5*.la
|
|
|
|
|
%{_qt5_libdir}/libQt5QuickControls2.prl
|
|
|
|
|
%{_qt5_libdir}/qt5/mkspecs/modules/*
|
|
|
|
|
%{_libdir}/cmake/Qt5QuickControls2/
|
|
|
|
|
%{_libdir}/cmake/Qt5QuickTemplates2/
|
|
|
|
|
|
|
|
|
|
%if 0%{?build_tests}
|
|
|
|
|
%files tests
|
|
|
|
|
%{_qt5_libdir}/qt5/tests
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Mar 28 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.3-1
|
|
|
|
|
- 5.15.3
|
|
|
|
|
Resolves: bz#2061399
|
|
|
|
|
|
|
|
|
|
* Wed Apr 28 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-2
|
|
|
|
|
- Rebuild (binutils)
|
|
|
|
|
Resolves: bz#1930050
|
|
|
|
|
|
|
|
|
|
* Sun Apr 04 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-1
|
|
|
|
|
- 5.15.2
|
|
|
|
|
Resolves: bz#1930050
|
|
|
|
|
|
|
|
|
|
* Mon Nov 18 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
|
|
|
|
|
- 5.12.5
|
|
|
|
|
Resolves: bz#1733146
|
|
|
|
|
|
|
|
|
|
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
|
|
|
|
|
- Rebuild to fix CET notes
|
|
|
|
|
Resolves: bz#1657248
|
|
|
|
|