qt6-qtdeclarative/qt6-qtdeclarative.spec

352 lines
11 KiB
RPMSpec
Raw Normal View History

2021-09-13 10:20:50 +00:00
# FIXME: qt6-qtdeclarative doesn't build on S390x
# BUG: https://bugreports.qt.io/browse/QTBUG-93101
ExcludeArch: s390x
2021-01-22 13:10:33 +00:00
%global qt_module qtdeclarative
# definition borrowed from qtbase
%global multilib_archs x86_64 %{ix86} %{?mips} ppc64 ppc s390x s390 sparc64 sparcv9
2021-09-30 11:38:45 +00:00
#global unstable 1
%if 0%{?unstable}
2021-09-27 12:14:34 +00:00
%global prerelease rc2
2021-08-30 12:26:52 +00:00
%endif
2021-01-22 13:10:33 +00:00
Summary: Qt6 - QtDeclarative component
Name: qt6-%{qt_module}
2021-10-29 11:22:28 +00:00
Version: 6.2.1
2021-09-19 09:41:30 +00:00
Release: 1%{?dist}
2021-01-22 13:10:33 +00:00
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
License: LGPLv2 with exceptions or GPLv3 with exceptions
Url: http://www.qt.io
2021-08-30 12:26:52 +00:00
%global majmin %(echo %{version} | cut -d. -f1-2)
%global qt_version %(echo %{version} | cut -d~ -f1)
2021-09-30 11:38:45 +00:00
%if 0%{?unstable}
2021-08-30 12:26:52 +00:00
Source0: https://download.qt.io/development_releases/qt/%{majmin}/%{qt_version}/submodules/%{qt_module}-everywhere-src-%{qt_version}-%{prerelease}.tar.xz
%else
2021-01-22 13:10:33 +00:00
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz
2021-08-30 12:26:52 +00:00
%endif
2021-01-22 13:10:33 +00:00
# header file to workaround multilib issue
# https://bugzilla.redhat.com/show_bug.cgi?id=1441343
Source5: qv4global_p-multilib.h
## upstream patches
## upstreamable patches
# filter qml provides
%global __provides_exclude_from ^%{_qt6_archdatadir}/qml/.*\\.so$
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: ninja-build
BuildRequires: qt6-rpm-macros
BuildRequires: qt6-qtbase-devel >= %{version}
BuildRequires: qt6-qtbase-private-devel
2021-08-30 12:26:52 +00:00
BuildRequires: qt6-qtshadertools-devel >= %{version}
2021-01-22 13:10:33 +00:00
%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}}
BuildRequires: python%{python3_pkgversion}
BuildRequires: pkgconfig(xkbcommon) >= 0.4.1
%if 0%{?tests}
BuildRequires: dbus-x11
BuildRequires: mesa-dri-drivers
BuildRequires: time
BuildRequires: xorg-x11-server-Xvfb
%endif
2021-09-13 12:10:21 +00:00
Obsoletes: qt6-qtquickcontrols2 < 6.2.0~beta3-1
Provides: qt6-qtquickcontrols2 = %{version}-%{release}
2021-01-22 13:10:33 +00:00
%description
%{summary}.
%package devel
Summary: Development files for %{name}
Provides: %{name}-private-devel = %{version}-%{release}
2021-09-13 12:10:21 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt6-qtbase-devel%{?_isa}
Obsoletes: qt6-qtquickcontrols2-devel < 6.2.0~beta3-1
Provides: qt6-qtquickcontrols2-devel = %{version}-%{release}
2021-01-22 13:10:33 +00:00
%description devel
%{summary}.
%package static
Summary: Static library files for %{name}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description static
%{summary}.
%package examples
Summary: Programming examples for %{name}
2021-09-13 12:10:21 +00:00
Requires: %{name}%{?_isa} = %{version}-%{release}
Obsoletes: qt6-qtquickcontrols2-examples < 6.2.0~beta3-1
Provides: qt6-qtquickcontrols2-examples = %{version}-%{release}
2021-01-22 13:10:33 +00:00
%description examples
%{summary}.
%prep
2021-08-30 12:26:52 +00:00
%autosetup -n %{qt_module}-everywhere-src-%{qt_version}%{?unstable:-%{prerelease}} -p1
2021-01-22 13:10:33 +00:00
%build
# HACK so calls to "python" get what we want
ln -s %{__python3} python
export PATH=`pwd`:$PATH
%cmake_qt6
%cmake_build
%install
%cmake_install
%ifarch %{multilib_archs}
# multilib: qv4global_p.h
2021-08-30 12:26:52 +00:00
mv %{buildroot}%{_qt6_headerdir}/QtQml/%{qt_version}/QtQml/private/qv4global_p.h \
%{buildroot}%{_qt6_headerdir}/QtQml/%{qt_version}/QtQml/private/qv4global_p-%{__isa_bits}.h
install -p -m644 -D %{SOURCE5} %{buildroot}%{_qt6_headerdir}/QtQml/%{qt_version}/QtQml/private/qv4global_p.h
2021-01-22 13:10:33 +00:00
%endif
# hardlink files to %{_bindir}, add -qt6 postfix to not conflict
mkdir %{buildroot}%{_bindir}
pushd %{buildroot}%{_qt6_bindir}
for i in * ; do
case "${i}" in
qmlcachegen|qmlleasing|qmlformat|qmleasing|qmlimportscanner|qmllint| \
qmlpreview|qmlscene|qmltestrunner|qmltyperegistrar|qmlplugindump| \
2021-06-07 15:29:31 +00:00
qmlprofiler|qml|qmlbundle|qmlmin|qmltime)
2021-01-22 13:10:33 +00:00
ln -v ${i} %{buildroot}%{_bindir}/${i}-qt6
;;
*)
ln -v ${i} %{buildroot}%{_bindir}/${i}
;;
esac
done
popd
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt6_libdir}
for prl_file in libQt6*.prl ; do
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
rm -fv "$(basename ${prl_file} .prl).la"
sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
done
popd
%check
%if 0%{?tests}
export CTEST_OUTPUT_ON_FAILURE=1
export PATH=%{buildroot}%{_qt6_bindir}:$PATH
export LD_LIBRARY_PATH=%{buildroot}%{_qt6_libdir}
make sub-tests-all %{?_smp_mflags}
xvfb-run -a \
dbus-launch --exit-with-session \
time \
make check -k -C tests ||:
%endif
%ldconfig_scriptlets
%files
%license LICENSE.LGPL*
2021-05-07 07:03:39 +00:00
%{_qt6_libdir}/libQt6LabsAnimation.so.6*
%{_qt6_libdir}/libQt6LabsFolderListModel.so.6*
%{_qt6_libdir}/libQt6LabsQmlModels.so.6*
%{_qt6_libdir}/libQt6LabsSettings.so.6*
%{_qt6_libdir}/libQt6LabsSharedImage.so.6*
%{_qt6_libdir}/libQt6LabsWavefrontMesh.so.6*
%{_qt6_libdir}/libQt6QmlLocalStorage.so.6*
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/libQt6Qml.so.6*
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/libQt6QmlCore.so.6*
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/libQt6QmlModels.so.6*
%{_qt6_libdir}/libQt6QmlWorkerScript.so.6*
%{_qt6_libdir}/libQt6Quick.so.6*
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/libQt6QuickControls2.so.6*
%{_qt6_libdir}/libQt6QuickControls2Impl.so.6*
%{_qt6_libdir}/libQt6QuickDialogs2.so.6*
%{_qt6_libdir}/libQt6QuickDialogs2QuickImpl.so.6*
%{_qt6_libdir}/libQt6QuickDialogs2Utils.so.6*
2021-05-07 07:03:39 +00:00
%{_qt6_libdir}/libQt6QuickLayouts.so.6*
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/libQt6QuickWidgets.so.6*
%{_qt6_libdir}/libQt6QuickParticles.so.6*
%{_qt6_libdir}/libQt6QuickShapes.so.6*
%{_qt6_libdir}/libQt6QuickTest.so.6*
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/libQt6QuickTemplates2.so.6*
%{_qt6_libdir}/libQt6QmlXmlListModel.so.6*
2021-01-22 13:10:33 +00:00
%{_qt6_plugindir}/qmltooling/
%{_qt6_archdatadir}/qml/
%files devel
2021-08-30 12:26:52 +00:00
%dir %{_qt6_libdir}/cmake/Qt6PacketProtocolPrivate/
2021-01-22 13:10:33 +00:00
%dir %{_qt6_libdir}/cmake/Qt6Qml/
2021-08-30 12:26:52 +00:00
%dir %{_qt6_libdir}/cmake/Qt6QmlCompilerPrivate/
%dir %{_qt6_libdir}/cmake/Qt6QmlCore
%dir %{_qt6_libdir}/cmake/Qt6QmlDebugPrivate/
%dir %{_qt6_libdir}/cmake/Qt6QmlDevToolsPrivate/
2021-01-22 13:10:33 +00:00
%dir %{_qt6_libdir}/cmake/Qt6QmlImportScanner/
2021-05-07 07:03:39 +00:00
%dir %{_qt6_libdir}/cmake/Qt6LabsAnimation
%dir %{_qt6_libdir}/cmake/Qt6LabsFolderListModel
%dir %{_qt6_libdir}/cmake/Qt6LabsQmlModels
%dir %{_qt6_libdir}/cmake/Qt6LabsSettings
%dir %{_qt6_libdir}/cmake/Qt6LabsSharedImage
%dir %{_qt6_libdir}/cmake/Qt6LabsWavefrontMesh
2021-08-30 12:26:52 +00:00
%dir %{_qt6_libdir}/cmake/Qt6QmlDomPrivate
2021-05-07 07:03:39 +00:00
%dir %{_qt6_libdir}/cmake/Qt6QmlLocalStorage
2021-01-22 13:10:33 +00:00
%dir %{_qt6_libdir}/cmake/Qt6QmlModels/
%dir %{_qt6_libdir}/cmake/Qt6QmlTools/
%dir %{_qt6_libdir}/cmake/Qt6QmlWorkerScript/
%dir %{_qt6_libdir}/cmake/Qt6Quick/
2021-08-30 12:26:52 +00:00
%dir %{_qt6_libdir}/cmake/Qt6QuickControls2
%dir %{_qt6_libdir}/cmake/Qt6QuickControls2Impl
%dir %{_qt6_libdir}/cmake/Qt6QuickDialogs2
%dir %{_qt6_libdir}/cmake/Qt6QuickDialogs2QuickImpl
%dir %{_qt6_libdir}/cmake/Qt6QuickDialogs2Utils
2021-05-07 07:03:39 +00:00
%dir %{_qt6_libdir}/cmake/Qt6QuickLayouts
2021-08-30 12:26:52 +00:00
%dir %{_qt6_libdir}/cmake/Qt6QuickParticlesPrivate/
%dir %{_qt6_libdir}/cmake/Qt6QuickShapesPrivate/
2021-01-22 13:10:33 +00:00
%dir %{_qt6_libdir}/cmake/Qt6QuickTest/
2021-08-30 12:26:52 +00:00
%dir %{_qt6_libdir}/cmake/Qt6QuickTemplates2
%dir %{_qt6_libdir}/cmake/Qt6QmlXmlListModel
2021-01-22 13:10:33 +00:00
%{_bindir}/qml*
%{_qt6_bindir}/qml*
2021-08-30 12:26:52 +00:00
%{_qt6_libexecdir}/qmlcachegen
%{_qt6_libexecdir}/qmlimportscanner
%{_qt6_libexecdir}/qmltyperegistrar
2021-01-22 13:10:33 +00:00
%{_qt6_headerdir}/Qt*/
2021-05-07 07:03:39 +00:00
%{_qt6_libdir}/libQt6LabsAnimation.so
%{_qt6_libdir}/libQt6LabsFolderListModel.so
%{_qt6_libdir}/libQt6LabsQmlModels.so
%{_qt6_libdir}/libQt6LabsSettings.so
%{_qt6_libdir}/libQt6LabsSharedImage.so
%{_qt6_libdir}/libQt6LabsWavefrontMesh.so
%{_qt6_libdir}/libQt6QmlLocalStorage.so
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/libQt6Qml.so
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/libQt6QmlCore.so
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/libQt6QmlModels.so
%{_qt6_libdir}/libQt6QmlWorkerScript.so
%{_qt6_libdir}/libQt6Quick*.so
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/libQt6QmlXmlListModel.so
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/metatypes/qt6*_metatypes.json
%{_qt6_archdatadir}/mkspecs/modules/*.pri
%{_qt6_archdatadir}/mkspecs/features/*.prf
%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtDeclarativeTestsConfig.cmake
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/cmake/Qt6PacketProtocolPrivate/*.cmake
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/cmake/Qt6Qml/*.cmake*
%{_qt6_libdir}/cmake/Qt6Qml/*.cpp.in
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/*.cmake
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/cmake/Qt6QmlCompilerPrivate/*.cmake
%{_qt6_libdir}/cmake/Qt6QmlCore/*.cmake
%{_qt6_libdir}/cmake/Qt6QmlDebugPrivate/*.cmake
%{_qt6_libdir}/cmake/Qt6QmlDevToolsPrivate/*.cmake
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/cmake/Qt6QmlImportScanner/*.cmake
2021-05-07 07:03:39 +00:00
%{_qt6_libdir}/cmake/Qt6LabsAnimation/*.cmake
%{_qt6_libdir}/cmake/Qt6LabsFolderListModel/*.cmake
%{_qt6_libdir}/cmake/Qt6LabsQmlModels/*.cmake
%{_qt6_libdir}/cmake/Qt6LabsSettings/*.cmake
%{_qt6_libdir}/cmake/Qt6LabsSharedImage/*.cmake
%{_qt6_libdir}/cmake/Qt6LabsWavefrontMesh/*.cmake
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/cmake/Qt6QmlDomPrivate/*.cmake
2021-05-07 07:03:39 +00:00
%{_qt6_libdir}/cmake/Qt6QmlLocalStorage/*.cmake
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/cmake/Qt6QmlModels/*.cmake
%{_qt6_libdir}/cmake/Qt6QmlTools/*.cmake
%{_qt6_libdir}/cmake/Qt6QmlWorkerScript/*.cmake
%{_qt6_libdir}/cmake/Qt6Quick/*.cmake
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/cmake/Qt6QuickControls2/*.cmake
%{_qt6_libdir}/cmake/Qt6QuickControls2Impl/*.cmake
%{_qt6_libdir}/cmake/Qt6QuickDialogs2/*.cmake
%{_qt6_libdir}/cmake/Qt6QuickDialogs2QuickImpl/*.cmake
%{_qt6_libdir}/cmake/Qt6QuickDialogs2Utils/*.cmake
2021-05-07 07:03:39 +00:00
%{_qt6_libdir}/cmake/Qt6QuickLayouts/*.cmake
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/cmake/Qt6QuickParticlesPrivate/*.cmake
%{_qt6_libdir}/cmake/Qt6QuickShapesPrivate/*.cmake
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/cmake/Qt6QuickTest/*.cmake
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/cmake/Qt6QuickTemplates2/*.cmake
%{_qt6_libdir}/cmake/Qt6QmlXmlListModel/*.cmake
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/cmake/Qt6QuickWidgets/*.cmake
%{_qt6_datadir}/modules/*.json
%files static
2021-05-07 07:03:39 +00:00
%{_qt6_libdir}/libQt6LabsAnimation.prl
%{_qt6_libdir}/libQt6LabsFolderListModel.prl
%{_qt6_libdir}/libQt6LabsQmlModels.prl
%{_qt6_libdir}/libQt6LabsSettings.prl
%{_qt6_libdir}/libQt6LabsSharedImage.prl
%{_qt6_libdir}/libQt6LabsWavefrontMesh.prl
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/libQt6QmlCore.prl
2021-05-07 07:03:39 +00:00
%{_qt6_libdir}/libQt6QmlDom.a
%{_qt6_libdir}/libQt6QmlDom.prl
%{_qt6_libdir}/libQt6QmlLocalStorage.prl
%{_qt6_libdir}/libQt6Quick*.prl
%{_qt6_libdir}/libQt6QmlWorkerScript.prl
%{_qt6_libdir}/libQt6QmlModels.prl
%{_qt6_libdir}/libQt6Qml.prl
2021-01-22 13:10:33 +00:00
%{_qt6_libdir}/libQt6QmlCompiler.a
%{_qt6_libdir}/libQt6QmlCompiler.prl
%{_qt6_libdir}/libQt6QmlDevTools.prl
%{_qt6_libdir}/libQt6QmlDevTools.a
%{_qt6_libdir}/libQt6PacketProtocol.a
%{_qt6_libdir}/libQt6PacketProtocol.prl
%{_qt6_libdir}/libQt6QmlDebug.a
%{_qt6_libdir}/libQt6QmlDebug.prl
2021-08-30 12:26:52 +00:00
%{_qt6_libdir}/libQt6QmlXmlListModel.prl
2021-01-22 13:10:33 +00:00
%files examples
%{_qt6_examplesdir}/
%changelog
2021-10-29 11:22:28 +00:00
* Fri Oct 29 2021 Jan Grulich <jgrulich@redhat.com> - 6.2.1-1
- 6.2.1
2021-09-30 11:38:45 +00:00
* Thu Sep 30 2021 Jan Grulich <jgrulich@redhat.com> - 6.2.0-1
- 6.2.0
2021-09-27 12:14:34 +00:00
* Mon Sep 27 2021 Jan Grulich <jgrulich@redhat.com> - 6.2.0~rc2-1
- 6.2.0 - rc2
2021-09-19 09:41:30 +00:00
* Sat Sep 18 2021 Jan Grulich <jgrulich@redhat.com> - 6.2.0~rc-1
- 6.2.0 - rc
2021-09-13 12:10:21 +00:00
* Mon Sep 13 2021 Jan Grulich <jgrulich@redhat.com> - 6.2.0~beta4-1
- Obsoletes: qt6-qtquickcontrols2
2021-09-13 07:16:15 +00:00
* Mon Sep 13 2021 Jan Grulich <jgrulich@redhat.com> - 6.2.0~beta4-1
- 6.2.0 - beta4
2021-08-30 12:26:52 +00:00
* Mon Aug 30 2021 Jan Grulich <jgrulich@redhat.com> - 6.2.0~beta3-1
- 6.2.0 - beta3
2021-08-12 10:26:46 +00:00
* Thu Aug 12 2021 Jan Grulich <jgrulich@redhat.com> - 6.1.2-1
- 6.1.2
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-06-07 15:29:31 +00:00
* Mon Jun 07 2021 Jan Grulich <jgrulich@redhat.com> - 6.1.1-1
- 6.1.1
2021-05-07 07:03:39 +00:00
* Thu May 06 2021 Jan Grulich <jgrulich@redhat.com> - 6.1.0-1
- 6.1.0
2021-04-05 16:06:19 +00:00
* Mon Apr 05 2021 Jan Grulich <jgrulich@redhat.com> - 6.0.3-1
- 6.0.3
2021-02-04 07:39:52 +00:00
* Thu Feb 04 2021 Jan Grulich <jgrulich@redhat.com> - 6.0.1-1
- 6.0.1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2021-01-22 13:10:33 +00:00
* Mon Jan 11 2021 Jan Grulich <jgrulich@redhat.com> - 6.0.0-1
- 6.0.0