]>
Commit | Line | Data |
---|---|---|
ecafc158 WF |
1 | # TODO: |
2 | # - cleanup | |
3 | ||
4 | %define orgname qtquickcontrols | |
573e3ee7 JB |
5 | %define qtbase_ver %{version} |
6 | %define qtdeclarative_ver %{version} | |
7 | %define qtscript_ver %{version} | |
8 | %define qttools_ver %{version} | |
9 | Summary: The Qt5 Quick Controls modules | |
10 | Summary(pl.UTF-8): Moduły Qt5 Quick Controls | |
ecafc158 WF |
11 | Name: qt5-%{orgname} |
12 | Version: 5.2.0 | |
13 | Release: 0.1 | |
14 | License: LGPL v2.1 or GPL v3.0 | |
15 | Group: X11/Libraries | |
16 | Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz | |
17 | # Source0-md5: 748ab947f59fb104db2ac1fefa073d81 | |
18 | URL: http://qt-project.org/ | |
573e3ee7 JB |
19 | BuildRequires: qt5-qtbase-devel >= %{qtbase_ver} |
20 | BuildRequires: qt5-qtdeclarative-devel >= %{qtdeclarative_ver} | |
21 | BuildRequires: qt5-qtscript-devel >= %{qtscript_ver} | |
22 | BuildRequires: qt5-qttools-devel >= %{qttools_ver} | |
23 | %if %{with qch} | |
24 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
25 | %endif | |
26 | BuildRequires: qt5-build >= %{qtbase_ver} | |
27 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
ecafc158 | 28 | BuildRequires: rpmbuild(macros) >= 1.654 |
39582839 ER |
29 | BuildRequires: tar >= 1:1.22 |
30 | BuildRequires: xz | |
ecafc158 WF |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
ecafc158 | 33 | %define specflags -fno-strict-aliasing |
573e3ee7 | 34 | %define qt5dir %{_libdir}/qt5 |
ecafc158 WF |
35 | |
36 | %description | |
573e3ee7 | 37 | Qt5 Quick Controls modules. |
ecafc158 | 38 | |
573e3ee7 JB |
39 | %description -l pl.UTF-8 |
40 | Moduły Qt5 Quick Controls. | |
ecafc158 WF |
41 | |
42 | %package doc | |
573e3ee7 JB |
43 | Summary: Qt5 Quick Controls documentation in HTML format |
44 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick Controls w formacie HTML | |
ecafc158 | 45 | Group: Documentation |
573e3ee7 | 46 | Requires: qt5-doc-common >= %{qtbase_ver} |
39582839 ER |
47 | %if "%{_rpmversion}" >= "5" |
48 | BuildArch: noarch | |
49 | %endif | |
ecafc158 WF |
50 | |
51 | %description doc | |
573e3ee7 | 52 | Qt5 Quick Controls documentation in HTML format. |
ecafc158 | 53 | |
573e3ee7 JB |
54 | %description doc -l pl.UTF-8 |
55 | Dokumentacja do biblioteki Qt5 Quick Controls w formacie HTML. | |
56 | ||
57 | %package doc-qch | |
58 | Summary: Qt5 Quick Controls documentation in QCH format | |
59 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick Controls w formacie QCH | |
60 | Group: Documentation | |
61 | Requires: qt5-doc-common >= %{qtbase_ver} | |
39582839 ER |
62 | %if "%{_rpmversion}" >= "5" |
63 | BuildArch: noarch | |
64 | %endif | |
ecafc158 | 65 | |
573e3ee7 JB |
66 | %description doc-qch |
67 | Qt5 Quick Controls documentation in QCH format. | |
68 | ||
69 | %description doc-qch -l pl.UTF-8 | |
70 | Dokumentacja do biblioteki Qt5 Quick Controls w formacie QCH. | |
ecafc158 WF |
71 | |
72 | %prep | |
73 | %setup -q -n %{orgname}-opensource-src-%{version} | |
74 | ||
75 | %build | |
76 | qmake-qt5 | |
77 | %{__make} | |
573e3ee7 | 78 | %{__make} %{!?with_qch:html_}docs |
ecafc158 WF |
79 | |
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | %{__make} install \ | |
83 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
84 | ||
573e3ee7 | 85 | %{__make} install_%{!?with_qch:html_}docs \ |
ecafc158 WF |
86 | INSTALL_ROOT=$RPM_BUILD_ROOT |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
ecafc158 WF |
91 | %files |
92 | %defattr(644,root,root,755) | |
573e3ee7 | 93 | %{qt5dir}/qml/* |
ecafc158 WF |
94 | |
95 | %files doc | |
96 | %defattr(644,root,root,755) | |
573e3ee7 JB |
97 | %{_docdir}/qt5-doc/qtquickcontrols |
98 | ||
99 | %if %{with qch} | |
100 | %files doc-qch | |
101 | %defattr(644,root,root,755) | |
102 | %{_docdir}/qt5-doc/qtquickcontrols.qch | |
103 | %endif |