From 5cd28cc9fb36a6b58ab419fd01c8be462f90d57d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 15 Nov 2022 01:31:37 -0500 Subject: [PATCH] import qt5-doc-5.15.3-1.el9 --- .gitignore | 1 + .qt5-doc.metadata | 1 + SOURCES/generate-qt-doc.sh | 59 ++++++ SPECS/qt5-doc.spec | 368 +++++++++++++++++++++++++++++++++++++ 4 files changed, 429 insertions(+) create mode 100644 .gitignore create mode 100644 .qt5-doc.metadata create mode 100755 SOURCES/generate-qt-doc.sh create mode 100644 SPECS/qt5-doc.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3caf3b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/qt-doc-opensource-src-5.15.3.tar.xz diff --git a/.qt5-doc.metadata b/.qt5-doc.metadata new file mode 100644 index 0000000..01b3159 --- /dev/null +++ b/.qt5-doc.metadata @@ -0,0 +1 @@ +71c044bce298014d97e9fd5cf4e4e34df0d81c8d SOURCES/qt-doc-opensource-src-5.15.3.tar.xz diff --git a/SOURCES/generate-qt-doc.sh b/SOURCES/generate-qt-doc.sh new file mode 100755 index 0000000..07eda37 --- /dev/null +++ b/SOURCES/generate-qt-doc.sh @@ -0,0 +1,59 @@ +#!/bin/bash -x + +QT_MODULES=('qt3d' 'qtbase' 'qtcanvas3d' 'qtconnectivity' 'qtdeclarative' 'qtdoc' 'qtgraphicaleffects' 'qtimageformats' 'qtlocation' 'qtmultimedia' 'qtquickcontrols' 'qtquickcontrols2' 'qtscript' 'qtsensors' 'qtserialbus' 'qtserialport' 'qtsvg' 'qttools' 'qtwayland' 'qtwebchannel' 'qtwebsockets' 'qtx11extras' 'qtxmlpatterns') + +QT_BRANCH=5.15 +QT_VERSION=5.15.3 +make_build="$(rpm --eval %make_build)" + +# Clone full qt tree +git clone -b $QT_BRANCH git://code.qt.io/qt/qt5.git + +# Install fedora deps for qt5-qtbase, qt5-qttools +sudo dnf builddep qt5-qtbase qt5-qttools -y + +# Configure using fedora configure basic options +cd qt5 || return +git submodule foreach "git checkout $QT_BRANCH" +git submodule foreach "git fetch" +git submodule foreach "git pull" + +# Init the base source +MODULES_LIST=$(printf ",%s" "${QT_MODULES[@]}") +MODULES_LIST=${MODULES_LIST:1} +./init-repository --module-subset=$MODULES_LIST + +# hard-code docdir for now, rpm --eval %{_qt5_docdir} yields unexpanded %{_docdir}/qt5 , wtf -- rex +./configure -confirm-license -opensource -prefix $(rpm --eval "%{_qt5_prefix}") \ + -archdatadir $(rpm --eval "%{_qt5_archdatadir}") -bindir $(rpm --eval "%{_qt5_bindir}") \ + -libdir $(rpm --eval "%{_qt5_libdir}") -libexecdir $(rpm --eval "%{_qt5_libexecdir}") \ + -datadir $(rpm --eval "%{_qt5_datadir}") -docdir /usr/share/doc/qt5 \ + -examplesdir $(rpm --eval "%{_qt5_examplesdir}") -headerdir $(rpm --eval "%{_qt5_headerdir}") \ + -importdir $(rpm --eval "%{_qt5_importdir}") -plugindir $(rpm --eval "%{_qt5_plugindir}") \ + -sysconfdir $(rpm --eval "%{_qt5_sysconfdir}") -translationdir $(rpm --eval "%{_qt5_translationdir}") \ + -platform linux-g++ -release -shared -accessibility -dbus-runtime -fontconfig -glib -gtk \ + -icu -journald -nomake examples -nomake tests -no-rpath -no-separate-debug-info -no-strip \ + -system-libjpeg -system-libpng -system-zlib -no-directfb -skip qtmacextras -skip qtandroidextras \ + -skip qtactiveqt -skip qtwinextras -skip qtqa -skip qtwebengine -skip qtwebview -skip qtdatavis3d \ + -skip qtgamepad -skip qtcharts -skip qtnetworkauth -skip qtremoteobjects -skip qtscxml \ + -skip qtvirtualkeyboard -skip qtspeech + +$make_build qmake_all + +$make_build -C qtbase || exit +$make_build -C qtbase/src/tools/bootstrap +$make_build -C qtbase/src/tools/rcc +$make_build sub-qmldevtools -C qtdeclarative/src/ +$make_build sub-qdoc sub-qtattributionsscanner -C qttools/src/ +$make_build sub-qhelpgenerator -C qttools/src/assistant/ + +echo "INFO: make docs" +$make_build -j1 docs || echo "ERROR: make docs" ; exit 1 + +# Install docs on tmp directory +DEST=${PWD}/install +rm -rf $DEST/ && mkdir -p ${DEST} +$make_build install_docs INSTALL_ROOT=$DEST -k + +XZ_OPT="-T 2" +tar -C $DEST -cJf ../qt-doc-opensource-src-${QT_VERSION}.tar.xz . diff --git a/SPECS/qt5-doc.spec b/SPECS/qt5-doc.spec new file mode 100644 index 0000000..c883dea --- /dev/null +++ b/SPECS/qt5-doc.spec @@ -0,0 +1,368 @@ +Name: qt5-doc +Summary: Qt5 - Complete documentation +Version: 5.15.3 +Release: 1%{?dist} +BuildArch: noarch + +License: GFDL +# The tarball for this docs are self generated through provided script on SOURCES generate-qt-doc.sh +Url: http://qt-project.org/ +Source0: qt-doc-opensource-src-%{version}.tar.xz +Source1: generate-qt-doc.sh + +# optimize build, skip unecessary steps +%global debug_package %{nil} +%global __spec_install_post %{nil} + +BuildRequires: qt5-rpm-macros >= 5.5.0 + +Obsoletes: qt5-qtcanvas3d-doc < 5.13 + +Requires: qt5-qt3d-doc >= %{version} +Requires: qt5-qtbase-doc >= %{version} +Requires: qt5-qtconnectivity-doc >= %{version} +Requires: qt5-qtdeclarative-doc >= %{version} +Requires: qt5-qtgraphicaleffects-doc >= %{version} +Requires: qt5-qtimageformats-doc >= %{version} +Requires: qt5-qtlocation-doc >= %{version} +Requires: qt5-qtmultimedia-doc >= %{version} +Requires: qt5-qtquickcontrols2-doc >= %{version} +Requires: qt5-qtquickcontrols-doc >= %{version} +Requires: qt5-qtscript-doc >= %{version} +Requires: qt5-qtsensors-doc >= %{version} +Requires: qt5-qtserialbus-doc >= %{version} +Requires: qt5-qtserialport-doc >= %{version} +Requires: qt5-qtsvg-doc >= %{version} +Requires: qt5-qttools-doc >= %{version} +Requires: qt5-qtwayland-doc >= %{version} +Requires: qt5-qtwebchannel-doc >= %{version} +Requires: qt5-qtwebsockets-doc >= %{version} +Requires: qt5-qtx11extras-doc >= %{version} +Requires: qt5-qtxmlpatterns-doc >= %{version} + +%description +This is the meta package for all Qt library documentation + +%package -n qt5-qtcanvas3d-doc +Summary: Documentation for qtcanvas3d + +%description -n qt5-qtcanvas3d-doc +%{summary}. + +%files -n qt5-qtcanvas3d-doc +%{_qt5_docdir}/qtcanvas3d* + +%package -n qt5-qtbase-doc +Summary: Documentation for qtbase + +%description -n qt5-qtbase-doc +%{summary}. + +%files -n qt5-qtbase-doc +%{_qt5_docdir}/qmake* +%{_qt5_docdir}/qtconcurrent* +%{_qt5_docdir}/qtcore* +%{_qt5_docdir}/qtdbus* +%{_qt5_docdir}/qtgui* +%{_qt5_docdir}/qtnetwork* +%{_qt5_docdir}/qtopengl* +%{_qt5_docdir}/qtplatformheaders* +%{_qt5_docdir}/qtprintsupport* +%{_qt5_docdir}/qtsql* +%{_qt5_docdir}/qtwidgets* +%{_qt5_docdir}/qtxml* +%{_qt5_docdir}/qttestlib* + +%package -n qt5-qt3d-doc +Summary: Documentation for qt3d + +%description -n qt5-qt3d-doc +%{summary}. + +%files -n qt5-qt3d-doc +%{_qt5_docdir}/qt3d* + +%package -n qt5-qtconnectivity-doc +Summary: Documentation for qtconnectivity + +%description -n qt5-qtconnectivity-doc +%{summary}. + +%files -n qt5-qtconnectivity-doc +%{_qt5_docdir}/qtbluetooth* +%{_qt5_docdir}/qtnfc* + +%package -n qt5-qtdeclarative-doc +Summary: Documentation for qtdeclarative + +%description -n qt5-qtdeclarative-doc +%{summary}. + +%files -n qt5-qtdeclarative-doc +%{_qt5_docdir}/qtqml* +%{_qt5_docdir}/qtquick* + +%package -n qt5-qtgraphicaleffects-doc +Summary: Documentation for qtgraphicaleffects + +%description -n qt5-qtgraphicaleffects-doc +%{summary}. + +%files -n qt5-qtgraphicaleffects-doc +%{_qt5_docdir}/qtgraphicaleffects* + +%package -n qt5-qtimageformats-doc +Summary: Documentation for qtimageformats + +%description -n qt5-qtimageformats-doc +%{summary}. + +%files -n qt5-qtimageformats-doc +%{_qt5_docdir}/qtimageformats* + +%package -n qt5-qtmultimedia-doc +Summary: Documentation for qtmultimedia + +%description -n qt5-qtmultimedia-doc +%{summary}. + +%files -n qt5-qtmultimedia-doc +%{_qt5_docdir}/qtmultimedia* + +%package -n qt5-qtquickcontrols2-doc +Summary: Documentation for qtquickcontrols2 + +%description -n qt5-qtquickcontrols2-doc +%{summary}. + +%files -n qt5-qtquickcontrols2-doc +%{_qt5_docdir}/qtquickcontrols* + +%package -n qt5-qtquickcontrols-doc +Summary: Documentation for qtquickcontrols + +%description -n qt5-qtquickcontrols-doc +%{summary}. + +%files -n qt5-qtquickcontrols-doc +%{_qt5_docdir}/qtquickcontrols1 + +%package -n qt5-qtscript-doc +Summary: Documentation for qtscript + +%description -n qt5-qtscript-doc +%{summary}. + +%files -n qt5-qtscript-doc +%{_qt5_docdir}/qtscript* + +%package -n qt5-qtsensors-doc +Summary: Documentation for qtsensors + +%description -n qt5-qtsensors-doc +%{summary}. + +%files -n qt5-qtsensors-doc +%{_qt5_docdir}/qtsensors* + +%package -n qt5-qtserialbus-doc +Summary: Documentation for qtserialbus + +%description -n qt5-qtserialbus-doc +%{summary}. + +%files -n qt5-qtserialbus-doc +%{_qt5_docdir}/qtserialbus* + +%package -n qt5-qtserialport-doc +Summary: Documentation for qtserialport + +%description -n qt5-qtserialport-doc +%{summary}. + +%files -n qt5-qtserialport-doc +%{_qt5_docdir}/qtserialport* + +%package -n qt5-qtsvg-doc +Summary: Documentation for qtsvg + +%description -n qt5-qtsvg-doc +%{summary}. + +%files -n qt5-qtsvg-doc +%{_qt5_docdir}/qtsvg* + +%package -n qt5-qttools-doc +Summary: Documentation for qttools + +%description -n qt5-qttools-doc +%{summary}. + +%files -n qt5-qttools-doc +%{_qt5_docdir}/qdoc* +%{_qt5_docdir}/qtassistant* +%{_qt5_docdir}/qtdesigner* +%{_qt5_docdir}/qthelp* +%{_qt5_docdir}/qtlinguist* +%{_qt5_docdir}/qtuitools* + +%package -n qt5-qtwebchannel-doc +Summary: Documentation for qtwebchannel + +%description -n qt5-qtwebchannel-doc +%{summary}. + +%files -n qt5-qtwebchannel-doc +%{_qt5_docdir}/qtwebchannel* + +%package -n qt5-qtwebsockets-doc +Summary: Documentation for qtwebsockets + +%description -n qt5-qtwebsockets-doc +%{summary}. + +%files -n qt5-qtwebsockets-doc +%{_qt5_docdir}/qtwebsockets* + +%package -n qt5-qtx11extras-doc +Summary: Documentation for qtx11extras + +%description -n qt5-qtx11extras-doc +%{summary}. + +%files -n qt5-qtx11extras-doc +%{_qt5_docdir}/qtx11extras* + +## omit from here, conflicts with real qt5-qtdoc -- rex +## https://bugzilla.redhat.com/show_bug.cgi?id=1520355 +%if 0 +%package -n qt5-qtdoc-doc +Summary: Documentation for qtdoc + +%description -n qt5-qtdoc-doc +%{summary}. + +%files -n qt5-qtdoc-doc +%{_qt5_docdir}/qtdoc* +%endif + +%package -n qt5-qtwayland-doc +Summary: Documentation for qtwayland + +%description -n qt5-qtwayland-doc +%{summary}. + +%files -n qt5-qtwayland-doc +%{_qt5_docdir}/qtwayland* + +%package -n qt5-qtlocation-doc +Summary: Documentation for qtlocation + +%description -n qt5-qtlocation-doc +%{summary}. + +%files -n qt5-qtlocation-doc +%{_qt5_docdir}/qtlocation* +%{_qt5_docdir}/qtpositioning* + +%package -n qt5-qtxmlpatterns-doc +Summary: Documentation for qtxmlpatterns + +%description -n qt5-qtxmlpatterns-doc +%{summary}. + +%files -n qt5-qtxmlpatterns-doc +%{_qt5_docdir}/qtxmlpatterns* + +%prep +# intentionally left blank +# though could be used to initially unpack (rex) + +%build +# intentionally left blank + +%install +mkdir -p %{buildroot} +cd %{buildroot} +tar xf %{SOURCE0} + +cd %{buildroot}%{_docdir}/qt5 +rm -rfv qtdoc* qtcmake* qtdistancefieldgenerator* qtlabs* + + +%changelog +* Fri Apr 01 2022 Jan Grulich - 5.15.3-1 +- 5.15.3 + Resolves: bz#2061353 + +* Tue Aug 10 2021 Mohan Boddu - 5.15.1-4 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 5.15.1-3 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Wed Jan 27 2021 Fedora Release Engineering - 5.15.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Sep 10 2020 Jan Grulich - 5.15.1-1 +- 5.15.1 + +* Mon Aug 10 2020 Jan Grulich - 5.14-3 +- Produce qt5-doc package for easier installation of complete documentation + +* Wed Jul 29 2020 Fedora Release Engineering - 5.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Apr 11 2020 Rex Dieter - 5.14-1 +- 5.14 + +* Sat Apr 11 2020 Rex Dieter - 5.13-1 +- 5.13 +- Obsoletes: qt5-qtcanvas3d-doc + +* Thu Jan 30 2020 Fedora Release Engineering - 5.12.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 5.12.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Apr 19 2019 Rex Dieter - 5.12.3-1 +- 5.12.3 +- omit qtwebengine, now packaged separately + +* Sat Feb 02 2019 Fedora Release Engineering - 5.11.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 5.11.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jul 10 2018 Jan Grulich - 5.11.1-1 +- 5.11.1 + +* Wed May 09 2018 Jan Grulich - 5.10.1-1 +- Update to 5.10.1 + +* Fri Feb 09 2018 Fedora Release Engineering - 5.9.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Dec 04 2017 Rex Dieter - 5.9.2-2 +- omit -qtdoc-doc bits, conflicts with real qt5-qtdoc (#1520355) +- use %%_qt5_docdir macro (instead of hard-coded %%_docdir/qt5) +- optimize build a bit + +* Tue Oct 10 2017 Martin Bříza - 5.9.2-1 +- Update to 5.9.2 + +* Thu Jul 27 2017 Fedora Release Engineering - 5.9.0-0.beta.3.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue May 09 2017 Helio Chissini de Castro - 5.9.0-0.beta.3 +- Individual package plus meta package + +* Tue Apr 18 2017 Helio Chissini de Castro - 5.9.0-0.beta1.1 +- Add proper provides and obsoletes + +* Thu Apr 13 2017 Helio Chissini de Castro - 5.9.0-0.beta1.0 +- Full documentation package self generated +