qt5-qttools/qt5-qttools.spec

272 lines
8.9 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: qt5-qttools
Version: 5.15.7
Release: 2mamba
Summary: Qt5 tools
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.qt.io/
Source: https://download.qt.io/official_releases/qt/5.15/%{version}/submodules/qttools-everywhere-opensource-src-%{version}.tar.xz
Source1: libqt5-designer.desktop
Source2: libqt5-linguist.desktop
Source3: libqt5-assistant.desktop
Source4: libqt5-designer-icon128x128.png
Source5: libqt4-linguist-icon32x32.png
Source6: libqt4-assistant-icon32x32.png
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libQt5WebKit-devel
BuildRequires: libclang-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtdeclarative-devel
## AUTOBUILDREQ-END
BuildRequires: libclang-devel >= 0:15.0.5-1mamba
%description
Qt5 tools.
%package -n qt5-designer
Group: Graphical Desktop/Applications/Development
Summary: Qt5 Designer
Requires: libQt5Designer = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n qt5-designer
Qt5 Designer.
%package -n qt5-assistant
Group: Graphical Desktop/Applications/Development
Summary: Qt5 Assistant
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n qt5-assistant
Qt5 Assistant.
%package -n qt5-linguist
Group: Graphical Desktop/Applications/Development
Summary: Qt5 Linguist
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n qt5-linguist
Qt5 Linguist.
%package -n libQt5Designer
Group: System/Libraries
Summary: Shared libraries for Qt5 designer
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: libQt5DesignerComponents
Obsoletes: libQt5DesignerComponents <= 5.15.2-1mamba
Provides: libqt5-designer
Obsoletes: libqt5-designer <= 5.15.2-1mamba
%description -n libQt5Designer
This package contains shared libraries for Qt5 designer.
%package -n libQt5Help
Group: System/Libraries
Summary: Qt5 help shared libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n libQt5Help
This package contains Qt5 help shared libraries.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: qt5-designer = %{?epoch:%epoch:}%{version}-%{release}
Requires: qt5-assistant = %{?epoch:%epoch:}%{version}-%{release}
Requires: qt5-linguist = %{?epoch:%epoch:}%{version}-%{release}
Requires: libQt5Designer = %{?epoch:%epoch:}%{version}-%{release}
Requires: libQt5Help = %{?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 qttools-everywhere-src-%{version}
%build
%_qt5_qmake
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall INSTALL_ROOT=%{buildroot} STRIP=/bin/true
install -d -m0755 %{buildroot}%{_bindir}
for f in designer linguist assistant lconvert lprodump lrelease lupdate pixeltool \
qcollectiongenerator qdbus qbusviewer qdoc qhelpgenerator qtdiag qtpaths qtplugininfo; do
ln -s ../%{_lib}/qt5/bin/${f} %{buildroot}%{_bindir}/${f}-qt5
done
install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/designer-qt5.desktop
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/linguist-qt5.desktop
install -D -m0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/assistant-qt5.desktop
install -D -m0644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/designer-qt5.png
install -D -m0644 %{SOURCE5} %{buildroot}%{_datadir}/pixmaps/linguist-qt5.png
install -D -m0644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/assistant-qt5.png
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libQt5Designer -p /sbin/ldconfig
%postun -n libQt5Designer -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/lconvert-qt5
%{_bindir}/lprodump-qt5
%{_bindir}/lrelease-qt5
%{_bindir}/lupdate-qt5
%{_bindir}/pixeltool-qt5
%{_bindir}/qbusviewer-qt5
%{_bindir}/qcollectiongenerator-qt5
%{_bindir}/qdbus-qt5
%{_bindir}/qdoc-qt5
%{_bindir}/qhelpgenerator-qt5
%{_bindir}/qtdiag-qt5
%{_bindir}/qtpaths-qt5
%{_bindir}/qtplugininfo-qt5
%{_libdir}/qt5/bin/lconvert
%{_libdir}/qt5/bin/lprodump
%{_libdir}/qt5/bin/lrelease
%{_libdir}/qt5/bin/lrelease-pro
%{_libdir}/qt5/bin/lupdate
%{_libdir}/qt5/bin/lupdate-pro
%{_libdir}/qt5/bin/pixeltool
%{_libdir}/qt5/bin/qcollectiongenerator
%{_libdir}/qt5/bin/qdbus
%{_libdir}/qt5/bin/qdbusviewer
%{_libdir}/qt5/bin/qdistancefieldgenerator
%{_libdir}/qt5/bin/qdoc
%{_libdir}/qt5/bin/qhelpgenerator
%{_libdir}/qt5/bin/qtattributionsscanner
%{_libdir}/qt5/bin/qtdiag
%{_libdir}/qt5/bin/qtpaths
%{_libdir}/qt5/bin/qtplugininfo
%{_datadir}/qt5/phrasebooks/danish.qph
%{_datadir}/qt5/phrasebooks/dutch.qph
%{_datadir}/qt5/phrasebooks/finnish.qph
%{_datadir}/qt5/phrasebooks/french.qph
%{_datadir}/qt5/phrasebooks/german.qph
%{_datadir}/qt5/phrasebooks/hungarian.qph
%{_datadir}/qt5/phrasebooks/italian.qph
%{_datadir}/qt5/phrasebooks/japanese.qph
%{_datadir}/qt5/phrasebooks/norwegian.qph
%{_datadir}/qt5/phrasebooks/polish.qph
%{_datadir}/qt5/phrasebooks/russian.qph
%{_datadir}/qt5/phrasebooks/spanish.qph
%{_datadir}/qt5/phrasebooks/swedish.qph
%files -n qt5-designer
%defattr(-,root,root)
%{_bindir}/designer-qt5
%{_libdir}/qt5/bin/designer
%{_datadir}/applications/designer-qt5.desktop
%{_datadir}/pixmaps/designer-qt5.png
%files -n qt5-assistant
%defattr(-,root,root)
%{_bindir}/assistant-qt5
%{_libdir}/qt5/bin/assistant
%{_datadir}/applications/assistant-qt5.desktop
%{_datadir}/pixmaps/assistant-qt5.png
%files -n qt5-linguist
%defattr(-,root,root)
%{_bindir}/linguist-qt5
%{_libdir}/qt5/bin/linguist
%{_datadir}/applications/linguist-qt5.desktop
%{_datadir}/pixmaps/linguist-qt5.png
%files -n libQt5Designer
%defattr(-,root,root)
%{_libdir}/libQt5Designer.so.*
%{_libdir}/libQt5DesignerComponents.so.*
%{_libdir}/qt5/plugins/designer/libqquickwidget.so
%{_libdir}/qt5/plugins/designer/libqwebview.so
%doc LICENSE.*
%files -n libQt5Help
%defattr(-,root,root)
%{_libdir}/libQt5Help.so.*
%doc LICENSE.*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/qt5/QtDesigner
%{_includedir}/qt5/QtDesigner/*
%dir %{_includedir}/qt5/QtDesignerComponents
%{_includedir}/qt5/QtDesignerComponents/*
%dir %{_includedir}/qt5/QtHelp
%{_includedir}/qt5/QtHelp/*
%dir %{_includedir}/qt5/QtUiPlugin
%{_includedir}/qt5/QtUiPlugin/*
%dir %{_includedir}/qt5/QtUiTools
%{_includedir}/qt5/QtUiTools/*
%dir %{_libdir}/cmake/Qt5AttributionsScannerTools
%{_libdir}/cmake/Qt5AttributionsScannerTools/Qt5AttributionsScannerToolsConfig*.cmake
%dir %{_libdir}/cmake/Qt5Designer
%{_libdir}/cmake/Qt5Designer/Qt5Designer*.cmake
%dir %{_libdir}/cmake/Qt5DesignerComponents
%{_libdir}/cmake/Qt5DesignerComponents/Qt5DesignerComponentsConfig*.cmake
%dir %{_libdir}/cmake/Qt5DocTools
%{_libdir}/cmake/Qt5DocTools/Qt5DocToolsConfig*.cmake
%dir %{_libdir}/cmake/Qt5Help
%{_libdir}/cmake/Qt5Help/Qt5HelpConfig*.cmake
%dir %{_libdir}/cmake/Qt5LinguistTools
%{_libdir}/cmake/Qt5LinguistTools/Qt5LinguistTools*.cmake
%dir %{_libdir}/cmake/Qt5UiPlugin
%{_libdir}/cmake/Qt5UiPlugin/Qt5UiPluginConfig*.cmake
%dir %{_libdir}/cmake/Qt5UiTools
%{_libdir}/cmake/Qt5UiTools/Qt5UiToolsConfig*.cmake
%{_libdir}/libQt5Designer.prl
%{_libdir}/libQt5Designer.so
%{_libdir}/libQt5DesignerComponents.prl
%{_libdir}/libQt5DesignerComponents.so
%{_libdir}/libQt5Help.prl
%{_libdir}/libQt5Help.so
%{_libdir}/libQt5UiPlugin.prl
%{_libdir}/libQt5UiTools.a
%{_libdir}/libQt5UiTools.prl
%{_libdir}/pkgconfig/Qt5Designer.pc
%{_libdir}/pkgconfig/Qt5Help.pc
%{_libdir}/pkgconfig/Qt5UiPlugin.pc
%{_libdir}/pkgconfig/Qt5UiTools.pc
%{_libdir}/qt5/mkspecs/modules/qt_lib_designer*.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_help*.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_uiplugin.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_uitools*.pri
%changelog
* Sun Nov 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.7-2mamba
- rebuilt by autoport with build requirements: libclang-devel>=0:15.0.5-1mamba
* Mon Nov 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.7-1mamba
- update to 5.15.7
* Mon Jun 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-4mamba
- place %_bindir symlinks into correct packages
* Sun Jun 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-3mamba
- add qt5-designer, qt5-assistant and qt5-linguist packages
* Tue Nov 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-2mamba
- bump release
* Tue Nov 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-1mamba
- package created using the webbuild interface