qt5-qtdeclarative/qt5-qtdeclarative.spec

291 lines
11 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: qt5-qtdeclarative
Version: 5.15.2
Release: 3mamba
Summary: Qt5 declarative components
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.qt.io/
Source: https://download.qt.io/official_releases/qt/%{majver}/%{version}/submodules/qtdeclarative-everywhere-src-%{version}.tar.xz
# Patches from https://invent.kde.org/qt/qt/qtdeclarative branch kde/5.15 (git format-patch v5.15.2)
# Patches 0001 to 0004 are already included in 5.15.2 tarball
Patch0: 0005-QQuickView-docs-show-correct-usage-of-setInitialProp.patch
Patch1: 0006-QQuickWindow-Check-if-QQuickItem-was-not-deleted.patch
Patch2: 0007-Avoid-GHS-linker-to-optimize-away-QML-type-registrat.patch
Patch3: 0008-QML-Text-doesn-t-reset-lineCount-when-text-is-empty.patch
Patch4: 0009-Doc-mention-that-INCLUDEPATH-must-be-set-in-some-cas.patch
Patch5: 0010-qmlfunctions.qdoc-Add-clarification-to-QML_FOREIGN.patch
Patch6: 0011-Fix-QML-property-cache-leaks-of-delegate-items.patch
Patch7: 0012-QQuickTextInput-Store-mask-data-in-std-unique_ptr.patch
Patch8: 0013-Fix-crash-when-calling-hasOwnProperty-on-proxy-objec.patch
Patch9: 0014-Accessibility-event-is-sent-on-item-s-geometry-chang.patch
Patch10: 0015-qmltypes.prf-Take-abi-into-account-for-_metatypes.js.patch
Patch11: 0016-qv4qmlcontext-Fix-bounded-signal-expressions-when-de.patch
Patch12: 0017-Use-load-qt_tool-for-qmltime.patch
Patch13: 0018-qqmlistmodel-Fix-crash-when-modelCache-is-null.patch
Patch14: 0019-Show-a-tableview-even-if-the-syncView-has-an-empty-m.patch
Patch15: 0020-DesignerSupport-Don-t-skip-already-inspected-objects.patch
Patch16: 0021-QML-Fix-proxy-iteration.patch
Patch17: 0022-Fix-IC-properties-in-same-file.patch
Patch18: 0023-JIT-When-making-memory-writable-include-the-exceptio.patch
Patch19: 0024-doc-explain-QQItem-event-delivery-handlers-setAccept.patch
Patch20: 0025-Give-a-warning-when-StyledText-encounters-a-non-supp.patch
Patch21: 0026-Add-missing-limits-include-to-fix-build-with-GCC-11.patch
Patch22: 0027-Document-that-StyledText-also-supports-nbsp-and-quot.patch
Patch23: 0028-Support-apos-in-styled-text.patch
Patch24: 0029-Remove-unused-QPointer-QQuickPointerMask.patch
Patch25: 0030-Include-limits-in-Yarr.h-to-fix-build-with-GCC-11.patch
Patch26: 0031-QQuickLoader-Do-not-incubate-if-the-source-arrives-a.patch
Patch27: 0032-QQmlDelegateModel-Refresh-the-view-when-a-column-is-.patch
Patch28: 0033-Fix-sweep-step-for-tainted-QObject-JavaScript-wrappe.patch
Patch29: 0034-Fix-distorted-text-with-subpixel-matrix-translation.patch
Patch30: 0035-Revert-Fix-for-possible-crash-in-QSGDefaultLayer-gra.patch
Patch31: 0036-Do-not-revert-properties-of-deleted-objects.patch
License: GPL
## AUTOBUILDREQ-BEGIN
#ld-linux.so.3(GLIBC_2.4): .so link not found
#ld-linux.so.3: .so link not found
BuildRequires: glibc-devel
BuildRequires: libatomic-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
## AUTOBUILDREQ-END
Provides: libQt5Qml
Obsoletes: libQt5Qml <= 5.15.2-1mamba
Provides: libQt5Quick
Obsoletes: libQt5Quick <= 5.15.2-1mamba
Provides: libQt5QuickParticles
Obsoletes: libQt5QuickParticles <= 5.15.2-1mamba
Provides: libQt5QuickShapes
Obsoletes: libQt5QuickShapes <= 5.15.2-1mamba
Provides: libQt5QuickTest
Obsoletes: libQt5QuickTest <= 5.15.2-1mamba
Provides: libQt5QuickWidgets
Obsoletes: libQt5QuickWidgets <= 5.15.2-1mamba
Requires: qt5-qtquickcontrols = %{version}
Requires: qt5-qtgraphicaleffects = %{version}
%description
Qt5 declarative components.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n qtdeclarative-everywhere-src-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch19 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1
%patch26 -p1
%patch27 -p1
%patch28 -p1
%patch29 -p1
%patch30 -p1
%patch31 -p1
%build
%_qt5_qmake
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall INSTALL_ROOT=%{buildroot} STRIP=/bin/true
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libQt5Qml.so.*
%{_libdir}/libQt5QmlModels.so.*
%{_libdir}/libQt5QmlWorkerScript.so.*
%{_libdir}/libQt5Quick.so.*
%{_libdir}/libQt5QuickParticles.so.*
%{_libdir}/libQt5QuickShapes.so.*
%{_libdir}/libQt5QuickTest.so.*
%{_libdir}/libQt5QuickWidgets.so.*
%{_libdir}/metatypes/qt5quick_metatypes.json
%{_libdir}/metatypes/qt5quickparticles_metatypes.json
%{_libdir}/metatypes/qt5quickshapes_metatypes.json
%{_libdir}/metatypes/qt5quicktest_metatypes.json
%{_libdir}/metatypes/qt5qml_metatypes.json
%{_libdir}/metatypes/qt5qmlmodels_metatypes.json
%{_libdir}/metatypes/qt5qmlworkerscript_metatypes.json
%dir %{_libdir}/qt5/plugins/qmltooling
%{_libdir}/qt5/plugins/qmltooling/libqmldbg_*.so
%dir %{_libdir}/qt5/qml/Qt/labs/animation
%{_libdir}/qt5/qml/Qt/labs/animation/*
%dir %{_libdir}/qt5/qml/Qt/labs/folderlistmodel
%{_libdir}/qt5/qml/Qt/labs/folderlistmodel/*
%dir %{_libdir}/qt5/qml/Qt/labs/qmlmodels
%{_libdir}/qt5/qml/Qt/labs/qmlmodels/*
%dir %{_libdir}/qt5/qml/Qt/labs/settings
%{_libdir}/qt5/qml/Qt/labs/settings/*
%dir %{_libdir}/qt5/qml/Qt/labs/sharedimage
%{_libdir}/qt5/qml/Qt/labs/sharedimage/*
%dir %{_libdir}/qt5/qml/Qt/labs/wavefrontmesh
%{_libdir}/qt5/qml/Qt/labs/wavefrontmesh/*
%dir %{_libdir}/qt5/qml/Qt/test/qtestroot
%{_libdir}/qt5/qml/Qt/test/qtestroot/*
%dir %{_libdir}/qt5/qml/QtQml/Models.2
%{_libdir}/qt5/qml/QtQml/Models.2/*
%dir %{_libdir}/qt5/qml/QtQml/StateMachine
%{_libdir}/qt5/qml/QtQml/StateMachine/*
%dir %{_libdir}/qt5/qml/QtQml/WorkerScript.2
%{_libdir}/qt5/qml/QtQml/WorkerScript.2/*
%{_libdir}/qt5/qml/QtQml/libqmlplugin.so
%{_libdir}/qt5/qml/QtQml/plugins.qmltypes
%{_libdir}/qt5/qml/QtQml/qmldir
%dir %{_libdir}/qt5/qml/QtQuick.2
%{_libdir}/qt5/qml/QtQuick.2/*
%dir %{_libdir}/qt5/qml/QtQuick
%{_libdir}/qt5/qml/QtQuick/*
%dir %{_libdir}/qt5/qml/QtTest
%{_libdir}/qt5/qml/QtTest/*
%{_libdir}/qt5/qml/builtins.qmltypes
%{_libdir}/qt5/bin/qml*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/qt5/QtPacketProtocol
%{_includedir}/qt5/QtPacketProtocol/*
%dir %{_includedir}/qt5/QtQml
%{_includedir}/qt5/QtQml/*
%dir %{_includedir}/qt5/QtQmlDebug
%{_includedir}/qt5/QtQmlDebug/*
%dir %{_includedir}/qt5/QtQmlModels
%{_includedir}/qt5/QtQmlModels/*
%dir %{_includedir}/qt5/QtQmlWorkerScript
%{_includedir}/qt5/QtQmlWorkerScript/*
%dir %{_includedir}/qt5/QtQuick
%{_includedir}/qt5/QtQuick/*
%dir %{_includedir}/qt5/QtQuickParticles
%{_includedir}/qt5/QtQuickParticles/*
%dir %{_includedir}/qt5/QtQuickShapes
%{_includedir}/qt5/QtQuickShapes/*
%dir %{_includedir}/qt5/QtQuickTest
%{_includedir}/qt5/QtQuickTest/*
%dir %{_includedir}/qt5/QtQuickWidgets
%{_includedir}/qt5/QtQuickWidgets/*
%{_libdir}/libQt5PacketProtocol.a
%{_libdir}/libQt5PacketProtocol.la
%{_libdir}/libQt5PacketProtocol.prl
%{_libdir}/libQt5Qml.la
%{_libdir}/libQt5Qml.prl
%{_libdir}/libQt5Qml.so
%{_libdir}/libQt5QmlDebug.a
%{_libdir}/libQt5QmlDebug.la
%{_libdir}/libQt5QmlDebug.prl
%{_libdir}/libQt5QmlDevTools.a
%{_libdir}/libQt5QmlDevTools.la
%{_libdir}/libQt5QmlDevTools.prl
%{_libdir}/libQt5QmlModels.la
%{_libdir}/libQt5QmlModels.prl
%{_libdir}/libQt5QmlModels.so
%{_libdir}/libQt5QmlWorkerScript.la
%{_libdir}/libQt5QmlWorkerScript.prl
%{_libdir}/libQt5QmlWorkerScript.so
%{_libdir}/libQt5Quick.la
%{_libdir}/libQt5Quick.prl
%{_libdir}/libQt5Quick.so
%{_libdir}/libQt5QuickParticles.la
%{_libdir}/libQt5QuickParticles.prl
%{_libdir}/libQt5QuickParticles.so
%{_libdir}/libQt5QuickShapes.la
%{_libdir}/libQt5QuickShapes.prl
%{_libdir}/libQt5QuickShapes.so
%{_libdir}/libQt5QuickTest.la
%{_libdir}/libQt5QuickTest.prl
%{_libdir}/libQt5QuickTest.so
%{_libdir}/libQt5QuickWidgets.la
%{_libdir}/libQt5QuickWidgets.prl
%{_libdir}/libQt5QuickWidgets.so
%{_libdir}/qt5/mkspecs/features/qmlcache.prf
%{_libdir}/qt5/mkspecs/features/qmltypes.prf
%{_libdir}/qt5/mkspecs/features/qtquickcompiler.prf
%{_libdir}/qt5/mkspecs/modules/qt_lib_packetprotocol_private.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_qml*.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_quick*.pri
%dir %{_libdir}/cmake/Qt5PacketProtocol
%{_libdir}/cmake/Qt5PacketProtocol/Qt5PacketProtocolConfig*.cmake
%dir %{_libdir}/cmake/Qt5Qml
%{_libdir}/cmake/Qt5Qml/Qt5Qml*.cmake
%dir %{_libdir}/cmake/Qt5QmlDebug
%{_libdir}/cmake/Qt5QmlDebug/Qt5QmlDebugConfig*.cmake
%dir %{_libdir}/cmake/Qt5QmlDevTools
%{_libdir}/cmake/Qt5QmlDevTools/Qt5QmlDevTools*.cmake
%dir %{_libdir}/cmake/Qt5QmlImportScanner
%{_libdir}/cmake/Qt5QmlImportScanner/*
%dir %{_libdir}/cmake/Qt5QmlModels
%{_libdir}/cmake/Qt5QmlModels/Qt5QmlModelsConfig*.cmake
%dir %{_libdir}/cmake/Qt5QmlWorkerScript
%{_libdir}/cmake/Qt5QmlWorkerScript/Qt5QmlWorkerScriptConfig*.cmake
%dir %{_libdir}/cmake/Qt5Quick
%{_libdir}/cmake/Qt5Quick/Qt5QuickConfig*.cmake
%dir %{_libdir}/cmake/Qt5QuickCompiler
%{_libdir}/cmake/Qt5QuickCompiler/Qt5QuickCompilerConfig.cmake
%dir %{_libdir}/cmake/Qt5QuickParticles
%{_libdir}/cmake/Qt5QuickParticles/Qt5QuickParticlesConfig*.cmake
%dir %{_libdir}/cmake/Qt5QuickShapes
%{_libdir}/cmake/Qt5QuickShapes/Qt5QuickShapesConfig*.cmake
%dir %{_libdir}/cmake/Qt5QuickTest
%{_libdir}/cmake/Qt5QuickTest/Qt5QuickTestConfig*.cmake
%dir %{_libdir}/cmake/Qt5QuickWidgets
%{_libdir}/cmake/Qt5QuickWidgets/Qt5QuickWidgetsConfig*.cmake
%{_libdir}/pkgconfig/Qt5Qml.pc
%{_libdir}/pkgconfig/Qt5QmlModels.pc
%{_libdir}/pkgconfig/Qt5QmlWorkerScript.pc
%{_libdir}/pkgconfig/Qt5Quick.pc
%{_libdir}/pkgconfig/Qt5QuickTest.pc
%{_libdir}/pkgconfig/Qt5QuickWidgets.pc
%changelog
* Sat Nov 13 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-3mamba
- require qt5-qtquickcontrols and qt5-qtgraphicaleffects
* Fri Nov 05 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-2mamba
- bump release to allow update from monolithic build subpackage
* Fri Nov 05 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-1mamba
- package created using the webbuild interface