1 |
%define _default_patch_fuzz 1 |
2 |
%define _disable_exceptions 1 |
3 |
%define with_webkit 1 |
4 |
%define build_bootstrap 0 |
5 |
%{?_with_bootstrap: %{expand: %%global build_bootstrap 1}} |
6 |
|
7 |
%bcond_without postgres |
8 |
%bcond_without mysql |
9 |
%bcond_without sqlite |
10 |
%bcond_without tds |
11 |
%bcond_without cups |
12 |
%bcond_without qvfb |
13 |
%bcond_without docs |
14 |
|
15 |
%bcond_with odbc |
16 |
%bcond_with debug |
17 |
%bcond_with ibase |
18 |
%if %{build_bootstrap} |
19 |
%bcond_without local_phonon_package |
20 |
%else |
21 |
%bcond_with local_phonon_package |
22 |
%endif |
23 |
#git clone git://gitorious.org/+kde-developers/qt/kde-qt.git |
24 |
#cd kde-qt |
25 |
#git archive --format=tar --prefix=kde-qt-everywhere-opensource-src-4.6.2/ master | bzip2 >/tmp/kde-qt-everywhere-opensource-src-4.6.2.tar.bz2 |
26 |
%define with_kde_qt 0 |
27 |
%define kdeqttarballdir kde-qt-everywhere-opensource-src-%{qtversion} |
28 |
%define with_qt_snapshot 0 |
29 |
|
30 |
%define qtmajor 4 |
31 |
%define qtminor 8 |
32 |
%define qtsubminor 4 |
33 |
%define rel 1 |
34 |
%define subrel 1 |
35 |
|
36 |
%define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor} |
37 |
|
38 |
%define libqt %mklibname qt %qtmajor |
39 |
%define libqtdevel %mklibname qt %qtmajor -d |
40 |
%define libqt3support %mklibname qt3support %qtmajor |
41 |
%define libqtcore %mklibname qtcore %qtmajor |
42 |
%define libqtdesigner %mklibname qtdesigner %qtmajor |
43 |
%define libqtgui %mklibname qtgui %qtmajor |
44 |
%define libqtnetwork %mklibname qtnetwork %qtmajor |
45 |
%define libqtopengl %mklibname qtopengl %qtmajor |
46 |
%define libqtsql %mklibname qtsql %qtmajor |
47 |
%define libqtxml %mklibname qtxml %qtmajor |
48 |
%define libqtscripttools %mklibname qtscripttools %qtmajor |
49 |
%define libqtxmlpatterns %mklibname qtxmlpatterns %qtmajor |
50 |
%define libqtsvg %mklibname qtsvg %qtmajor |
51 |
%define libqttest %mklibname qttest %qtmajor |
52 |
%define libqdbus %mklibname qtdbus %qtmajor |
53 |
%define libqtscript %mklibname qtscript %qtmajor |
54 |
%define libqtclucene %mklibname qtclucene %qtmajor |
55 |
%define libqthelp %mklibname qthelp %qtmajor |
56 |
%define libqtwebkit %mklibname qtwebkit %qtmajor |
57 |
%define libqtmultimedia %mklibname qtmultimedia %qtmajor |
58 |
%define libphonon %mklibname phonon %qtmajor |
59 |
%define libqtdeclarative %mklibname qtdeclarative %qtmajor |
60 |
|
61 |
%define _qt4_prefix %{_libdir}/qt4 |
62 |
%define _qt4_datadir %{_qt4_prefix} |
63 |
%define _qt4_bindir %{_qt4_prefix}/bin |
64 |
%define _qt4_docdir %{_docdir}/qt4 |
65 |
%define _qt4_libdir %{_libdir} |
66 |
%define _qt4_includedir %{_includedir} |
67 |
%define _qt4_plugindir %{_qt4_prefix}/plugins |
68 |
%define _qt4_demosdir %{_qt4_prefix}/demos |
69 |
%define _qt4_examplesdir %{_qt4_prefix}/examples |
70 |
%define _qt4_importdir %{_qt4_prefix}/imports |
71 |
%define _qt4_translationdir %{_datadir}/qt4/translations |
72 |
%define _qt4_sysconfigdir %{_sysconfdir} |
73 |
|
74 |
%if %with_kde_qt |
75 |
%define qttarballdir kde-qt-everywhere-opensource-src-%{qtversion} |
76 |
%else |
77 |
%define qttarballdir qt-everywhere-opensource-src-%{qtversion} |
78 |
%endif |
79 |
|
80 |
Name: qt4 |
81 |
Version: %{qtversion} |
82 |
Release: %mkrel %{rel} |
83 |
Epoch: 4 |
84 |
Summary: Qt GUI toolkit |
85 |
Group: Development/KDE and Qt |
86 |
License: LGPLv2 with exceptions or GPLv3 with exceptions and GFDL |
87 |
URL: http://qt.digia.com/ |
88 |
%if %with_kde_qt |
89 |
Source0: http://releases.qt-project.org/qt4/source/%{kdeqttarballdir}.tar.bz2 |
90 |
Source6: qt-everywhere-opensource-src-doc-4.6.2.tar.bz2 |
91 |
%else |
92 |
Source0: http://releases.qt-project.org/qt4/source/%{qttarballdir}.tar.gz |
93 |
%endif |
94 |
Source2: qt4.macros |
95 |
Source3: mageia-designer-qt4.desktop |
96 |
Source4: mageia-assistant-qt4.desktop |
97 |
Source5: mageia-linguist-qt4.desktop |
98 |
|
99 |
#Branch Patchs |
100 |
#Trunk Patchs |
101 |
|
102 |
|
103 |
#Patch from Mageia |
104 |
Patch301: qt-everywhere-opensource-src-4.7.4-workaround-QTBUG-22829.patch |
105 |
|
106 |
#Patch from Mandriva/Fedora/Gentoo/Arch/Debian/whatelse ;o) |
107 |
Patch400: qt-everywhere-opensource-src-4.8.0-tp-qtreeview-kpackagekit-crash.patch |
108 |
Patch401: qt-everywhere-opensource-src-4.8.0-QTBUG-21900.patch |
109 |
Patch402: qt-everywhere-opensource-src-4.8.0-QTBUG-22037.patch |
110 |
|
111 |
# Security patches |
112 |
Patch406: qt-everywhere-opensource-src-4.8.4-QTBUG-28343.patch |
113 |
Patch407: qt-4.8-CVE-2013-0254.patch |
114 |
Patch408: qt-everywhere-opensource-src-4.8.4-QTBUG-28937.patch |
115 |
Patch409: qt-everywhere-opensource-src-4.8.4-QTBUG-24654.patch |
116 |
|
117 |
BuildRequires: pkgconfig(xtst) |
118 |
BuildRequires: pkgconfig(libxslt) |
119 |
BuildRequires: pkgconfig(alsa) |
120 |
BuildRequires: pkgconfig(libpulse) |
121 |
BuildRequires: pkgconfig(gl) |
122 |
BuildRequires: mesa-common-devel |
123 |
BuildRequires: pkgconfig(zlib) |
124 |
BuildRequires: pkgconfig(openssl) |
125 |
BuildRequires: pkgconfig(libpng) |
126 |
BuildRequires: libjpeg-devel |
127 |
BuildRequires: libtiff-devel |
128 |
BuildRequires: libmng-devel |
129 |
BuildRequires: pkgconfig(lcms) |
130 |
BuildRequires: cups-devel |
131 |
BuildRequires: pkgconfig(freetype2) |
132 |
BuildRequires: pkgconfig(fontconfig) |
133 |
BuildRequires: expat-devel |
134 |
BuildRequires: pkgconfig(dbus-1) >= 0.92 |
135 |
BuildRequires: termcap-devel |
136 |
BuildRequires: libpam-devel |
137 |
BuildRequires: readline-devel |
138 |
BuildRequires: perl |
139 |
BuildRequires: pkgconfig(glib-2.0) |
140 |
BuildRequires: pkgconfig(libxml-2.0) |
141 |
#BuildRequires: pkgconfig(icu-i18n) |
142 |
BuildRequires: binutils >= 2.18 |
143 |
# For qtgtk style |
144 |
BuildRequires: pkgconfig(gtk+-2.0) |
145 |
BuildRequires: rsync |
146 |
|
147 |
%description |
148 |
Qt is a GUI software toolkit which simplifies the task of writing and |
149 |
maintaining GUI (Graphical User Interface) applications for the X |
150 |
Window System. Qt is written in C++ and is fully object-oriented. |
151 |
|
152 |
This package contains the shared library needed to run Qt |
153 |
applications, as well as the README files for Qt. |
154 |
|
155 |
#------------------------------------------------------------------------------ |
156 |
|
157 |
%package common |
158 |
Summary: Qt%{qtmajor} Config and Language Files |
159 |
Group: Development/KDE and Qt |
160 |
|
161 |
%description common |
162 |
Qt is a GUI software toolkit which simplifies the task of writing and |
163 |
maintaining GUI (Graphical User Interface) applications for the X |
164 |
Window System. Qt is written in C++ and is fully object-oriented. |
165 |
|
166 |
Configuration and language files for Qt%{qtmajor}. |
167 |
|
168 |
%files common |
169 |
%attr(0755,root,root) %{_sysconfdir}/profile.d/* |
170 |
%dir %{_qt4_datadir} |
171 |
%dir %{_qt4_bindir} |
172 |
%dir %{_qt4_plugindir} |
173 |
%dir %{_qt4_importdir} |
174 |
%{_qt4_datadir}/phrasebooks |
175 |
%if %with docs |
176 |
%dir %{_qt4_translationdir} |
177 |
%lang(ar) %{_qt4_translationdir}/qt_ar.qm |
178 |
%lang(cs) %{_qt4_translationdir}/qt_cs.qm |
179 |
%lang(da) %{_qt4_translationdir}/qt_da.qm |
180 |
%lang(de) %{_qt4_translationdir}/qt_de.qm |
181 |
%lang(es) %{_qt4_translationdir}/qt_es.qm |
182 |
%lang(fa) %{_qt4_translationdir}/qt_fa.qm |
183 |
%lang(fr) %{_qt4_translationdir}/qt_fr.qm |
184 |
%lang(gl) %{_qt4_translationdir}/qt_gl.qm |
185 |
%lang(he) %{_qt4_translationdir}/qt_he.qm |
186 |
%lang(lt) %{_qt4_translationdir}/qt_lt.qm |
187 |
%lang(cs) %{_qt4_translationdir}/qt_help_cs.qm |
188 |
%lang(da) %{_qt4_translationdir}/qt_help_da.qm |
189 |
%lang(de) %{_qt4_translationdir}/qt_help_de.qm |
190 |
%lang(fr) %{_qt4_translationdir}/qt_help_fr.qm |
191 |
%lang(gl) %{_qt4_translationdir}/qt_help_gl.qm |
192 |
%lang(hu) %{_qt4_translationdir}/qt_help_hu.qm |
193 |
%lang(ja) %{_qt4_translationdir}/qt_help_ja.qm |
194 |
%lang(ko) %{_qt4_translationdir}/qt_help_ko.qm |
195 |
%lang(pl) %{_qt4_translationdir}/qt_help_pl.qm |
196 |
%lang(ru) %{_qt4_translationdir}/qt_help_ru.qm |
197 |
%lang(sl) %{_qt4_translationdir}/qt_help_sl.qm |
198 |
%lang(uk) %{_qt4_translationdir}/qt_help_uk.qm |
199 |
%lang(zh_CN) %{_qt4_translationdir}/qt_help_zh_CN.qm |
200 |
%lang(zh_TW) %{_qt4_translationdir}/qt_help_zh_TW.qm |
201 |
%lang(hu) %{_qt4_translationdir}/qt_hu.qm |
202 |
%lang(ja) %{_qt4_translationdir}/qt_ja.qm |
203 |
%lang(ko) %{_qt4_translationdir}/qt_ko.qm |
204 |
%lang(pl) %{_qt4_translationdir}/qt_pl.qm |
205 |
%lang(pt) %{_qt4_translationdir}/qt_pt.qm |
206 |
%lang(ru) %{_qt4_translationdir}/qt_ru.qm |
207 |
%lang(sk) %{_qt4_translationdir}/qt_sk.qm |
208 |
%lang(sl) %{_qt4_translationdir}/qt_sl.qm |
209 |
%lang(sv) %{_qt4_translationdir}/qt_sv.qm |
210 |
%lang(uk) %{_qt4_translationdir}/qt_uk.qm |
211 |
%lang(zh_CN) %{_qt4_translationdir}/qt_zh_CN.qm |
212 |
%lang(zh_TW) %{_qt4_translationdir}/qt_zh_TW.qm |
213 |
|
214 |
%endif |
215 |
|
216 |
#------------------------------------------------------------------------------ |
217 |
# CORE QT LIBRARIES |
218 |
#------------------------------------------------------------------------------ |
219 |
|
220 |
%package -n %{libqtxml} |
221 |
Summary: Qt%{qtmajor} Component Library |
222 |
Group: System/Libraries |
223 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
224 |
Provides: qtxmllib = %{epoch}:%{version} |
225 |
|
226 |
%description -n %{libqtxml} |
227 |
Qt%{qtmajor} Component Library. |
228 |
|
229 |
The QtXml module provides a stream reader and writer for XML documents, |
230 |
and C++ implementations of SAX and DOM. |
231 |
|
232 |
%files -n %{libqtxml} |
233 |
%{_qt4_libdir}/libQtXml.so.%{qtmajor}* |
234 |
|
235 |
#------------------------------------------------------------------------------ |
236 |
|
237 |
%package -n %{libqtscripttools} |
238 |
Summary: Qt%{qtmajor} Component Library |
239 |
Group: System/Libraries |
240 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
241 |
Provides: qtscripttoolslib = %{epoch}:%{version} |
242 |
|
243 |
%description -n %{libqtscripttools} |
244 |
Qt%{qtmajor} Component Library. |
245 |
|
246 |
The QtScriptTools module provides additional components for applications |
247 |
that use Qt Script. |
248 |
|
249 |
%files -n %{libqtscripttools} |
250 |
%{_qt4_libdir}/libQtScriptTools.so.%{qtmajor}* |
251 |
|
252 |
#------------------------------------------------------------------------------ |
253 |
|
254 |
%package -n %{libqtxmlpatterns} |
255 |
Summary: Qt%{qtmajor} Component Library |
256 |
Group: System/Libraries |
257 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
258 |
Requires: %{name}-xmlpatterns = %{epoch}:%{version} |
259 |
|
260 |
%description -n %{libqtxmlpatterns} |
261 |
Qt%{qtmajor} Component Library. |
262 |
|
263 |
The QtXmlPatterns module provides support for XPath, XQuery, XSLT and |
264 |
XML Schema validation. |
265 |
|
266 |
%files -n %{libqtxmlpatterns} |
267 |
%{_qt4_libdir}/libQtXmlPatterns.so.%{qtmajor}* |
268 |
|
269 |
#------------------------------------------------------------------------------ |
270 |
|
271 |
%package -n %{libqtsql} |
272 |
Summary: Qt%{qtmajor} Component Library |
273 |
Group: System/Libraries |
274 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
275 |
Provides: qtsqllib = %{epoch}:%{version} |
276 |
|
277 |
%description -n %{libqtsql} |
278 |
Qt%{qtmajor} Component Library. |
279 |
|
280 |
%files -n %{libqtsql} |
281 |
%{_qt4_libdir}/libQtSql.so.%{qtmajor}* |
282 |
|
283 |
#------------------------------------------------------------------------------ |
284 |
|
285 |
%package -n %{libqtnetwork} |
286 |
Summary: Qt%{qtmajor} Component Library |
287 |
Group: System/Libraries |
288 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
289 |
Provides: qtnetworklib = %{epoch}:%{version} |
290 |
|
291 |
%description -n %{libqtnetwork} |
292 |
Qt%{qtmajor} Component Library. |
293 |
|
294 |
The QtNetwork module provides classes to make network programming easier |
295 |
and portable. |
296 |
|
297 |
%files -n %{libqtnetwork} |
298 |
%{_qt4_libdir}/libQtNetwork.so.%{qtmajor}* |
299 |
|
300 |
#------------------------------------------------------------------------------ |
301 |
|
302 |
%package -n %{libqtscript} |
303 |
Summary: Qt%{qtmajor} Component Library |
304 |
Group: System/Libraries |
305 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
306 |
Provides: libqtscript = %{epoch}:%{version} |
307 |
|
308 |
%description -n %{libqtscript} |
309 |
Qt%{qtmajor} Component Library. |
310 |
|
311 |
The QtScript module provides classes for making Qt applications |
312 |
scriptable. |
313 |
|
314 |
%files -n %{libqtscript} |
315 |
%{_qt4_libdir}/libQtScript.so.%{qtmajor}* |
316 |
%{_qt4_plugindir}/script |
317 |
|
318 |
#------------------------------------------------------------------------------ |
319 |
|
320 |
%package -n %{libqtgui} |
321 |
Summary: Qt%{qtmajor} Component Library |
322 |
Group: System/Libraries |
323 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
324 |
Provides: qtguilib = %{epoch}:%{version} |
325 |
|
326 |
%description -n %{libqtgui} |
327 |
Qt%{qtmajor} Component Library. |
328 |
|
329 |
The QtGui module extends QtCore with GUI functionality. |
330 |
|
331 |
%files -n %{libqtgui} |
332 |
%{_qt4_libdir}/libQtGui.so.%{qtmajor}* |
333 |
%{_qt4_plugindir}/imageformats/ |
334 |
%{_qt4_plugindir}/inputmethods/ |
335 |
|
336 |
#------------------------------------------------------------------------------ |
337 |
|
338 |
%package -n %{libqtsvg} |
339 |
Summary: Qt%{qtmajor} Component Library |
340 |
Group: System/Libraries |
341 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
342 |
Provides: qtsvglib = %{epoch}:%{version} |
343 |
|
344 |
%description -n %{libqtsvg} |
345 |
Qt%{qtmajor} Component Library. |
346 |
|
347 |
The QtSvg module provides classes for displaying and creating SVG files. |
348 |
|
349 |
%files -n %{libqtsvg} |
350 |
%{_qt4_libdir}/libQtSvg.so.%{qtmajor}* |
351 |
%{_qt4_plugindir}/iconengines/ |
352 |
|
353 |
#------------------------------------------------------------------------------ |
354 |
|
355 |
%package -n %{libqttest} |
356 |
Summary: Qt%{qtmajor} Component Library |
357 |
Group: System/Libraries |
358 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
359 |
Provides: qttestlib = %{epoch}:%{version} |
360 |
|
361 |
%description -n %{libqttest} |
362 |
Qt%{qtmajor} Component Library. |
363 |
|
364 |
The QtTest module provides classes for unit testing Qt applications and |
365 |
libraries. |
366 |
|
367 |
%files -n %{libqttest} |
368 |
%{_qt4_libdir}/libQtTest.so.%{qtmajor}* |
369 |
|
370 |
#------------------------------------------------------------------------------ |
371 |
|
372 |
%package -n %{libqthelp} |
373 |
Summary: Qt%{qtmajor} Component Library |
374 |
Group: System/Libraries |
375 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
376 |
Provides: qthelplib = %{epoch}:%{version} |
377 |
|
378 |
%description -n %{libqthelp} |
379 |
Qt%{qtmajor} Component Library. |
380 |
|
381 |
The QtHelp module provides classes for integrating online documentation |
382 |
in applications. |
383 |
|
384 |
%files -n %{libqthelp} |
385 |
%{_qt4_libdir}/libQtHelp.so.%{qtmajor}* |
386 |
|
387 |
#------------------------------------------------------------------------------ |
388 |
|
389 |
%package -n %{libqtclucene} |
390 |
Summary: Qt%{qtmajor} Component Library |
391 |
Group: System/Libraries |
392 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
393 |
Provides: qtclucenelib = %{epoch}:%{version} |
394 |
|
395 |
%description -n %{libqtclucene} |
396 |
Qt%{qtmajor} Component Library. |
397 |
|
398 |
%files -n %{libqtclucene} |
399 |
%{_qt4_libdir}/libQtCLucene.so.%{qtmajor}* |
400 |
|
401 |
#------------------------------------------------------------------------------ |
402 |
|
403 |
%package -n %{libqtcore} |
404 |
Summary: Qt%{qtmajor} Component Library |
405 |
Group: System/Libraries |
406 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
407 |
Provides: qtcorelib = %{epoch}:%{version} |
408 |
|
409 |
%description -n %{libqtcore} |
410 |
Qt%{qtmajor} Component Library. |
411 |
|
412 |
The QtCore module contains core non-GUI functionality. |
413 |
|
414 |
%files -n %{libqtcore} |
415 |
%{_qt4_libdir}/libQtCore.so.%{qtmajor}* |
416 |
%{_qt4_plugindir}/codecs/ |
417 |
|
418 |
#------------------------------------------------------------------------------ |
419 |
|
420 |
%package -n %{libqt3support} |
421 |
Summary: Qt%{qtmajor} Component Library |
422 |
Group: System/Libraries |
423 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
424 |
Provides: qt3supportlib = %{epoch}:%{version} |
425 |
|
426 |
%description -n %{libqt3support} |
427 |
Qt%{qtmajor} Component Library. |
428 |
|
429 |
The Qt3Support module provides classes that ease porting from Qt 3 to |
430 |
Qt 4. |
431 |
|
432 |
%files -n %{libqt3support} |
433 |
%{_qt4_libdir}/libQt3Support.so.%{qtmajor}* |
434 |
|
435 |
#------------------------------------------------------------------------------ |
436 |
|
437 |
%package -n %{libqtopengl} |
438 |
Summary: Qt%{qtmajor} Component Library |
439 |
Group: System/Libraries |
440 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
441 |
Provides: qtopengllib = %{epoch}:%{version} |
442 |
|
443 |
%description -n %{libqtopengl} |
444 |
Qt%{qtmajor} Component Library. |
445 |
|
446 |
The QtOpenGL module offers classes that make it easy to use OpenGL in |
447 |
Qt applications. |
448 |
|
449 |
%files -n %{libqtopengl} |
450 |
%{_qt4_libdir}/libQtOpenGL.so.%{qtmajor}* |
451 |
|
452 |
#------------------------------------------------------------------------------ |
453 |
|
454 |
%package -n %{libqtdesigner} |
455 |
Summary: Qt%{qtmajor} Component Library |
456 |
Group: System/Libraries |
457 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
458 |
Provides: qtdesignerlib = %{epoch}:%{version} |
459 |
|
460 |
%description -n %{libqtdesigner} |
461 |
Qt%{qtmajor} Component Library. |
462 |
|
463 |
The QtDesigner module provides classes that allow you to create your own |
464 |
custom widget plugins for Qt Designer, and classes that enable you to |
465 |
access Qt Designer's components. |
466 |
|
467 |
%files -n %{libqtdesigner} |
468 |
%{_qt4_libdir}/libQtDesigner.so.%{qtmajor}* |
469 |
%{_qt4_libdir}/libQtDesignerComponents.so.%{qtmajor}* |
470 |
|
471 |
#------------------------------------------------------------------------------ |
472 |
|
473 |
%package -n %{libqdbus} |
474 |
Summary: QT Dbus Library |
475 |
Group: System/Libraries |
476 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
477 |
Provides: qdbuslib = %{epoch}:%{version} |
478 |
|
479 |
%description -n %{libqdbus} |
480 |
QT Dbus Library. |
481 |
|
482 |
The QtDBus module is a Unix-only library that you can use to perform |
483 |
Inter-Process Communication using the D-Bus protocol. |
484 |
|
485 |
%files -n %{libqdbus} |
486 |
%{_qt4_libdir}/libQtDBus.so.%{qtmajor}* |
487 |
|
488 |
#------------------------------------------------------------------------------ |
489 |
|
490 |
%package -n %{libqtmultimedia} |
491 |
Summary: Qt%{qtmajor} Multimedia Lib |
492 |
Group: System/Libraries |
493 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
494 |
|
495 |
%description -n %{libqtmultimedia} |
496 |
Qt%{qtmajor} Multimedia Lib. |
497 |
|
498 |
The QtMultimedia module provides low-level multimedia functionality. |
499 |
|
500 |
%files -n %{libqtmultimedia} |
501 |
%{_qt4_libdir}/libQtMultimedia.so.%{qtmajor}* |
502 |
|
503 |
#------------------------------------------------------------------------------ |
504 |
|
505 |
%if %with local_phonon_package |
506 |
|
507 |
%package -n %{libphonon} |
508 |
Summary: Qt%{qtmajor} Phonon Library |
509 |
Group: System/Libraries |
510 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
511 |
|
512 |
%description -n %{libphonon} |
513 |
Qt%{qtmajor} Phonon Library. |
514 |
|
515 |
%files -n %{libphonon} |
516 |
%{_qt4_libdir}/libphonon.so.%{qtmajor}* |
517 |
|
518 |
#------------------------------------------------------------------------------ |
519 |
|
520 |
%package -n phonon-gstreamer |
521 |
Summary: Qt%{qtmajor} honon gstreamer backend |
522 |
Group: System/Libraries |
523 |
Provides: phonon-backend = %{epoch}:%{version} |
524 |
BuildRequires: pkgconfig(gstreamer-0.10) |
525 |
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) |
526 |
Requires: gstreamer0.10-plugins-good |
527 |
Requires: gstreamer0.10-pulse |
528 |
Suggests: gstreamer0.10-ffmpeg |
529 |
Suggests: gstreamer0.10-soup |
530 |
|
531 |
%description -n phonon-gstreamer |
532 |
Qt%{qtmajor} phonon library. |
533 |
|
534 |
%files -n phonon-gstreamer |
535 |
%{_qt4_plugindir}/phonon_backend/libphonon_gstreamer.so |
536 |
|
537 |
#------------------------------------------------------------------------------ |
538 |
|
539 |
%package designer-plugin-phonon |
540 |
Summary: Designer Plugin for phonon Qt%{qtmajor} support |
541 |
Group: Development/KDE and Qt |
542 |
|
543 |
%description designer-plugin-phonon |
544 |
Designer Plugin for phonon Qt%{qtmajor} support. |
545 |
|
546 |
%files designer-plugin-phonon |
547 |
%{_qt4_plugindir}/designer/libphononwidgets.so |
548 |
|
549 |
%endif |
550 |
|
551 |
#------------------------------------------------------------------------------ |
552 |
|
553 |
%package qtdbus |
554 |
Summary: Qt%{qtmajor} Dbus Binary |
555 |
Group: Development/KDE and Qt |
556 |
|
557 |
|
558 |
%description qtdbus |
559 |
Qt%{qtmajor} Dbus Binary. |
560 |
|
561 |
The QtDBus module is a Unix-only library that you can use to perform |
562 |
Inter-Process Communication using the D-Bus protocol. |
563 |
|
564 |
%files qtdbus |
565 |
%{_qt4_bindir}/qdbus |
566 |
%{_qt4_bindir}/qdbusviewer |
567 |
|
568 |
#------------------------------------------------------------------------------ |
569 |
|
570 |
%package -n %{libqtdeclarative} |
571 |
Summary: Qt%{qtmajor} Declarative library |
572 |
Group: System/Libraries |
573 |
Requires(pre): %{name}-common = %{epoch}:%{version} |
574 |
|
575 |
%description -n %{libqtdeclarative} |
576 |
Qt%{qtmajor} Declarative library. |
577 |
|
578 |
The Qt Declarative module provides a declarative framework for building |
579 |
highly dynamic, custom user interfaces. |
580 |
|
581 |
%files -n %{libqtdeclarative} |
582 |
%{_qt4_libdir}/libQtDeclarative.so.%{qtmajor}* |
583 |
|
584 |
#------------------------------------------------------------------------------ |
585 |
|
586 |
%package qmlviewer |
587 |
Summary: Qt%{qtmajor} Qmlviewer Utility |
588 |
Group: Development/KDE and Qt |
589 |
|
590 |
%description qmlviewer |
591 |
Qt%{qtmajor} Qmlviewer Utility. |
592 |
|
593 |
This a tool for loading QML documents that makes it easy to quickly |
594 |
develop and debug QML applications. |
595 |
|
596 |
%files qmlviewer |
597 |
%{_qt4_bindir}/qmlviewer |
598 |
%{_qt4_importdir}/Qt |
599 |
%{_qt4_plugindir}/bearer/libqgenericbearer.so |
600 |
%{_qt4_plugindir}/bearer/libqnmbearer.so |
601 |
%{_qt4_plugindir}/bearer/libqconnmanbearer.so |
602 |
%{_qt4_plugindir}/designer/libqdeclarativeview.so |
603 |
%{_qt4_plugindir}/qmltooling/libqmldbg_tcp.so |
604 |
%{_qt4_plugindir}/qmltooling/libqmldbg_inspector.so |
605 |
|
606 |
#------------------------------------------------------------------------------ |
607 |
|
608 |
# make a devel private subpkg or not? |
609 |
%define private 1 |
610 |
|
611 |
%package -n %{libqtdevel} |
612 |
Summary: Development files for the Qt%{qtmajor} GUI toolkit |
613 |
Group: Development/KDE and Qt |
614 |
Requires: %{name}-common = %{epoch}:%{version} |
615 |
Requires: qt4-qtconfig |
616 |
Provides: qt4-devel = %{epoch}:%{version}-%release |
617 |
Provides: libqt4-devel = %{epoch}:%{version}-%release |
618 |
Requires: %{libqtdeclarative} = %{epoch}:%{version} |
619 |
Requires: %{libqtdesigner} = %{epoch}:%{version} |
620 |
Requires: %{libqtnetwork} = %{epoch}:%{version} |
621 |
Requires: %{libqtopengl} = %{epoch}:%{version} |
622 |
Requires: %{libqtsql} = %{epoch}:%{version} |
623 |
Requires: %{libqtscripttools} = %{epoch}:%{version} |
624 |
Requires: %{libqtsvg} = %{epoch}:%{version} |
625 |
Requires: %{libqtclucene} = %{epoch}:%{version} |
626 |
Requires: %{libqttest} = %{epoch}:%{version} |
627 |
Requires: qt4-designer-plugin-webkit = %{epoch}:%{version} |
628 |
Requires: %{libqtscript} = %{epoch}:%{version} |
629 |
Requires: %{libqthelp} = %{epoch}:%{version} |
630 |
Requires: %{libqtmultimedia} = %{epoch}:%{version} |
631 |
%if %with local_phonon_package |
632 |
Requires: %{libphonon} = %{epoch}:%{version} |
633 |
Requires: qt4-designer-plugin-phonon = %{epoch}:%{version} |
634 |
%else |
635 |
Requires: phonon-devel |
636 |
%endif |
637 |
Requires: qt4-qtdbus = %{epoch}:%{version} |
638 |
Requires: qt4-designer-plugin-qt3support = %{epoch}:%{version} |
639 |
Requires: pkgconfig(glu) |
640 |
Requires: pkgconfig(libpng) |
641 |
Requires: jpeg-devel |
642 |
Requires: make |
643 |
|
644 |
%description -n %{libqtdevel} |
645 |
The %{name}-devel package contains the files necessary to develop |
646 |
applications using the Qt GUI toolkit: the header files, the Qt |
647 |
meta object compiler, and the static libraries. See the address |
648 |
http://qt.nokia.com/ for more information about Qt%{qtmajor}. |
649 |
|
650 |
Install %{name}-devel if you want to develop GUI applications using the |
651 |
Qt toolkit. |
652 |
|
653 |
%post -n %{libqtdevel} |
654 |
update-alternatives --install %{_bindir}/qmake qmake %{_qt4_bindir}/qmake 20 |
655 |
|
656 |
%postun -n %{libqtdevel} |
657 |
if ! [ -e %{_qt4_bindir}/qmake ]; then |
658 |
update-alternatives --remove qmake %{_qt4_bindir}/qmake |
659 |
fi |
660 |
|
661 |
%files -n %{libqtdevel} |
662 |
%{_sysconfdir}/rpm/macros.d/qt4.macros |
663 |
%{_qt4_bindir}/pixeltool |
664 |
%{_qt4_bindir}/lrelease |
665 |
%{_qt4_bindir}/lupdate |
666 |
%{_qt4_bindir}/moc |
667 |
%{_qt4_bindir}/qdbusxml2cpp |
668 |
%{_qt4_bindir}/qdbuscpp2xml |
669 |
%{_qt4_bindir}/qmake |
670 |
%{_qt4_bindir}/qmlplugindump |
671 |
%{_qt4_bindir}/qt3to4 |
672 |
%{_qt4_bindir}/qttracereplay |
673 |
%{_qt4_bindir}/rcc |
674 |
%{_qt4_bindir}/uic |
675 |
%{_qt4_bindir}/uic3 |
676 |
%{_qt4_bindir}/xmlpatternsvalidator |
677 |
%if "%{_qt4_includedir}" != "%{_includedir}" |
678 |
%dir %{_qt4_includedir} |
679 |
%endif |
680 |
%dir %{_qt4_includedir}/Qt/ |
681 |
%{_qt4_includedir}/Qt/*.h |
682 |
%{_qt4_includedir}/Qt/Qt3Support |
683 |
%{_qt4_includedir}/Qt/QtCore |
684 |
%{_qt4_includedir}/Qt/QtDBus |
685 |
%{_qt4_includedir}/Qt/QtDeclarative |
686 |
%{_qt4_includedir}/Qt/QtGui |
687 |
%{_qt4_includedir}/Qt/QtHelp |
688 |
%{_qt4_includedir}/Qt/QtMultimedia |
689 |
%{_qt4_includedir}/Qt/QtNetwork |
690 |
%{_qt4_includedir}/Qt/QtOpenGL |
691 |
%{_qt4_includedir}/Qt/QtScript |
692 |
%{_qt4_includedir}/Qt/QtScriptTools |
693 |
%{_qt4_includedir}/Qt/QtSql |
694 |
%{_qt4_includedir}/Qt/QtSvg |
695 |
%{_qt4_includedir}/Qt/QtTest |
696 |
%{_qt4_includedir}/Qt/QtXml |
697 |
%{_qt4_includedir}/Qt/QtXmlPatterns |
698 |
%{_qt4_includedir}/Qt3Support |
699 |
%{_qt4_includedir}/QtCore/ |
700 |
%{_qt4_includedir}/QtDBus/ |
701 |
%{_qt4_includedir}/QtDeclarative/ |
702 |
%{_qt4_includedir}/QtDesigner/ |
703 |
%{_qt4_includedir}/QtGui/ |
704 |
%{_qt4_includedir}/QtHelp/ |
705 |
%{_qt4_includedir}/QtMultimedia/ |
706 |
%{_qt4_includedir}/QtNetwork/ |
707 |
%{_qt4_includedir}/QtOpenGL/ |
708 |
%{_qt4_includedir}/QtScript/ |
709 |
%{_qt4_includedir}/QtScriptTools/ |
710 |
%{_qt4_includedir}/QtSql/ |
711 |
%{_qt4_includedir}/QtSvg/ |
712 |
%{_qt4_includedir}/QtTest/ |
713 |
%{_qt4_includedir}/QtXml/ |
714 |
%{_qt4_includedir}/QtXmlPatterns/ |
715 |
%{_qt4_includedir}/QtUiTools/ |
716 |
%{_qt4_datadir}/mkspecs |
717 |
%{_qt4_datadir}/q3porting.xml |
718 |
%{_qt4_libdir}/libQt3Support.prl |
719 |
%{_qt4_libdir}/libQt3Support.so |
720 |
%{_qt4_libdir}/libQtCLucene.prl |
721 |
%{_qt4_libdir}/libQtCLucene.so |
722 |
%{_qt4_libdir}/libQtCore.prl |
723 |
%{_qt4_libdir}/libQtCore.so |
724 |
%{_qt4_libdir}/libQtDBus.prl |
725 |
%{_qt4_libdir}/libQtDBus.so |
726 |
%{_qt4_libdir}/libQtDeclarative.prl |
727 |
%{_qt4_libdir}/libQtDeclarative.so |
728 |
%{_qt4_libdir}/libQtDesigner.prl |
729 |
%{_qt4_libdir}/libQtDesigner.so |
730 |
%{_qt4_libdir}/libQtDesignerComponents.prl |
731 |
%{_qt4_libdir}/libQtDesignerComponents.so |
732 |
%{_qt4_libdir}/libQtGui.prl |
733 |
%{_qt4_libdir}/libQtGui.so |
734 |
%{_qt4_libdir}/libQtHelp.prl |
735 |
%{_qt4_libdir}/libQtHelp.so |
736 |
%{_qt4_libdir}/libQtMultimedia.prl |
737 |
%{_qt4_libdir}/libQtMultimedia.so |
738 |
%{_qt4_libdir}/libQtNetwork.prl |
739 |
%{_qt4_libdir}/libQtNetwork.so |
740 |
%{_qt4_libdir}/libQtOpenGL.prl |
741 |
%{_qt4_libdir}/libQtOpenGL.so |
742 |
%{_qt4_libdir}/libQtScript.prl |
743 |
%{_qt4_libdir}/libQtScript.so |
744 |
%{_qt4_libdir}/libQtScriptTools.prl |
745 |
%{_qt4_libdir}/libQtScriptTools.so |
746 |
%{_qt4_libdir}/libQtSql.prl |
747 |
%{_qt4_libdir}/libQtSql.so |
748 |
%{_qt4_libdir}/libQtSvg.prl |
749 |
%{_qt4_libdir}/libQtSvg.so |
750 |
%{_qt4_libdir}/libQtTest.prl |
751 |
%{_qt4_libdir}/libQtTest.so |
752 |
%{_qt4_libdir}/libQtUiTools.a |
753 |
%{_qt4_libdir}/libQtUiTools.prl |
754 |
%{_qt4_libdir}/libQtXml.prl |
755 |
%{_qt4_libdir}/libQtXml.so |
756 |
%{_qt4_libdir}/libQtXmlPatterns.prl |
757 |
%{_qt4_libdir}/libQtXmlPatterns.so |
758 |
%{_qt4_libdir}/pkgconfig/Qt3Support.pc |
759 |
%{_qt4_libdir}/pkgconfig/QtCLucene.pc |
760 |
%{_qt4_libdir}/pkgconfig/QtCore.pc |
761 |
%{_qt4_libdir}/pkgconfig/QtDBus.pc |
762 |
%{_qt4_libdir}/pkgconfig/QtDeclarative.pc |
763 |
%{_qt4_libdir}/pkgconfig/QtDesigner.pc |
764 |
%{_qt4_libdir}/pkgconfig/QtDesignerComponents.pc |
765 |
%{_qt4_libdir}/pkgconfig/QtGui.pc |
766 |
%{_qt4_libdir}/pkgconfig/QtHelp.pc |
767 |
%{_qt4_libdir}/pkgconfig/QtMultimedia.pc |
768 |
%{_qt4_libdir}/pkgconfig/QtNetwork.pc |
769 |
%{_qt4_libdir}/pkgconfig/QtOpenGL.pc |
770 |
%{_qt4_libdir}/pkgconfig/QtScript.pc |
771 |
%{_qt4_libdir}/pkgconfig/QtScriptTools.pc |
772 |
%{_qt4_libdir}/pkgconfig/QtSql.pc |
773 |
%{_qt4_libdir}/pkgconfig/QtSvg.pc |
774 |
%{_qt4_libdir}/pkgconfig/QtTest.pc |
775 |
%{_qt4_libdir}/pkgconfig/QtUiTools.pc |
776 |
%{_qt4_libdir}/pkgconfig/QtXml.pc |
777 |
%{_qt4_libdir}/pkgconfig/QtXmlPatterns.pc |
778 |
%if 0%{?private} |
779 |
%exclude %{_qt4_includedir}/*/private/ |
780 |
%endif |
781 |
|
782 |
#------------------------------------------------------------------------------ |
783 |
|
784 |
%if 0%{?private} |
785 |
%package devel-private |
786 |
Summary: Private headers for Qt toolkit |
787 |
Group: Development/KDE and Qt |
788 |
Requires: qt4-devel = %{?epoch:%{epoch}:}%{version}-%{release} |
789 |
BuildArch: noarch |
790 |
%description devel-private |
791 |
%{summary}. |
792 |
|
793 |
%files devel-private |
794 |
%{_qt4_includedir}/QtCore/private/ |
795 |
%{_qt4_includedir}/QtDeclarative/private/ |
796 |
%{_qt4_includedir}/QtGui/private/ |
797 |
%{_qt4_includedir}/QtScript/private/ |
798 |
%{_qt4_includedir}/../src/corelib/ |
799 |
%{_qt4_includedir}/../src/declarative/ |
800 |
%{_qt4_includedir}/../src/gui/ |
801 |
%{_qt4_includedir}/../src/script/ |
802 |
%endif |
803 |
|
804 |
#------------------------------------------------------------------------------ |
805 |
|
806 |
%package xmlpatterns |
807 |
Summary: Qt%{qtmajor} Xmlpatterns Utility |
808 |
Group: Development/KDE and Qt |
809 |
|
810 |
%description xmlpatterns |
811 |
Qt%{qtmajor} Xmlpatterns Utility. |
812 |
|
813 |
The QtXmlPatterns module provides support for XPath, XQuery, XSLT and |
814 |
XML Schema validation. |
815 |
|
816 |
%files xmlpatterns |
817 |
%{_qt4_bindir}/xmlpatterns |
818 |
|
819 |
#------------------------------------------------------------------------------ |
820 |
|
821 |
%package qtconfig |
822 |
Summary: Qt%{qtmajor} Configuration Utility |
823 |
Group: Development/KDE and Qt |
824 |
|
825 |
%description qtconfig |
826 |
Main Qt%{qtmajor} Configuration Utility. |
827 |
|
828 |
The qtconfig tool allows users to customize the default settings for Qt |
829 |
applications on a per-user basis, enabling features such as the widget |
830 |
style to be changed without requiring applications to be recompiled. |
831 |
|
832 |
%post qtconfig |
833 |
update-alternatives --install %{_bindir}/qtconfig qtconfig %{_qt4_bindir}/qtconfig 20 |
834 |
|
835 |
%postun qtconfig |
836 |
if ! [ -e %{_qt4_bindir}/qtconfig ]; then |
837 |
update-alternatives --remove qtconfig %{_qt4_bindir}/qtconfig |
838 |
fi |
839 |
|
840 |
%files qtconfig |
841 |
|
842 |
%{_qt4_bindir}/qtconf* |
843 |
%if %with docs |
844 |
%{_qt4_translationdir}/qtconfig* |
845 |
%endif |
846 |
|
847 |
#------------------------------------------------------------------------------ |
848 |
|
849 |
%if %with docs |
850 |
|
851 |
%package doc |
852 |
Summary: HTML Documentation for Qt%{qtmajor} |
853 |
Group: Books/Computer books |
854 |
BuildArch: noarch |
855 |
|
856 |
%description doc |
857 |
HTML documentation for the Qt toolkit. To view the documentation, |
858 |
please load up the file %_qt4_docdir/html/index.html in your |
859 |
favourite browser. |
860 |
|
861 |
%post doc |
862 |
# Remove old qt4 doc directories |
863 |
find %_docdir -maxdepth 1 -type d -name qt-4.\* -exec rm -rf {} \; |
864 |
|
865 |
%files doc |
866 |
%{_qt4_docdir}/html |
867 |
%{_qt4_docdir}/qch |
868 |
%{_qt4_docdir}/src |
869 |
|
870 |
#------------------------------------------------------------------------------ |
871 |
|
872 |
%package demos |
873 |
Summary: Demonstration applications with Qt%{qtmajor} |
874 |
Group: Books/Computer books |
875 |
Obsoletes: %{name}-demos < 4:4.7.0-3 |
876 |
|
877 |
%description demos |
878 |
Demonstration applications with Qt%{qtmajor}. |
879 |
|
880 |
%files demos |
881 |
%{_qt4_bindir}/qtdemo |
882 |
%{_qt4_demosdir} |
883 |
%{_qt4_plugindir}/designer/libarthurplugin.so |
884 |
|
885 |
#------------------------------------------------------------------------------ |
886 |
|
887 |
%package examples |
888 |
Summary: Example programs made with Qt%{qtmajor} |
889 |
Group: Books/Computer books |
890 |
|
891 |
%description examples |
892 |
Example programs made with Qt%{qtmajor}. |
893 |
|
894 |
%files examples |
895 |
%{_qt4_examplesdir} |
896 |
%{_qt4_plugindir}/designer/libcontainerextension.so |
897 |
%{_qt4_plugindir}/designer/libcustomwidgetplugin.so |
898 |
%{_qt4_plugindir}/designer/libtaskmenuextension.so |
899 |
%{_qt4_plugindir}/designer/libworldtimeclockplugin.so |
900 |
|
901 |
%endif |
902 |
|
903 |
#------------------------------------------------------------------------------ |
904 |
|
905 |
%package linguist |
906 |
Summary: Qt%{qtmajor} linguist translation utility |
907 |
Group: Books/Computer books |
908 |
Requires(post): desktop-file-utils |
909 |
Requires(postun): desktop-file-utils |
910 |
|
911 |
%description linguist |
912 |
Qt Linguist provides easy translation of Qt GUIs to different. |
913 |
languages. |
914 |
|
915 |
%files linguist |
916 |
%{_qt4_bindir}/lingu* |
917 |
%{_qt4_bindir}/lconvert* |
918 |
%{_datadir}/applications/*linguist*.desktop |
919 |
%if %with docs |
920 |
%{_qt4_translationdir}/linguist* |
921 |
%endif |
922 |
|
923 |
#------------------------------------------------------------------------------ |
924 |
|
925 |
%package assistant |
926 |
Summary: Qt%{qtmajor} Assistant Doc Utility |
927 |
Group: Books/Computer books |
928 |
Requires: qt4-database-plugin-sqlite |
929 |
Suggests: qt4-doc |
930 |
Requires(post): desktop-file-utils |
931 |
Requires(postun): desktop-file-utils |
932 |
|
933 |
%description assistant |
934 |
Qt Assistant provides a documentation Browser. |
935 |
|
936 |
%files assistant |
937 |
%{_qt4_bindir}/assistant* |
938 |
%{_qt4_bindir}/qcollectiongen* |
939 |
%{_qt4_bindir}/qhelpconv* |
940 |
%{_qt4_bindir}/qhelpgen* |
941 |
%{_datadir}/applications/*assistant*.desktop |
942 |
%if %with docs |
943 |
%{_qt4_translationdir}/assistant* |
944 |
%endif |
945 |
|
946 |
#------------------------------------------------------------------------------ |
947 |
|
948 |
%if ! %without odbc |
949 |
|
950 |
%package database-plugin-odbc |
951 |
Summary: Qt%{qtmajor} Database ODBC Database Plugin |
952 |
Group: Databases |
953 |
BuildRequires: unixODBC-devel |
954 |
|
955 |
%description database-plugin-odbc |
956 |
The QODBC driver allows you to connect to an ODBC (Open Database |
957 |
Connectivity) driver manager and access the available data sources. |
958 |
|
959 |
%files database-plugin-odbc |
960 |
%{_qt4_plugindir}/sqldrivers/libqsqlodbc.so |
961 |
|
962 |
%endif |
963 |
|
964 |
#------------------------------------------------------------------------------ |
965 |
|
966 |
%if ! %without mysql |
967 |
|
968 |
%package database-plugin-mysql |
969 |
Summary: Qt%{qtmajor} MYSQL Database Plugin |
970 |
Group: Databases |
971 |
BuildRequires: mysql-devel |
972 |
|
973 |
%description database-plugin-mysql |
974 |
Database plugin for mysql Qt support. |
975 |
|
976 |
%files database-plugin-mysql |
977 |
%{_qt4_plugindir}/sqldrivers/libqsqlmysql.so |
978 |
|
979 |
%endif |
980 |
|
981 |
#------------------------------------------------------------------------------ |
982 |
|
983 |
%if ! %without sqlite |
984 |
|
985 |
%package database-plugin-sqlite |
986 |
Summary: Qt%{qtmajor} SQLITE Database Plugin |
987 |
Group: Databases |
988 |
BuildRequires: sqlite3-devel |
989 |
|
990 |
%description database-plugin-sqlite |
991 |
The Qt SQLite plugin makes it possible to access SQLite databases. |
992 |
|
993 |
%files database-plugin-sqlite |
994 |
%{_qt4_plugindir}/sqldrivers/libqsqlite.so |
995 |
%endif |
996 |
|
997 |
#------------------------------------------------------------------------------ |
998 |
|
999 |
%if ! %without tds |
1000 |
|
1001 |
%package database-plugin-tds |
1002 |
Summary: Qt%{qtmajor} FREETDS Database Plugin |
1003 |
Group: Databases |
1004 |
BuildRequires: freetds-devel |
1005 |
|
1006 |
%description database-plugin-tds |
1007 |
Database plugin for freetds Qt support. |
1008 |
|
1009 |
%files database-plugin-tds |
1010 |
%{_qt4_plugindir}/sqldrivers/libqsqltds.so |
1011 |
|
1012 |
%endif |
1013 |
|
1014 |
#------------------------------------------------------------------------------ |
1015 |
|
1016 |
%if %with ibase |
1017 |
|
1018 |
%package database-plugin-ibase |
1019 |
Summary: Qt%{qtmajor} Interbase Database Plugin |
1020 |
Group: Databases |
1021 |
BuildRequires: firebird-devel |
1022 |
|
1023 |
%description database-plugin-ibase |
1024 |
Database plugin for interbase Qt support. |
1025 |
|
1026 |
%files database-plugin-ibase |
1027 |
%{_qt4_plugindir}/sqldrivers/libqsqlibase.so |
1028 |
|
1029 |
%endif |
1030 |
|
1031 |
#------------------------------------------------------------------------------ |
1032 |
|
1033 |
%if ! %without postgres |
1034 |
|
1035 |
%package database-plugin-pgsql |
1036 |
Summary: Qt%{qtmajor} PGSQL Database Plugin |
1037 |
Group: Databases |
1038 |
BuildRequires: postgresql-devel |
1039 |
BuildRequires: libpq-devel |
1040 |
|
1041 |
%description database-plugin-pgsql |
1042 |
Database plugin for pgsql Qt support. |
1043 |
|
1044 |
%files database-plugin-pgsql |
1045 |
%{_qt4_plugindir}/sqldrivers/libqsqlpsql.so |
1046 |
|
1047 |
%endif |
1048 |
|
1049 |
#------------------------------------------------------------------------------ |
1050 |
|
1051 |
%package graphicssystems-plugin |
1052 |
Summary: Qt%{qtmajor} Graphicssystems Plugins |
1053 |
Group: Development/KDE and Qt |
1054 |
|
1055 |
%description graphicssystems-plugin |
1056 |
Graphicssystems plugins for Qt%{qtmajor}. |
1057 |
|
1058 |
%files graphicssystems-plugin |
1059 |
%{_qt4_plugindir}/graphicssystems/ |
1060 |
|
1061 |
#------------------------------------------------------------------------------ |
1062 |
|
1063 |
%package accessibility-plugin |
1064 |
Summary: Qt%{qtmajor} Accessibility Plugins |
1065 |
Group: Development/KDE and Qt |
1066 |
|
1067 |
%description accessibility-plugin |
1068 |
Acessibility plugins for Qt%{qtmajor}. |
1069 |
|
1070 |
%files accessibility-plugin |
1071 |
%{_qt4_plugindir}/accessible/ |
1072 |
|
1073 |
#------------------------------------------------------------------------------ |
1074 |
|
1075 |
%package designer |
1076 |
Summary: %{name} Visual Design Tool |
1077 |
Group: Development/KDE and Qt |
1078 |
Requires: %{libqtdevel} = %{epoch}:%{version} |
1079 |
|
1080 |
%description designer |
1081 |
The Qt Designer is a visual design tool that makes designing and |
1082 |
implementing user interfaces a lot easier. |
1083 |
|
1084 |
%files designer |
1085 |
%{_qt4_bindir}/design* |
1086 |
%{_datadir}/applications/*designer*.desktop |
1087 |
%if %with docs |
1088 |
%{_qt4_translationdir}/designer_* |
1089 |
%endif |
1090 |
|
1091 |
#------------------------------------------------------------------------------ |
1092 |
|
1093 |
|
1094 |
%package designer-plugin-webkit |
1095 |
Summary: designer plugin for webkit Qt%{qtmajor} support |
1096 |
Group: Development/KDE and Qt |
1097 |
|
1098 |
%description designer-plugin-webkit |
1099 |
designer plugin for webkit Qt%{qtmajor} support. |
1100 |
|
1101 |
%files designer-plugin-webkit |
1102 |
%{_qt4_plugindir}/designer/libqwebview.so |
1103 |
|
1104 |
|
1105 |
#------------------------------------------------------------------------------ |
1106 |
|
1107 |
%package designer-plugin-qt3support |
1108 |
Summary: designer plugin for qt3support Qt%{qtmajor} support |
1109 |
Group: Development/KDE and Qt |
1110 |
|
1111 |
%description designer-plugin-qt3support |
1112 |
designer plugin for qt3support Qt%{qtmajor} support. |
1113 |
|
1114 |
%files designer-plugin-qt3support |
1115 |
%{_qt4_plugindir}/designer/libqt3supportwidgets.so |
1116 |
|
1117 |
#------------------------------------------------------------------------------ |
1118 |
|
1119 |
%if %{with qvfb} |
1120 |
|
1121 |
%package qvfb |
1122 |
Summary: Qt%{qtmajor} Embedded Virtual Terminal |
1123 |
Group: Development/KDE and Qt |
1124 |
|
1125 |
%description qvfb |
1126 |
Embedded Virtual Terminal for Qt%{qtmajor}. |
1127 |
|
1128 |
%files qvfb |
1129 |
%{_qt4_bindir}/qvf* |
1130 |
%if %with docs |
1131 |
%{_qt4_translationdir}/qvfb* |
1132 |
%endif |
1133 |
|
1134 |
%endif |
1135 |
|
1136 |
#------------------------------------------------------------------------------ |
1137 |
|
1138 |
|
1139 |
%package qdoc3 |
1140 |
Summary: Qt%{qtmajor} Documentation Generator |
1141 |
Group: Development/KDE and Qt |
1142 |
|
1143 |
%description qdoc3 |
1144 |
Documentation Generator for Qt%{qtmajor}. |
1145 |
|
1146 |
%files qdoc3 |
1147 |
%{_qt4_bindir}/qdoc3 |
1148 |
|
1149 |
#------------------------------------------------------------------------------ |
1150 |
|
1151 |
%prep |
1152 |
%if %with_kde_qt |
1153 |
%setup -q -n qt |
1154 |
%else |
1155 |
%setup -q -n %{qttarballdir} |
1156 |
%endif |
1157 |
|
1158 |
%apply_patches |
1159 |
|
1160 |
# Unlike Fedora, we don't modify the installed mkspecs to contain our flags, |
1161 |
# which would have the side effect that plain 'qmake' would use them as well |
1162 |
# (i.e. even when not building an rpm), which is not really wanted. Our |
1163 |
# packages are built with %%qmake_qt4 (qt4.macros) which already overrides the |
1164 |
# flags, so altering qmake default configuration for that is unnecessary. |
1165 |
# Since the Qt configure script doesn't support defining custom flags, we |
1166 |
# still have to temporarily override the flags below - they are restored in |
1167 |
# %%install. -Anssi |
1168 |
cp mkspecs/linux-g++/qmake.conf mkspecs/linux-g++/qmake.conf.upstream |
1169 |
cat >> mkspecs/linux-g++/qmake.conf <<EOF |
1170 |
QMAKE_CFLAGS = %{optflags} |
1171 |
QMAKE_CXXFLAGS = %{optflags} |
1172 |
QMAKE_LFLAGS = %{ldflags} |
1173 |
QMAKE_STRIP = |
1174 |
# Note that setting QMAKE_LFLAGS_PLUGIN here would do no good, as it would |
1175 |
# just get appended to $QMAKE_LFLAGS instead of replacing it. |
1176 |
EOF |
1177 |
|
1178 |
# set correct lib path (from fedora) |
1179 |
if [ "%{_lib}" == "lib64" ] ; then |
1180 |
sed -i -e "s,/usr/lib /lib,/usr/%{_lib} /%{_lib},g" config.tests/{unix,x11}/*.test |
1181 |
sed -i -e "s,/lib /usr/lib,/%{_lib} /usr/%{_lib},g" config.tests/{unix,x11}/*.test |
1182 |
fi |
1183 |
|
1184 |
%build |
1185 |
export QTDIR=`/bin/pwd` |
1186 |
export PATH=$QTDIR/bin:$PATH |
1187 |
|
1188 |
# Don't include headers or link with /usr/X11R6/{include,lib} |
1189 |
perl -pi -e 's@/X11R6/@/@' mkspecs/linux-*/qmake.conf mkspecs/common/linux.conf |
1190 |
|
1191 |
#------------------------------------------------------------------------------ |
1192 |
|
1193 |
./configure \ |
1194 |
-confirm-license \ |
1195 |
-opensource \ |
1196 |
-optimized-qmake \ |
1197 |
-prefix %{_qt4_prefix} \ |
1198 |
-bindir %{_qt4_bindir} \ |
1199 |
-datadir %{_qt4_datadir} \ |
1200 |
-demosdir %{_qt4_demosdir} \ |
1201 |
-docdir %{_qt4_docdir} \ |
1202 |
-examplesdir %{_qt4_examplesdir} \ |
1203 |
-headerdir %{_qt4_includedir} \ |
1204 |
-importdir %{_qt4_importdir} \ |
1205 |
-libdir %{_qt4_libdir} \ |
1206 |
-plugindir %{_qt4_plugindir} \ |
1207 |
-sysconfdir %{_qt4_sysconfigdir} \ |
1208 |
-translationdir %{_qt4_translationdir} \ |
1209 |
%if %with debug |
1210 |
-debug \ |
1211 |
-verbose \ |
1212 |
%else |
1213 |
-release \ |
1214 |
-silent \ |
1215 |
%endif |
1216 |
-shared \ |
1217 |
-no-separate-debug-info \ |
1218 |
-no-rpath \ |
1219 |
-no-pch \ |
1220 |
-reduce-relocations \ |
1221 |
-openssl-linked \ |
1222 |
-dbus-linked \ |
1223 |
%if %{with qvfb} |
1224 |
-qvfb \ |
1225 |
%endif |
1226 |
-webkit \ |
1227 |
-gtkstyle \ |
1228 |
-xmlpatterns \ |
1229 |
-opengl desktop \ |
1230 |
-platform linux-g++ \ |
1231 |
-sm \ |
1232 |
-stl \ |
1233 |
-system-libmng \ |
1234 |
-system-libpng \ |
1235 |
-system-libjpeg \ |
1236 |
-system-libtiff \ |
1237 |
-system-zlib \ |
1238 |
-xinput \ |
1239 |
-xcursor \ |
1240 |
-xfixes \ |
1241 |
-xinerama \ |
1242 |
-xshape \ |
1243 |
-xrandr \ |
1244 |
-xkb \ |
1245 |
-glib \ |
1246 |
%if ! %{with_cups} |
1247 |
-no-cups \ |
1248 |
%endif |
1249 |
%if ! %with local_phonon_package |
1250 |
-no-phonon \ |
1251 |
-no-phonon-backend \ |
1252 |
%endif |
1253 |
%if ! %without postgres |
1254 |
-plugin-sql-psql \ |
1255 |
%endif |
1256 |
%if ! %without mysql |
1257 |
-plugin-sql-mysql \ |
1258 |
%else |
1259 |
-no-sql-mysql \ |
1260 |
%endif |
1261 |
%if %with ibase |
1262 |
-plugin-sql-ibase \ |
1263 |
%else |
1264 |
-no-sql-ibase \ |
1265 |
%endif |
1266 |
%if ! %without sqlite |
1267 |
-plugin-sql-sqlite \ |
1268 |
-system-sqlite \ |
1269 |
-no-sql-sqlite2 \ |
1270 |
%else |
1271 |
-no-sql-sqlite \ |
1272 |
-no-sql-sqlite2 \ |
1273 |
%endif |
1274 |
%if ! %without odbc |
1275 |
-plugin-sql-odbc \ |
1276 |
%else |
1277 |
-no-sql-odbc \ |
1278 |
%endif |
1279 |
%if %without docs |
1280 |
-nomake docs \ |
1281 |
-nomake demos \ |
1282 |
-nomake examples |
1283 |
%endif |
1284 |
|
1285 |
%make |
1286 |
|
1287 |
%if %{with qvfb} |
1288 |
make -C tools/qvfb |
1289 |
%endif |
1290 |
|
1291 |
%install |
1292 |
install -d %{buildroot}/%{_bindir} |
1293 |
install -d %{buildroot}/%{_qt4_docdir} |
1294 |
install -d %{buildroot}/%{_sysconfdir} |
1295 |
install -d %{buildroot}/%{_sysconfdir}/profile.d |
1296 |
|
1297 |
# recreate .qm files |
1298 |
|
1299 |
LD_LIBRARY_PATH=`pwd`/lib bin/lrelease translations/*.ts |
1300 |
|
1301 |
make INSTALL_ROOT=%{buildroot} install |
1302 |
|
1303 |
%if 0%{?private} |
1304 |
# install private headers |
1305 |
# using rsync -R as easy way to preserve relative path names |
1306 |
# we're cheating and using %%_prefix (/usr) directly here |
1307 |
rsync -aR \ |
1308 |
include/Qt{Core,Declarative,Gui,Script}/private \ |
1309 |
src/{corelib,declarative,gui,script}/*/*_p.h \ |
1310 |
%{buildroot}%{_prefix}/ |
1311 |
%endif |
1312 |
|
1313 |
%if %{with qvfb} |
1314 |
# Install qvfb |
1315 |
%make -C tools/qvfb INSTALL_ROOT=%{buildroot} install |
1316 |
%else |
1317 |
rm -f %{buildroot}%{_qt4_translationdir}/qvfb*.qm |
1318 |
%endif |
1319 |
|
1320 |
# Add .desktop files for designer,linguist & assistant |
1321 |
mkdir -p %{buildroot}/%{_datadir}/applications |
1322 |
install -m 644 %SOURCE3 %{buildroot}/%{_datadir}/applications |
1323 |
install -m 644 %SOURCE4 %{buildroot}/%{_datadir}/applications |
1324 |
install -m 644 %SOURCE5 %{buildroot}/%{_datadir}/applications |
1325 |
|
1326 |
# Fix binary path according to %_qt4_datadir |
1327 |
sed -i 's#/usr/lib/qt4/bin/#/%{_qt4_bindir}/#' %{buildroot}/%{_datadir}/applications/mageia-designer-qt4.desktop |
1328 |
sed -i 's#/usr/lib/qt4/bin/#/%{_qt4_bindir}/#' %{buildroot}/%{_datadir}/applications/mageia-assistant-qt4.desktop |
1329 |
sed -i 's#/usr/lib/qt4/bin/#/%{_qt4_bindir}/#' %{buildroot}/%{_datadir}/applications/mageia-linguist-qt4.desktop |
1330 |
|
1331 |
# Fix mkspec link |
1332 |
pushd %{buildroot}/%{_qt4_datadir}/mkspecs |
1333 |
rm -f default |
1334 |
ln -sf %{_qt4_datadir}/mkspecs/linux-g++ default |
1335 |
popd |
1336 |
|
1337 |
# Restore qmake.conf to the upstream version which was backed up in %%prep |
1338 |
mv %{buildroot}%{_qt4_datadir}/mkspecs/linux-g++/qmake.conf.upstream %{buildroot}%{_qt4_datadir}/mkspecs/linux-g++/qmake.conf |
1339 |
|
1340 |
# Fix all buildroot paths |
1341 |
find %{buildroot}/%{_qt4_libdir} -type f -name '*prl' -exec perl -pi -e "s, -L%{_builddir}/\S+,,g" {} \; |
1342 |
find %{buildroot}/%{_qt4_libdir} -type f -name '*prl' -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \; |
1343 |
find %{buildroot}/%{_qt4_libdir} -type f -name '*la' -print -exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \; |
1344 |
find %{buildroot}/%{_qt4_libdir} -type f -name '*la' -print -exec sed -i -e "s, -L%{_builddir}/?\S+,,g" -e "s,-L../JavaScriptCore/release,,g" -e "s,-ljscore,,g" {} \; |
1345 |
find %{buildroot}/%{_qt4_datadir}/mkspecs -name 'qmake.conf' -exec chmod -x -- {} \; |
1346 |
find %{buildroot}/%{_qt4_datadir}/mkspecs -name Info.plist.app -exec chmod -x -- {} \; |
1347 |
|
1348 |
# Don't reference builddir neither /usr(/X11R6)?/ in .pc files. |
1349 |
perl -pi -e '\ |
1350 |
s@-L/usr/X11R6/%{_lib} @@g;\ |
1351 |
s@-I/usr/X11R6/include @@g;\ |
1352 |
s@-L/%{_builddir}\S+@@g'\ |
1353 |
`find . -name \*.pc` |
1354 |
|
1355 |
# Install rpm macros |
1356 |
mkdir -p %{buildroot}/%{_sysconfdir}/rpm/macros.d |
1357 |
install -m 0644 %SOURCE2 %{buildroot}/%{_sysconfdir}/rpm/macros.d |
1358 |
|
1359 |
# Profiles |
1360 |
cat > %{buildroot}/%{_sysconfdir}/profile.d/60qt4.sh << EOF |
1361 |
#!/bin/bash |
1362 |
|
1363 |
# Qt4 is the main Qt on system |
1364 |
export QTDIR=%{_qt4_datadir} |
1365 |
|
1366 |
[ -z \$QT4DOCDIR ] && export QT4DOCDIR=%{_qt4_docdir} |
1367 |
|
1368 |
if [ -z \$(echo \$PATH | grep "%{_qt4_bindir}") ]; then |
1369 |
PATH=\${PATH}:%{_qt4_bindir} |
1370 |
export PATH |
1371 |
fi |
1372 |
|
1373 |
EOF |
1374 |
|
1375 |
# Remove webkit files since we're using qtwebkit2.2 as standalone |
1376 |
rm -rf %{buildroot}/%{_qt4_includedir}/QtWebKit/ |
1377 |
rm -rf %{buildroot}/%{_qt4_includedir}/Qt/qgraphicswebview.h |
1378 |
rm -rf %{buildroot}/%{_qt4_includedir}/Qt/qweb*.h |
1379 |
rm -rf %{buildroot}/%{_qt4_libdir}/pkgconfig/QtWebKit.pc |
1380 |
rm -rf %{buildroot}/%{_qt4_libdir}/libQtWebKit.* |
1381 |
rm -rf %{buildroot}/%{_qt4_includedir}/Qt/QtWebKit |
1382 |
rm -rf %{buildroot}/%{_qt4_datadir}/mkspecs/modules/qt_webkit_version.pri |
1383 |
rm -rf %{buildroot}/%{_qt4_importdir}/QtWebKit/ |
1384 |
rm -rf %{buildroot}/%{_qt4_libdir}/qt4/tests/qt4/tst_* |
1385 |
|
1386 |
# .la files, die, die, die. |
1387 |
rm -f %{buildroot}%{_libdir}/lib*.la |