]>
Commit | Line | Data |
---|---|---|
c9139340 | 1 | # TODO: qtdemo? (LGPL v2.1+exception/GPL v3 licensed) |
7dec3749 JB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without qch # documentation in QCH format | |
715c0fad WF |
5 | |
6 | %define orgname qtdoc | |
7dec3749 JB |
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 | |
715c0fad | 11 | Name: qt5-%{orgname} |
c9139340 JB |
12 | Version: 5.3.0 |
13 | Release: 1 | |
14 | License: FDL v1.3 | |
7dec3749 | 15 | Group: Documentation |
c9139340 JB |
16 | Source0: http://download.qt-project.org/official_releases/qt/5.3/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz |
17 | # Source0-md5: 38787fc8cd52d6734b63b24afde4cae4 | |
715c0fad | 18 | URL: http://qt-project.org/ |
7dec3749 JB |
19 | %if %{with qch} |
20 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
21 | %endif | |
22 | BuildRequires: qt5-build >= %{qtbase_ver} | |
23 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
715c0fad | 24 | BuildRequires: rpmbuild(macros) >= 1.654 |
39c15829 ER |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
7dec3749 | 27 | Requires: qt5-doc-common >= %{qtbase_ver} |
39c15829 | 28 | BuildArch: noarch |
715c0fad WF |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
7dec3749 JB |
31 | %description |
32 | Qt5 qtdoc package contains the main Qt Reference Documentation, which | |
33 | includes overviews, Qt topics, and examples not specific to any Qt | |
34 | module. | |
715c0fad | 35 | |
7dec3749 JB |
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. | |
715c0fad | 40 | |
7dec3749 JB |
41 | %package qch |
42 | Summary: The Qt5 qtdoc documentation module - QCH format | |
43 | Summary(pl.UTF-8): Moduł dokumentacji Qt5 qtdoc - w formacie QCH | |
44 | Group: Documentation | |
45 | Requires: qt5-doc-common >= %{qtbase_ver} | |
46 | ||
47 | %description qch | |
48 | The Qt5 qtdoc documentation module - QCH format. | |
49 | ||
50 | %description qch -l pl.UTF-8 | |
51 | Moduł dokumentacji Qt5 qtdoc - w formacie QCH. | |
715c0fad WF |
52 | |
53 | %prep | |
54 | %setup -q -n %{orgname}-opensource-src-%{version} | |
55 | ||
56 | %build | |
57 | qmake-qt5 | |
58 | %{__make} | |
7dec3749 | 59 | %{__make} %{!?with_qch:html_}docs |
715c0fad WF |
60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | %{__make} install \ | |
64 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
65 | ||
7dec3749 | 66 | %{__make} install_%{!?with_qch:html_}docs \ |
715c0fad WF |
67 | INSTALL_ROOT=$RPM_BUILD_ROOT |
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
c9139340 | 73 | %doc README dist/changes-* |
7dec3749 JB |
74 | %{_docdir}/qt5-doc/qtdoc |
75 | ||
76 | %if %{with qch} | |
77 | %files qch | |
78 | %defattr(644,root,root,755) | |
79 | %{_docdir}/qt5-doc/qtdoc.qch | |
80 | %endif |