]> git.pld-linux.org Git - packages/qt5-qtdoc.git/blob - qt5-qtdoc.spec
- updated to 5.3.0
[packages/qt5-qtdoc.git] / qt5-qtdoc.spec
1 # TODO: qtdemo? (LGPL v2.1+exception/GPL v3 licensed)
2 #
3 # Conditional build:
4 %bcond_without  qch     # documentation in QCH format
5
6 %define         orgname         qtdoc
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
11 Name:           qt5-%{orgname}
12 Version:        5.3.0
13 Release:        1
14 License:        FDL v1.3
15 Group:          Documentation
16 Source0:        http://download.qt-project.org/official_releases/qt/5.3/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
17 # Source0-md5:  38787fc8cd52d6734b63b24afde4cae4
18 URL:            http://qt-project.org/
19 %if %{with qch}
20 BuildRequires:  qt5-assistant >= %{qttools_ver}
21 %endif
22 BuildRequires:  qt5-build >= %{qtbase_ver}
23 BuildRequires:  qt5-qmake >= %{qtbase_ver}
24 BuildRequires:  rpmbuild(macros) >= 1.654
25 BuildRequires:  tar >= 1:1.22
26 BuildRequires:  xz
27 Requires:       qt5-doc-common >= %{qtbase_ver}
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
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.
35
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.
40
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.
52
53 %prep
54 %setup -q -n %{orgname}-opensource-src-%{version}
55
56 %build
57 qmake-qt5
58 %{__make}
59 %{__make} %{!?with_qch:html_}docs
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 %{__make} install \
64         INSTALL_ROOT=$RPM_BUILD_ROOT
65
66 %{__make} install_%{!?with_qch:html_}docs \
67         INSTALL_ROOT=$RPM_BUILD_ROOT
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc README dist/changes-*
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
This page took 0.064355 seconds and 3 git commands to generate.