1 |
%define snapshot 0 |
2 |
%define date 20130523 |
3 |
|
4 |
%define qtmajor 5 |
5 |
%define qtminor 12 |
6 |
%define qtsubminor 6 |
7 |
|
8 |
%define rel 1 |
9 |
%define pre rc |
10 |
|
11 |
%define major_private 1 |
12 |
%define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor} |
13 |
|
14 |
%if %snapshot |
15 |
%define qttarballdir qtdoc-everywhere-src-%{qtversion}-%pre |
16 |
%else |
17 |
%define qttarballdir qtdoc-everywhere-src-%{qtversion} |
18 |
%endif |
19 |
|
20 |
Name: qtdoc5 |
21 |
Version: %{qtversion} |
22 |
Release: %mkrel %{rel} |
23 |
Summary: Qt5 Documentation |
24 |
Group: Development/KDE and Qt |
25 |
License: LGPLv2 with exceptions or GPLv3 with exceptions and GFDL |
26 |
URL: http://www.qt.io |
27 |
Source0: http://download.qt.io/official_releases/qt/%{qtmajor}.%{qtminor}/%{version}/submodules/%{qttarballdir}.tar.xz |
28 |
BuildRequires: qtbase5-devel |
29 |
BuildRequires: pkgconfig(Qt5Script) |
30 |
BuildRequires: pkgconfig(Qt5Svg) |
31 |
BuildRequires: pkgconfig(Qt5XmlPatterns) |
32 |
BuildRequires: qttools5-assistant |
33 |
BuildRequires: qttools5 |
34 |
|
35 |
BuildArch: noarch |
36 |
|
37 |
#Branch Patchs |
38 |
|
39 |
#Trunk Patchs |
40 |
|
41 |
#Patch from Mageia |
42 |
|
43 |
|
44 |
%description |
45 |
Qt5 Documentation. |
46 |
|
47 |
%files |
48 |
# Need to be splitted ? |
49 |
%doc %{_qt5_docdir}/qtdoc.qch |
50 |
%doc %{_qt5_docdir}/qtdoc/ |
51 |
|
52 |
#------------------------------------------------------------------------------ |
53 |
|
54 |
%prep |
55 |
%setup -q -n qtdoc-everywhere-src-%{qtversion} |
56 |
|
57 |
%build |
58 |
%qmake_qt5 |
59 |
%make_build docs |
60 |
|
61 |
%install |
62 |
%make_install install_docs INSTALL_ROOT=%{buildroot} |
63 |
|
64 |
find %{buildroot} -name '*.pro' -delete |