/[packages]/cauldron/qt4/current/SPECS/qt4.spec
ViewVC logotype

Contents of /cauldron/qt4/current/SPECS/qt4.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 857115 - (show annotations) (download)
Fri Jul 24 23:19:40 2015 UTC (6 years, 6 months ago) by cjw
File size: 42777 byte(s)
- rebuild for icu 55

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

  ViewVC Help
Powered by ViewVC 1.1.28