commit 7cd50927fc54e941b4946c1556265c416d2ca1b4 Author: lkx690 Date: Sat Nov 30 11:40:56 2019 +0800 initial qt5-qtquickcontrols2 diff --git a/qt5-qtquickcontrols2.spec b/qt5-qtquickcontrols2.spec new file mode 100644 index 0000000..612bec7 --- /dev/null +++ b/qt5-qtquickcontrols2.spec @@ -0,0 +1,77 @@ +Name: qt5-qtquickcontrols2 +Summary: Qt5 - module for embedded QtQuick control set +Version: 5.11.1 +Release: 3 +License: GPLv2+ or LGPLv3 and GFDL +Url: http://www.qt.io +Source0: http://download.qt.io/archive/qt/5.11/5.11.1/submodules/qtquickcontrols2-everywhere-src-5.11.1.tar.xz +BuildRequires: qt5-qtbase-devel >= %{version} qt5-qtbase-private-devel qt5-qtdeclarative-devel +Requires: qt5-qtdeclarative >= %{version} qt5-qtgraphicaleffects >= %{version} +%{?_qt5:Requires: %{_qt5} = %{_qt5_version}} + +%global majmin %(echo %{version} | cut -d. -f1-2) +%global __provides_exclude_from ^%{_qt5_archdatadir}/qml/.*\\.so$ + +%description +This package provides a set of controls for building a complete interface in Qt Quick. +These controls are the first choice for hardware with limited resources as it is +optimized for embedded systems. + +%package devel +Summary: Development and Examples files for %{name} +Requires: %{name} = %{version}-%{release} qt5-qtbase-devel qt5-qtdeclarative-devel +Provides: %{name}-examples = %{version}-%{release} +Obsoletes: %{name}-examples < %{version}-%{release} +%description devel +This package provides module for embedded QtQuick control set + +%prep +%autosetup -n qtquickcontrols2-everywhere-src-%{version} -p1 + +%build +%{qmake_qt5} +%make_build + + +%install +make install INSTALL_ROOT=%{buildroot} + +cd %{buildroot}%{_qt5_libdir} +for file in libQt5*.prl ; do + sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${file} + if [ -f "$(basename ${file} .prl).so" ]; then + sed -i -e "/^QMAKE_PRL_LIBS/d" ${file} + rm -f "$(basename ${file} .prl).la" + fi +done +cd - + +%delete_la + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + + +%files +%license LICENSE.LGPLv3 LICENSE.GPLv3 +%{_qt5_libdir}/libQt5Quick*.so.5* +%{_qt5_qmldir}/Qt/labs/* +%{_qt5_archdatadir}/qml/QtQuick/*.2/ + + +%files devel +%{_qt5_examplesdir}/quickcontrols2/ +%{_qt5_headerdir}/ +%{_qt5_libdir}/pkgconfig/*.pc +%{_qt5_libdir}/libQt5Quick*2.so +%{_qt5_libdir}/libQt5Quick*2.prl +%{_qt5_libdir}/qt5/mkspecs/modules/* +%{_libdir}/cmake/Qt5QuickControls2/ + + +%changelog +* Wed Nov 27 2019 likexin - 5.11.1-3 +- Package init diff --git a/qtquickcontrols2-everywhere-src-5.11.1.tar.xz b/qtquickcontrols2-everywhere-src-5.11.1.tar.xz new file mode 100644 index 0000000..144592d Binary files /dev/null and b/qtquickcontrols2-everywhere-src-5.11.1.tar.xz differ