]>
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} | |
24afb686 | 62 | Obsoletes: qt5-qtquickcontrols |
5b1da3f7 JB |
63 | |
64 | %description -n Qt5Quick-controls | |
65 | Qt5 Quick Controls, Dialogs, Layouts modules. | |
66 | ||
67 | This package provides a set of widgets/controls that can be used to | |
68 | build complete interfaces in Qt5 Quick (v2). | |
69 | ||
70 | %description -n Qt5Quick-controls -l pl.UTF-8 | |
71 | Moduły Qt5 Quick Controls, Dialogs i Layouts. | |
72 | ||
73 | Ten pakiet dostarcza zestaw widgetów/kontrolek, które można | |
74 | wykorzystywać do tworzenia kompletnych interfejsów przy użyciu Qt5 | |
75 | Quick (v2). | |
ecafc158 WF |
76 | |
77 | %package doc | |
573e3ee7 JB |
78 | Summary: Qt5 Quick Controls documentation in HTML format |
79 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick Controls w formacie HTML | |
ecafc158 | 80 | Group: Documentation |
573e3ee7 | 81 | Requires: qt5-doc-common >= %{qtbase_ver} |
39582839 ER |
82 | %if "%{_rpmversion}" >= "5" |
83 | BuildArch: noarch | |
84 | %endif | |
ecafc158 WF |
85 | |
86 | %description doc | |
573e3ee7 | 87 | Qt5 Quick Controls documentation in HTML format. |
ecafc158 | 88 | |
573e3ee7 JB |
89 | %description doc -l pl.UTF-8 |
90 | Dokumentacja do biblioteki Qt5 Quick Controls w formacie HTML. | |
91 | ||
92 | %package doc-qch | |
93 | Summary: Qt5 Quick Controls documentation in QCH format | |
94 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick Controls w formacie QCH | |
95 | Group: Documentation | |
96 | Requires: qt5-doc-common >= %{qtbase_ver} | |
39582839 ER |
97 | %if "%{_rpmversion}" >= "5" |
98 | BuildArch: noarch | |
99 | %endif | |
ecafc158 | 100 | |
573e3ee7 JB |
101 | %description doc-qch |
102 | Qt5 Quick Controls documentation in QCH format. | |
103 | ||
104 | %description doc-qch -l pl.UTF-8 | |
105 | Dokumentacja do biblioteki Qt5 Quick Controls w formacie QCH. | |
ecafc158 WF |
106 | |
107 | %prep | |
108 | %setup -q -n %{orgname}-opensource-src-%{version} | |
109 | ||
110 | %build | |
111 | qmake-qt5 | |
112 | %{__make} | |
573e3ee7 | 113 | %{__make} %{!?with_qch:html_}docs |
ecafc158 WF |
114 | |
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | %{__make} install \ | |
118 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
119 | ||
573e3ee7 | 120 | %{__make} install_%{!?with_qch:html_}docs \ |
ecafc158 WF |
121 | INSTALL_ROOT=$RPM_BUILD_ROOT |
122 | ||
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
5b1da3f7 | 126 | %files -n Qt5Quick-controls |
ecafc158 | 127 | %defattr(644,root,root,755) |
5b1da3f7 JB |
128 | %doc LGPL_EXCEPTION.txt README header.BSD dist/changes-* |
129 | %dir %{qt5dir}/qml/QtQuick/Controls | |
130 | %{qt5dir}/qml/QtQuick/Controls/Private | |
131 | %{qt5dir}/qml/QtQuick/Controls/Styles | |
132 | %attr(755,root,root) %{qt5dir}/qml/QtQuick/Controls/libqtquickcontrolsplugin.so | |
133 | %{qt5dir}/qml/QtQuick/Controls/*.qml | |
134 | %{qt5dir}/qml/QtQuick/Controls/plugins.qmltypes | |
135 | %{qt5dir}/qml/QtQuick/Controls/qmldir | |
136 | %dir %{qt5dir}/qml/QtQuick/Dialogs | |
137 | %{qt5dir}/qml/QtQuick/Dialogs/Private | |
138 | %attr(755,root,root) %{qt5dir}/qml/QtQuick/Dialogs/libdialogplugin.so | |
139 | %{qt5dir}/qml/QtQuick/Dialogs/plugins.qmltypes | |
140 | %{qt5dir}/qml/QtQuick/Dialogs/qmldir | |
141 | %attr(755,root,root) %{qt5dir}/qml/QtQuick/Layouts/libqquicklayoutsplugin.so | |
142 | %{qt5dir}/qml/QtQuick/Layouts/plugins.qmltypes | |
143 | %{qt5dir}/qml/QtQuick/Layouts/qmldir | |
144 | %dir %{qt5dir}/qml/QtQuick/PrivateWidgets | |
145 | %attr(755,root,root) %{qt5dir}/qml/QtQuick/PrivateWidgets/libwidgetsplugin.so | |
146 | %{qt5dir}/qml/QtQuick/PrivateWidgets/plugins.qmltypes | |
147 | %{qt5dir}/qml/QtQuick/PrivateWidgets/qmldir | |
ecafc158 WF |
148 | |
149 | %files doc | |
150 | %defattr(644,root,root,755) | |
573e3ee7 | 151 | %{_docdir}/qt5-doc/qtquickcontrols |
5b1da3f7 JB |
152 | %{_docdir}/qt5-doc/qtquickdialogs |
153 | %{_docdir}/qt5-doc/qtquicklayouts | |
573e3ee7 JB |
154 | |
155 | %if %{with qch} | |
156 | %files doc-qch | |
157 | %defattr(644,root,root,755) | |
158 | %{_docdir}/qt5-doc/qtquickcontrols.qch | |
5b1da3f7 JB |
159 | %{_docdir}/qt5-doc/qtquickdialogs.qch |
160 | %{_docdir}/qt5-doc/qtquicklayouts.qch | |
573e3ee7 | 161 | %endif |