]> git.pld-linux.org Git - packages/qt5-qtdoc.git/blob - qt5-qtdoc.spec
- pl, partially cleaned up/unified with other qt5-*
[packages/qt5-qtdoc.git] / qt5-qtdoc.spec
1 # TODO:
2 # - cleanup
3 #
4 # Conditional build:
5 %bcond_without  qch     # documentation in QCH format
6
7 %define         orgname         qtdoc
8 %define         qtbase_ver      %{version}
9 %define         qttools_ver     %{version}
10 Summary:        The Qt5 qtdoc documentation module
11 Summary(pl.UTF-8):      Moduł dokumentacji Qt5 qtdoc
12 Name:           qt5-%{orgname}
13 Version:        5.2.0
14 Release:        0.1
15 License:        LGPL v2.1 or GPL v3.0
16 Group:          Documentation
17 Source0:        http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
18 # Source0-md5:  76936bc86bb0b58cc340c5b9e4a24308
19 URL:            http://qt-project.org/
20 %if %{with qch}
21 BuildRequires:  qt5-assistant >= %{qttools_ver}
22 %endif
23 BuildRequires:  qt5-build >= %{qtbase_ver}
24 BuildRequires:  qt5-qmake >= %{qtbase_ver}
25 BuildRequires:  rpmbuild(macros) >= 1.654
26 BuildRequires:  tar >= 1:1.22
27 BuildRequires:  xz
28 Requires:       qt5-doc-common >= %{qtbase_ver}
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 Qt5 qtdoc package contains the main Qt Reference Documentation, which
34 includes overviews, Qt topics, and examples not specific to any Qt
35 module.
36
37 %description -l pl.UTF-8
38 Pakiet Qt5 qtdoc zawiera podstawową część dokumentacji referencyjnej
39 Qt, obejmującą artykuły przeglądowe, tematy związane z Qt oraz
40 przykłady niespecyficzne dla żadnego modułu Qt.
41
42 %package qch
43 Summary:        The Qt5 qtdoc documentation module - QCH format
44 Summary(pl.UTF-8):      Moduł dokumentacji Qt5 qtdoc - w formacie QCH
45 Group:          Documentation
46 Requires:       qt5-doc-common >= %{qtbase_ver}
47
48 %description qch
49 The Qt5 qtdoc documentation module - QCH format.
50
51 %description qch -l pl.UTF-8
52 Moduł dokumentacji Qt5 qtdoc - w formacie QCH.
53
54 %prep
55 %setup -q -n %{orgname}-opensource-src-%{version}
56
57 %build
58 qmake-qt5
59 %{__make}
60 %{__make} %{!?with_qch:html_}docs
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 %{__make} install \
65         INSTALL_ROOT=$RPM_BUILD_ROOT
66
67 %{__make} install_%{!?with_qch:html_}docs \
68         INSTALL_ROOT=$RPM_BUILD_ROOT
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
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.105932 seconds and 3 git commands to generate.