2 %define qtbase_ver %{version}
3 %define qttools_ver %{version}
4 Summary: The Qt5 qtdoc documentation module
5 Summary(pl.UTF-8): Moduł dokumentacji Qt5 qtdoc
11 Source0: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
12 # Source0-md5: 90de2911fa80c7668ec7289d5768e802
13 URL: https://www.qt.io/
14 BuildRequires: qt5-assistant >= %{qttools_ver}
15 BuildRequires: qt5-build >= %{qtbase_ver}
16 BuildRequires: qt5-qmake >= %{qtbase_ver}
17 BuildRequires: rpmbuild(macros) >= 1.654
18 BuildRequires: tar >= 1:1.22
20 Requires: qt5-doc-common >= %{qtbase_ver}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Qt5 qtdoc package contains the main Qt Reference Documentation, which
26 includes overviews, Qt topics, and examples not specific to any Qt
29 %description -l pl.UTF-8
30 Pakiet Qt5 qtdoc zawiera podstawową część dokumentacji referencyjnej
31 Qt, obejmującą artykuły przeglądowe, tematy związane z Qt oraz
32 przykłady niespecyficzne dla żadnego modułu Qt.
35 Summary: The Qt5 qtdoc documentation module - QCH format
36 Summary(pl.UTF-8): Moduł dokumentacji Qt5 qtdoc - w formacie QCH
38 Requires: qt5-doc-common >= %{qtbase_ver}
41 The Qt5 qtdoc documentation module - QCH format.
43 %description qch -l pl.UTF-8
44 Moduł dokumentacji Qt5 qtdoc - w formacie QCH.
47 Summary: The Qt5 qtdoc documentation module - demos
48 Summary(pl.UTF-8): Moduł dokumentacji Qt5 qtdoc - programy demonstracyjne
49 License: BSD or commercial
53 The Qt5 qtdoc documentation module - demos.
55 %description demos -l pl.UTF-8
56 Moduł dokumentacji Qt5 qtdoc - programy demonstracyjne.
59 %setup -q -n %{orgname}-everywhere-src-%{version}
67 rm -rf $RPM_BUILD_ROOT
70 INSTALL_ROOT=$RPM_BUILD_ROOT
72 %{__make} install_docs \
73 INSTALL_ROOT=$RPM_BUILD_ROOT
75 # remove compiled binaries, let demos be noarch
76 %{__rm} $RPM_BUILD_ROOT%{_examplesdir}/qt5/demos/{calqlatr/calqlatr,clocks/clocks,maroon/maroon,photosurface/photosurface,rssnews/rssnews,samegame/samegame,stocqt/stocqt,tweetsearch/tweetsearch}
79 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
83 %doc README dist/changes-*
84 %{_docdir}/qt5-doc/qtcmake
85 %{_docdir}/qt5-doc/qtdoc
88 %defattr(644,root,root,755)
89 %{_docdir}/qt5-doc/qtcmake.qch
90 %{_docdir}/qt5-doc/qtdoc.qch
93 %defattr(644,root,root,755)
94 # XXX: dir shared with qt5-qtbase-examples
95 %dir %{_examplesdir}/qt5
96 %{_examplesdir}/qt5/demos