]>
Commit | Line | Data |
---|---|---|
5b1da3f7 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without qch # documentation in QCH format | |
ecafc158 WF |
4 | |
5 | %define orgname qtquickcontrols | |
573e3ee7 JB |
6 | %define qtbase_ver %{version} |
7 | %define qtdeclarative_ver %{version} | |
573e3ee7 JB |
8 | %define qttools_ver %{version} |
9 | Summary: The Qt5 Quick Controls modules | |
10 | Summary(pl.UTF-8): Moduły Qt5 Quick Controls | |
ecafc158 | 11 | Name: qt5-%{orgname} |
5b1da3f7 JB |
12 | Version: 5.3.0 |
13 | Release: 1 | |
14 | License: LGPL v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0 (native code), BSD (Qml scripts) | |
ecafc158 | 15 | Group: X11/Libraries |
5b1da3f7 JB |
16 | Source0: http://download.qt-project.org/official_releases/qt/5.3/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz |
17 | # Source0-md5: 808b5a28f152f1af19dad30a10e5dbf1 | |
ecafc158 | 18 | URL: http://qt-project.org/ |
5b1da3f7 JB |
19 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} |
20 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
21 | BuildRequires: Qt5Network-devel >= %{qtbase_ver} | |
22 | BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver} | |
23 | BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver} | |
24 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} | |
573e3ee7 JB |
25 | %if %{with qch} |
26 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
27 | %endif | |
28 | BuildRequires: qt5-build >= %{qtbase_ver} | |
29 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
ecafc158 | 30 | BuildRequires: rpmbuild(macros) >= 1.654 |
39582839 ER |
31 | BuildRequires: tar >= 1:1.22 |
32 | BuildRequires: xz | |
ecafc158 WF |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
ecafc158 | 35 | %define specflags -fno-strict-aliasing |
573e3ee7 | 36 | %define qt5dir %{_libdir}/qt5 |
ecafc158 WF |
37 | |
38 | %description | |
5b1da3f7 JB |
39 | Qt is a cross-platform application and UI framework. Using Qt, you can |
40 | write web-enabled applications once and deploy them across desktop, | |
41 | mobile and embedded systems without rewriting the source code. | |
42 | ||
43 | This package contains Qt5 Quick Controls, Dialogs, Layouts modules. | |
ecafc158 | 44 | |
573e3ee7 | 45 | %description -l pl.UTF-8 |
5b1da3f7 JB |
46 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. |
47 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
48 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
49 | źródłowego. | |
50 | ||
51 | Ten pakiet zawiera moduły Qt5 Quick Controls, Dialogs i Layouts. | |
52 | ||
53 | %package -n Qt5Quick-controls | |
54 | Summary: The Qt5 Quick Controls modules | |
55 | Summary(pl.UTF-8): Moduły Qt5 Quick Controls | |
56 | Group: X11/Libraries | |
57 | Requires: Qt5Core >= %{qtbase_ver} | |
58 | Requires: Qt5Gui >= %{qtbase_ver} | |
59 | Requires: Qt5Qml >= %{qtdeclarative_ver} | |
60 | Requires: Qt5Quick >= %{qtdeclarative_ver} | |
61 | Requires: Qt5Widgets >= %{qtbase_ver} | |
62 | ||
63 | %description -n Qt5Quick-controls | |
64 | Qt5 Quick Controls, Dialogs, Layouts modules. | |
65 | ||
66 | This package provides a set of widgets/controls that can be used to | |
67 | build complete interfaces in Qt5 Quick (v2). | |
68 | ||
69 | %description -n Qt5Quick-controls -l pl.UTF-8 | |
70 | Moduły Qt5 Quick Controls, Dialogs i Layouts. | |
71 | ||
72 | Ten pakiet dostarcza zestaw widgetów/kontrolek, które można | |
73 | wykorzystywać do tworzenia kompletnych interfejsów przy użyciu Qt5 | |
74 | Quick (v2). | |
ecafc158 WF |
75 | |
76 | %package doc | |
573e3ee7 JB |
77 | Summary: Qt5 Quick Controls documentation in HTML format |
78 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick Controls w formacie HTML | |
ecafc158 | 79 | Group: Documentation |
573e3ee7 | 80 | Requires: qt5-doc-common >= %{qtbase_ver} |
39582839 ER |
81 | %if "%{_rpmversion}" >= "5" |
82 | BuildArch: noarch | |
83 | %endif | |
ecafc158 WF |
84 | |
85 | %description doc | |
573e3ee7 | 86 | Qt5 Quick Controls documentation in HTML format. |
ecafc158 | 87 | |
573e3ee7 JB |
88 | %description doc -l pl.UTF-8 |
89 | Dokumentacja do biblioteki Qt5 Quick Controls w formacie HTML. | |
90 | ||
91 | %package doc-qch | |
92 | Summary: Qt5 Quick Controls documentation in QCH format | |
93 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick Controls w formacie QCH | |
94 | Group: Documentation | |
95 | Requires: qt5-doc-common >= %{qtbase_ver} | |
39582839 ER |
96 | %if "%{_rpmversion}" >= "5" |
97 | BuildArch: noarch | |
98 | %endif | |
ecafc158 | 99 | |
573e3ee7 JB |
100 | %description doc-qch |
101 | Qt5 Quick Controls documentation in QCH format. | |
102 | ||
103 | %description doc-qch -l pl.UTF-8 | |
104 | Dokumentacja do biblioteki Qt5 Quick Controls w formacie QCH. | |
ecafc158 WF |
105 | |
106 | %prep | |
107 | %setup -q -n %{orgname}-opensource-src-%{version} | |
108 | ||
109 | %build | |
110 | qmake-qt5 | |
111 | %{__make} | |
573e3ee7 | 112 | %{__make} %{!?with_qch:html_}docs |
ecafc158 WF |
113 | |
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | %{__make} install \ | |
117 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
118 | ||
573e3ee7 | 119 | %{__make} install_%{!?with_qch:html_}docs \ |
ecafc158 WF |
120 | INSTALL_ROOT=$RPM_BUILD_ROOT |
121 | ||
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
5b1da3f7 | 125 | %files -n Qt5Quick-controls |
ecafc158 | 126 | %defattr(644,root,root,755) |
5b1da3f7 JB |
127 | %doc LGPL_EXCEPTION.txt README header.BSD dist/changes-* |
128 | %dir %{qt5dir}/qml/QtQuick/Controls | |
129 | %{qt5dir}/qml/QtQuick/Controls/Private | |
130 | %{qt5dir}/qml/QtQuick/Controls/Styles | |
131 | %attr(755,root,root) %{qt5dir}/qml/QtQuick/Controls/libqtquickcontrolsplugin.so | |
132 | %{qt5dir}/qml/QtQuick/Controls/*.qml | |
133 | %{qt5dir}/qml/QtQuick/Controls/plugins.qmltypes | |
134 | %{qt5dir}/qml/QtQuick/Controls/qmldir | |
135 | %dir %{qt5dir}/qml/QtQuick/Dialogs | |
136 | %{qt5dir}/qml/QtQuick/Dialogs/Private | |
137 | %attr(755,root,root) %{qt5dir}/qml/QtQuick/Dialogs/libdialogplugin.so | |
138 | %{qt5dir}/qml/QtQuick/Dialogs/plugins.qmltypes | |
139 | %{qt5dir}/qml/QtQuick/Dialogs/qmldir | |
140 | %attr(755,root,root) %{qt5dir}/qml/QtQuick/Layouts/libqquicklayoutsplugin.so | |
141 | %{qt5dir}/qml/QtQuick/Layouts/plugins.qmltypes | |
142 | %{qt5dir}/qml/QtQuick/Layouts/qmldir | |
143 | %dir %{qt5dir}/qml/QtQuick/PrivateWidgets | |
144 | %attr(755,root,root) %{qt5dir}/qml/QtQuick/PrivateWidgets/libwidgetsplugin.so | |
145 | %{qt5dir}/qml/QtQuick/PrivateWidgets/plugins.qmltypes | |
146 | %{qt5dir}/qml/QtQuick/PrivateWidgets/qmldir | |
ecafc158 WF |
147 | |
148 | %files doc | |
149 | %defattr(644,root,root,755) | |
573e3ee7 | 150 | %{_docdir}/qt5-doc/qtquickcontrols |
5b1da3f7 JB |
151 | %{_docdir}/qt5-doc/qtquickdialogs |
152 | %{_docdir}/qt5-doc/qtquicklayouts | |
573e3ee7 JB |
153 | |
154 | %if %{with qch} | |
155 | %files doc-qch | |
156 | %defattr(644,root,root,755) | |
157 | %{_docdir}/qt5-doc/qtquickcontrols.qch | |
5b1da3f7 JB |
158 | %{_docdir}/qt5-doc/qtquickdialogs.qch |
159 | %{_docdir}/qt5-doc/qtquicklayouts.qch | |
573e3ee7 | 160 | %endif |