]> git.pld-linux.org Git - SPECS.git/blob - qt5-qtdoc.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / qt5-qtdoc.spec
1 %define         orgname         qtdoc
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
6 Name:           qt5-%{orgname}
7 Version:        5.15.2
8 Release:        2
9 License:        FDL v1.3
10 Group:          Documentation
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
19 BuildRequires:  xz
20 Requires:       qt5-doc-common >= %{qtbase_ver}
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Qt5 qtdoc package contains the main Qt Reference Documentation, which
26 includes overviews, Qt topics, and examples not specific to any Qt
27 module.
28
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.
33
34 %package qch
35 Summary:        The Qt5 qtdoc documentation module - QCH format
36 Summary(pl.UTF-8):      Moduł dokumentacji Qt5 qtdoc - w formacie QCH
37 Group:          Documentation
38 Requires:       qt5-doc-common >= %{qtbase_ver}
39
40 %description qch
41 The Qt5 qtdoc documentation module - QCH format.
42
43 %description qch -l pl.UTF-8
44 Moduł dokumentacji Qt5 qtdoc - w formacie QCH.
45
46 %package demos
47 Summary:        The Qt5 qtdoc documentation module - demos
48 Summary(pl.UTF-8):      Moduł dokumentacji Qt5 qtdoc - programy demonstracyjne
49 License:        BSD or commercial
50 Group:          Documentation
51
52 %description demos
53 The Qt5 qtdoc documentation module - demos.
54
55 %description demos -l pl.UTF-8
56 Moduł dokumentacji Qt5 qtdoc - programy demonstracyjne.
57
58 %prep
59 %setup -q -n %{orgname}-everywhere-src-%{version}
60
61 %build
62 qmake-qt5
63 %{__make}
64 %{__make} docs
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 %{__make} install \
70         INSTALL_ROOT=$RPM_BUILD_ROOT
71
72 %{__make} install_docs \
73         INSTALL_ROOT=$RPM_BUILD_ROOT
74
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}
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %doc README dist/changes-*
84 %{_docdir}/qt5-doc/qtcmake
85 %{_docdir}/qt5-doc/qtdoc
86
87 %files qch
88 %defattr(644,root,root,755)
89 %{_docdir}/qt5-doc/qtcmake.qch
90 %{_docdir}/qt5-doc/qtdoc.qch
91
92 %files demos
93 %defattr(644,root,root,755)
94 # XXX: dir shared with qt5-qtbase-examples
95 %dir %{_examplesdir}/qt5
96 %{_examplesdir}/qt5/demos
This page took 0.66438 seconds and 3 git commands to generate.