split assistant, designer, linguist, qdbusviewer into subpackages [release 6.6.2-2mamba;Sun Mar 17 2024]

This commit is contained in:
Silvan Calarco 2024-03-19 19:54:11 +01:00
parent 0ec6b6ff3f
commit fb60097d64
5 changed files with 161 additions and 36 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=Qt6 QDbusViewer
GenericName=D-Bus Debugger
Comment=Debug D-Bus applications
Exec=qdbusviewer-qt6
Icon=qdbusviewer-qt6
Terminal=false
Type=Application
Categories=Qt;Development;Debugger;

View File

@ -2,7 +2,7 @@
Name: qt6-qttools
Version: 6.6.2
Release: 1mamba
Release: 2mamba
Summary: Qt6 tools
Group: Development/Tools
Vendor: openmamba
@ -13,9 +13,7 @@ Source: https://download.qt.io/official_releases/qt/%{majver}/%{version}/
Source1: libqt6-designer.desktop
Source2: libqt6-linguist.desktop
Source3: libqt6-assistant.desktop
Source4: libqt5-designer-icon128x128.png
Source5: libqt4-linguist-icon32x32.png
Source6: libqt4-assistant-icon32x32.png
Source4: libqt6-qdbusviewer.desktop
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -36,10 +34,72 @@ BuildRequires: qt6-qtdeclarative-devel = %{version}
%description
Qt6 tools.
%package -n qt6-assistant
Group: Graphical Desktop/Applications/Development
Summary: Qt6 assistant
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n qt6-assistant
Qt6 assistant.
%package -n qt6-designer
Group: Graphical Desktop/Applications/Development
Summary: Qt6 designer
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: libQt6Designer = %{?epoch:%epoch:}%{version}-%{release}
%description -n qt6-designer
Qt6 designer.
%package -n libQt6Designer
Group: System/Libraries
Summary: Qt6 designer shared libraries
%description -n libQt6Designer
Qt6 designer shared libraries.
%package -n qt6-doctools
Group: Graphical Desktop/Applications/Development
Summary: Qt6 doc tools
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: libQt6Help = %{?epoch:%epoch:}%{version}-%{release}
%description -n qt6-doctools
Qt6 doctools.
%package -n libQt6Help
Group: System/Libraries
Summary: Qt6 help shared libraries
%description -n libQt6Help
Qt6 help shared libraries.
%package -n qt6-linguist
Group: Graphical Desktop/Applications/Development
Summary: Qt6 linguist
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n qt6-linguist
Qt6 linguist.
%package -n qt6-qdbusviewer
Group: Graphical Desktop/Applications/Development
Summary: Qt6 dbus viewer
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n qt6-qdbusviewer
Qt6 dbus viewer.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: qt6-assistant = %{?epoch:%epoch:}%{version}-%{release}
Requires: qt6-designer = %{?epoch:%epoch:}%{version}-%{release}
Requires: qt6-linguist = %{?epoch:%epoch:}%{version}-%{release}
Requires: qt6-qdbusviewer = %{?epoch:%epoch:}%{version}-%{release}
Requires: libQt6Designer = %{?epoch:%epoch:}%{version}-%{release}
Requires: libQt6Help = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains libraries and header files for developing applications that use %{name}.
@ -62,17 +122,28 @@ DESTDIR="%{buildroot}" cmake --install build
install -d -m0755 %{buildroot}%{_bindir}
for f in assistant designer lconvert linguist lrelease lupdate pixeltool \
qdbus qbusviewer qdoc qhelpgenerator qtdiag qtplugininfo; do
qdbus qbusviewer qdoc qhelpgenerator qtdiag qtplugininfo qdistancefieldgenerator; do
ln -s ../%{_lib}/qt6/bin/${f} %{buildroot}%{_bindir}/${f}-qt6
done
# install desktop files
install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/designer-qt6.desktop
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/linguist-qt6.desktop
install -D -m0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/assistant-qt6.desktop
install -D -m0644 %{SOURCE4} %{buildroot}%{_datadir}/applications/qdbusviewer-qt6.desktop
install -D -m0644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/designer-qt6.png
install -D -m0644 %{SOURCE5} %{buildroot}%{_datadir}/pixmaps/linguist-qt6.png
install -D -m0644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/assistant-qt6.png
# install icons
install -m644 -p -D src/assistant/assistant/images/assistant.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/assistant-qt6.png
install -m644 -p -D src/assistant/assistant/images/assistant-128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/assistant-qt6.png
install -m644 -p -D src/designer/src/designer/images/designer.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/designer-qt6.png
install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/qdbusviewer-qt6.png
install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer-128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/qdbusviewer-qt6.png
# linguist icons
for icon in src/linguist/linguist/images/icons/linguist-*-32.png ; do
size=$(echo $(basename ${icon}) | cut -d- -f2)
install -p -m644 -D ${icon} %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/linguist-qt6.png
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -80,29 +151,53 @@ install -D -m0644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/assistant-qt6.png
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n libQt6Designer -p /sbin/ldconfig
%postun -n libQt6Designer -p /sbin/ldconfig
%post -n libQt6Help -p /sbin/ldconfig
%postun -n libQt6Help -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*-qt6
%{_bindir}/qdbus-qt6
%{_libdir}/qt6/bin/qdbus
%{_libdir}/libQt6UiTools.so.*
%doc LICENSES
%files -n qt6-assistant
%defattr(-,root,root)
%{_bindir}/assistant-qt6
%{_libdir}/qt6/bin/assistant
%{_datadir}/applications/assistant-qt6.desktop
%{_datadir}/icons/hicolor/*/apps/assistant-qt6.png
%files -n qt6-designer
%defattr(-,root,root)
%{_bindir}/designer-qt6
%{_libdir}/qt6/bin/designer
%{_datadir}/applications/designer-qt6.desktop
%{_datadir}/icons/hicolor/*/apps/designer-qt6.png
%files -n libQt6Designer
%defattr(-,root,root)
%{_libdir}/libQt6Designer.so.*
%{_libdir}/libQt6DesignerComponents.so.*
%{_libdir}/qt6/plugins/designer/libqquickwidget.so
%files -n qt6-linguist
%defattr(-,root,root)
%{_bindir}/lconvert-qt6
%{_bindir}/lrelease-qt6
%{_bindir}/lupdate-qt6
%{_bindir}/linguist-qt6
%{_libdir}/qt6/bin/lconvert
%{_libdir}/qt6/bin/linguist
%{_libdir}/qt6/bin/lrelease
%{_libdir}/qt6/bin/lupdate
%{_libdir}/qt6/bin/pixeltool
%{_libdir}/qt6/bin/qdbus
%{_libdir}/qt6/bin/qdbusviewer
%{_libdir}/qt6/bin/qdistancefieldgenerator
%{_libdir}/qt6/bin/qdoc
%{_libdir}/qt6/bin/qtdiag
%{_libdir}/qt6/bin/qtplugininfo
%{_libdir}/qt6/libexec/qhelpgenerator
%{_datadir}/applications/assistant-qt6.desktop
%{_datadir}/applications/designer-qt6.desktop
%{_libdir}/qt6/bin/linguist
%{_libdir}/qt6/libexec/lprodump
%{_libdir}/qt6/libexec/lrelease-pro
%{_libdir}/qt6/libexec/lupdate-pro
%{_datadir}/applications/linguist-qt6.desktop
%{_datadir}/pixmaps/designer-qt6.png
%{_datadir}/pixmaps/linguist-qt6.png
%{_datadir}/pixmaps/assistant-qt6.png
%{_datadir}/qt6/phrasebooks/danish.qph
%{_datadir}/qt6/phrasebooks/dutch.qph
%{_datadir}/qt6/phrasebooks/finnish.qph
@ -116,23 +211,38 @@ install -D -m0644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/assistant-qt6.png
%{_datadir}/qt6/phrasebooks/russian.qph
%{_datadir}/qt6/phrasebooks/spanish.qph
%{_datadir}/qt6/phrasebooks/swedish.qph
#
%{_libdir}/libQt6Designer.so.*
%{_libdir}/libQt6DesignerComponents.so.*
%{_libdir}/qt6/plugins/designer/libqquickwidget.so
%{_libdir}/libQt6Help.so.*
%{_libdir}/libQt6UiTools.so.*
%{_libdir}/qt6/metatypes/qt6*.json
%{_libdir}/qt6/bin/qtdiag6
%{_libdir}/qt6/libexec/lprodump
%{_libdir}/qt6/libexec/lrelease-pro
%{_libdir}/qt6/libexec/lupdate-pro
%{_datadir}/icons/hicolor/*/apps/linguist-qt6.png
%files -n qt6-qdbusviewer
%defattr(-,root,root)
%{_bindir}/qbusviewer-qt6
%{_libdir}/qt6/bin/qdbusviewer
%{_datadir}/applications/qdbusviewer-qt6.desktop
%{_datadir}/icons/hicolor/*/apps/qdbusviewer-qt6.png
%files -n qt6-doctools
%defattr(-,root,root)
%{_bindir}/qdoc-qt6
%{_bindir}/qdistancefieldgenerator-qt6
%{_bindir}/qhelpgenerator-qt6
%{_libdir}/qt6/bin/qdoc
%{_libdir}/qt6/bin/qdistancefieldgenerator
%{_libdir}/qt6/libexec/qhelpgenerator
%{_libdir}/qt6/libexec/qtattributionsscanner
%{_libdir}/qt6/modules/*.json
%doc LICENSES
%files -n libQt6Help
%defattr(-,root,root)
%{_libdir}/libQt6Help.so.*
%files devel
%defattr(-,root,root)
%{_bindir}/pixeltool-qt6
%{_bindir}/qtdiag-qt6
%{_bindir}/qtplugininfo-qt6
%{_libdir}/qt6/bin/pixeltool
%{_libdir}/qt6/bin/qtdiag
%{_libdir}/qt6/bin/qtdiag6
%{_libdir}/qt6/bin/qtplugininfo
%dir %{_includedir}/qt6/QtDesigner
%{_includedir}/qt6/QtDesigner/*
%dir %{_includedir}/qt6/QtDesignerComponents
@ -159,6 +269,8 @@ install -D -m0644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/assistant-qt6.png
%{_libdir}/libQt6Help.so
%{_libdir}/libQt6UiTools.so
%{_libdir}/libQt6UiTools.prl
%{_libdir}/qt6/metatypes/qt6*.json
%{_libdir}/qt6/modules/*.json
%{_libdir}/qt6/mkspecs/modules/qt_lib_*.pri
%{_libdir}/cmake/Qt6/FindWrapLibClang.cmake
%{_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtToolsTestsConfig.cmake
@ -191,6 +303,9 @@ install -D -m0644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/assistant-qt6.png
%{_libdir}/pkgconfig/Qt6*.pc
%changelog
* Sun Mar 17 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 6.6.2-2mamba
- split assistant, designer, linguist, qdbusviewer into subpackages
* Fri Feb 16 2024 Automatic Build System <autodist@openmamba.org> 6.6.2-1mamba
- automatic version update by autodist