]>
Commit | Line | Data |
---|---|---|
61c21a40 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without doc # Documentation | |
4 | %bcond_without qm # QM translations | |
5 | ||
6 | %define orgname qtquickcontrols2 | |
7 | %define qtbase_ver %{version} | |
6a2cf46b | 8 | %define qtdeclarative_ver 5.12.3-2 |
61c21a40 WF |
9 | %define qttools_ver %{version} |
10 | Summary: The Qt5 Quick Controls2 modules | |
11 | Summary(pl.UTF-8): Moduły Qt5 Quick Controls2 | |
12 | Name: qt5-%{orgname} | |
9cde8bbe | 13 | Version: 5.14.0 |
0274c94c | 14 | Release: 1 |
61c21a40 WF |
15 | License: LGPL v3 or GPL v2 or commercial |
16 | Group: X11/Libraries | |
9cde8bbe JP |
17 | Source0: http://download.qt.io/official_releases/qt/5.14/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
18 | # Source0-md5: d65587589b2f5b70f8adf721f8101ac3 | |
19 | Source1: http://download.qt.io/official_releases/qt/5.14/%{version}/submodules/qttranslations-everywhere-src-%{version}.tar.xz | |
20 | # Source1-md5: 74ff09655d412069a7b4210fea5440fb | |
61c21a40 WF |
21 | URL: http://www.qt.io/ |
22 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} | |
23 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
24 | BuildRequires: Qt5Network-devel >= %{qtbase_ver} | |
25 | BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver} | |
26 | BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver} | |
27 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} | |
28 | %if %{with doc} | |
29 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
30 | %endif | |
31 | BuildRequires: qt5-build >= %{qtbase_ver} | |
32 | %{?with_qm:BuildRequires: qt5-linguist >= %{qttools_ver}} | |
33 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
34 | BuildRequires: rpmbuild(macros) >= 1.654 | |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xz | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %define specflags -fno-strict-aliasing | |
40 | %define qt5dir %{_libdir}/qt5 | |
41 | ||
42 | %description | |
43 | Qt is a cross-platform application and UI framework. Using Qt, you can | |
44 | write web-enabled applications once and deploy them across desktop, | |
45 | mobile and embedded systems without rewriting the source code. | |
46 | ||
47 | This package contains Qt5 Quick Controls2, Dialogs modules. | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
51 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
52 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
53 | źródłowego. | |
54 | ||
55 | Ten pakiet zawiera moduły Qt5 Quick Controls2, Dialogs. | |
56 | ||
57 | %package -n Qt5Quick-controls2 | |
58 | Summary: The Qt5 Quick Controls2 modules | |
59 | Summary(pl.UTF-8): Moduły Qt5 Quick Controls2 | |
60 | Group: X11/Libraries | |
55a935db | 61 | Requires(post,postun): /sbin/ldconfig |
61c21a40 WF |
62 | Requires: Qt5Core >= %{qtbase_ver} |
63 | Requires: Qt5Gui >= %{qtbase_ver} | |
64 | Requires: Qt5Qml >= %{qtdeclarative_ver} | |
65 | Requires: Qt5Quick >= %{qtdeclarative_ver} | |
66 | Requires: Qt5Widgets >= %{qtbase_ver} | |
67 | Obsoletes: qt5-qtquickcontrols2 | |
68 | ||
69 | %description -n Qt5Quick-controls2 | |
70 | Qt5 Quick Controls, Dialogs modules. | |
71 | ||
72 | This package provides a set of widgets/controls that can be used to | |
73 | build complete interfaces in Qt5 Quick (v2). | |
74 | ||
75 | %description -n Qt5Quick-controls2 -l pl.UTF-8 | |
76 | Moduły Qt5 Quick Controls, Dialogs. | |
77 | ||
78 | Ten pakiet dostarcza zestaw widgetów/kontrolek, które można | |
79 | wykorzystywać do tworzenia kompletnych interfejsów przy użyciu Qt5 | |
80 | Quick (v2). | |
81 | ||
82 | %package -n Qt5Quick-controls2-devel | |
83 | Summary: Qt5 Quick controls2 library - development files | |
84 | Summary(pl.UTF-8): Biblioteka Qt5 Quick controls2 - pliki programistyczne | |
85 | Group: Development/Libraries | |
86 | Requires: Qt5Core-devel >= %{qtbase_ver} | |
87 | Requires: Qt5Network-devel >= %{qtbase_ver} | |
88 | Requires: Qt5Quick-controls2 = %{version}-%{release} | |
89 | ||
90 | %description -n Qt5Quick-controls2-devel | |
91 | Qt5 Quick controls2 library - development files. | |
92 | ||
93 | %description -n Qt5Quick-controls2-devel -l pl.UTF-8 | |
94 | Biblioteka Qt5 Quick controls2 - pliki programistyczne. | |
95 | ||
96 | %package doc | |
97 | Summary: Qt5 Quick Controls2 documentation in HTML format | |
98 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick Controls2 w formacie HTML | |
99 | Group: Documentation | |
100 | Requires: qt5-doc-common >= %{qtbase_ver} | |
101 | %if "%{_rpmversion}" >= "5" | |
102 | BuildArch: noarch | |
103 | %endif | |
104 | ||
105 | %description doc | |
106 | Qt5 Quick Controls2 documentation in HTML format. | |
107 | ||
108 | %description doc -l pl.UTF-8 | |
109 | Dokumentacja do biblioteki Qt5 Quick Controls2 w formacie HTML. | |
110 | ||
111 | %package doc-qch | |
112 | Summary: Qt5 Quick Controls2 documentation in QCH format | |
113 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Quick Controls w formacie QCH | |
114 | Group: Documentation | |
115 | Requires: qt5-doc-common >= %{qtbase_ver} | |
116 | %if "%{_rpmversion}" >= "5" | |
117 | BuildArch: noarch | |
118 | %endif | |
119 | ||
120 | %description doc-qch | |
121 | Qt5 Quick Controls2 documentation in QCH format. | |
122 | ||
123 | %description doc-qch -l pl.UTF-8 | |
124 | Dokumentacja do biblioteki Qt5 Quick Controls2 w formacie QCH. | |
125 | ||
126 | %package examples | |
127 | Summary: Examples for Qt5 Quick Controls2 | |
128 | Summary(pl.UTF-8): Przykłady do Qt5 Quick controls2 | |
129 | Group: X11/Development/Libraries | |
130 | BuildArch: noarch | |
131 | ||
132 | %description examples | |
133 | Examples for Qt5 Quick Controls2. | |
134 | ||
135 | %description examples -l pl.UTF-8 | |
136 | Przykłady do Qt5 Quick controls2. | |
137 | ||
138 | %prep | |
f09af65d | 139 | %setup -q -n %{orgname}-everywhere-src-%{version} %{?with_qm:-a1} |
61c21a40 WF |
140 | |
141 | %build | |
142 | qmake-qt5 | |
143 | %{__make} | |
144 | %{?with_doc:%{__make} docs} | |
145 | ||
146 | %if %{with qm} | |
f09af65d | 147 | cd qttranslations-everywhere-src-%{version} |
61c21a40 WF |
148 | qmake-qt5 |
149 | %{__make} | |
150 | cd .. | |
151 | %endif | |
152 | ||
153 | %install | |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | %{__make} install \ | |
156 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
157 | ||
158 | %if %{with doc} | |
159 | %{__make} install_docs \ | |
160 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
161 | %endif | |
162 | ||
163 | %if %{with qm} | |
f09af65d | 164 | %{__make} -C qttranslations-everywhere-src-%{version} install \ |
61c21a40 WF |
165 | INSTALL_ROOT=$RPM_BUILD_ROOT |
166 | # keep only qtquickcontrols | |
bd39453c | 167 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/qt5/translations/{assistant,designer,linguist,qt,qtbase,qtconnectivity,qtdeclarative,qtlocation,qtmultimedia,qtquickcontrols,qtserialport,qtscript,qtwebengine,qtwebsockets,qtxmlpatterns}_*.qm |
61c21a40 WF |
168 | %endif |
169 | ||
170 | # find_lang --with-qm supports only PLD qt3/qt4 specific %{_localedir}/*/LC_MESSAGES layout | |
171 | find_qt5_qm() | |
172 | { | |
173 | name="$1" | |
174 | find $RPM_BUILD_ROOT%{_datadir}/qt5/translations -name "${name}_*.qm" | \ | |
175 | sed -e "s:^$RPM_BUILD_ROOT::" \ | |
176 | -e 's:\(.*/'$name'_\)\([a-z][a-z][a-z]\?\)\(_[A-Z][A-Z]\)\?\(\.qm\)$:%lang(\2\3) \1\2\3\4:' | |
177 | } | |
178 | ||
179 | echo '%defattr(644,root,root,755)' > qtquickcontrols2.lang | |
180 | %if %{with qm} | |
181 | find_qt5_qm qtquickcontrols2 >> qtquickcontrols2.lang | |
182 | %endif | |
183 | ||
184 | %clean | |
185 | rm -rf $RPM_BUILD_ROOT | |
186 | ||
5b54dd31 JP |
187 | %post -n Qt5Quick-controls2 -p /sbin/ldconfig |
188 | %postun -n Qt5Quick-controls2 -p /sbin/ldconfig | |
55a935db | 189 | |
61c21a40 WF |
190 | %files -n Qt5Quick-controls2 -f qtquickcontrols2.lang |
191 | %defattr(644,root,root,755) | |
192 | %doc dist/changes-* | |
193 | %ghost %{_libdir}/libQt5QuickControls2.so.5 | |
194 | %{_libdir}/libQt5QuickControls2.so.5.* | |
195 | %ghost %{_libdir}/libQt5QuickTemplates2.so.5 | |
196 | %{_libdir}/libQt5QuickTemplates2.so.5.* | |
197 | %{_libdir}/qt5/qml/Qt/labs | |
198 | %{_libdir}/qt5/qml/QtQuick/Controls.2 | |
199 | %{_libdir}/qt5/qml/QtQuick/Templates.2 | |
200 | ||
201 | %files -n Qt5Quick-controls2-devel | |
202 | %defattr(644,root,root,755) | |
203 | %{_includedir}/qt5/QtQuickControls2 | |
204 | %{_includedir}/qt5/QtQuickTemplates2 | |
205 | %{_libdir}/cmake/Qt5QuickControls2 | |
352cf707 | 206 | %{_libdir}/cmake/Qt5QuickTemplates2 |
61c21a40 WF |
207 | %{_libdir}/libQt5QuickControls2.la |
208 | %{_libdir}/libQt5QuickControls2.prl | |
209 | %{_libdir}/libQt5QuickControls2.so | |
210 | %{_libdir}/libQt5QuickTemplates2.la | |
211 | %{_libdir}/libQt5QuickTemplates2.prl | |
212 | %{_libdir}/libQt5QuickTemplates2.so | |
213 | %{_pkgconfigdir}/Qt5QuickControls2.pc | |
352cf707 | 214 | %{_pkgconfigdir}/Qt5QuickTemplates2.pc |
61c21a40 WF |
215 | %{_libdir}/qt5/mkspecs/modules/qt_lib_quickcontrols2.pri |
216 | %{_libdir}/qt5/mkspecs/modules/qt_lib_quickcontrols2_private.pri | |
352cf707 | 217 | %{_libdir}/qt5/mkspecs/modules/qt_lib_quicktemplates2.pri |
61c21a40 WF |
218 | %{_libdir}/qt5/mkspecs/modules/qt_lib_quicktemplates2_private.pri |
219 | ||
220 | %if %{with doc} | |
221 | %files doc | |
222 | %defattr(644,root,root,755) | |
223 | %{_docdir}/qt5-doc/qtlabscalendar | |
224 | %{_docdir}/qt5-doc/qtlabsplatform | |
bd39453c | 225 | %{_docdir}/qt5-doc/qtquickcontrols |
61c21a40 WF |
226 | |
227 | %files doc-qch | |
228 | %defattr(644,root,root,755) | |
229 | %{_docdir}/qt5-doc/qtlabscalendar.qch | |
230 | %{_docdir}/qt5-doc/qtlabsplatform.qch | |
bd39453c | 231 | %{_docdir}/qt5-doc/qtquickcontrols.qch |
61c21a40 WF |
232 | %endif |
233 | ||
234 | %files examples | |
235 | %defattr(644,root,root,755) | |
236 | %{_examplesdir}/qt5/quickcontrols2 |