1 # TODO: qtdemo? (LGPL v2.1+exception/GPL v3 licensed)
4 %bcond_without qch # documentation in QCH format
7 %define qtbase_ver %{version}
8 %define qttools_ver %{version}
9 Summary: The Qt5 qtdoc documentation module
10 Summary(pl.UTF-8): Moduł dokumentacji Qt5 qtdoc
16 Source0: http://download.qt.io/official_releases/qt/5.8/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
17 # Source0-md5: 6e1458414a3fed676c3bbae43c828b92
18 URL: http://www.qt.io/
20 BuildRequires: qt5-assistant >= %{qttools_ver}
22 BuildRequires: qt5-build >= %{qtbase_ver}
23 BuildRequires: qt5-qmake >= %{qtbase_ver}
24 BuildRequires: rpmbuild(macros) >= 1.654
25 BuildRequires: tar >= 1:1.22
27 Requires: qt5-doc-common >= %{qtbase_ver}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Qt5 qtdoc package contains the main Qt Reference Documentation, which
33 includes overviews, Qt topics, and examples not specific to any Qt
36 %description -l pl.UTF-8
37 Pakiet Qt5 qtdoc zawiera podstawową część dokumentacji referencyjnej
38 Qt, obejmującą artykuły przeglądowe, tematy związane z Qt oraz
39 przykłady niespecyficzne dla żadnego modułu Qt.
42 Summary: The Qt5 qtdoc documentation module - QCH format
43 Summary(pl.UTF-8): Moduł dokumentacji Qt5 qtdoc - w formacie QCH
45 Requires: qt5-doc-common >= %{qtbase_ver}
48 The Qt5 qtdoc documentation module - QCH format.
50 %description qch -l pl.UTF-8
51 Moduł dokumentacji Qt5 qtdoc - w formacie QCH.
54 %setup -q -n %{orgname}-opensource-src-%{version}
59 %{__make} %{!?with_qch:html_}docs
62 rm -rf $RPM_BUILD_ROOT
64 INSTALL_ROOT=$RPM_BUILD_ROOT
66 %{__make} install_%{!?with_qch:html_}docs \
67 INSTALL_ROOT=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc README dist/changes-*
74 %{_docdir}/qt5-doc/qtdoc
78 %defattr(644,root,root,755)
79 %{_docdir}/qt5-doc/qtdoc.qch