1 | #
|
---|
2 | # http://svn.netlabs.org/qt4
|
---|
3 | #
|
---|
4 | # If you are a packager, please read HowToDistribute.txt for general
|
---|
5 | # instructions.
|
---|
6 | #
|
---|
7 |
|
---|
8 | Name: qt
|
---|
9 | Vendor: netlabs.org
|
---|
10 | License: LGPLv2 with exceptions or GPLv3 with exceptions
|
---|
11 | Url: http://www.qtsoftware.com/
|
---|
12 |
|
---|
13 | %define ver_major 4
|
---|
14 | %define ver_minor 7
|
---|
15 | %define ver_patch 3
|
---|
16 |
|
---|
17 | %define os2_release 0
|
---|
18 |
|
---|
19 | %define rpm_release 1
|
---|
20 |
|
---|
21 | %define svn_revision 1070
|
---|
22 |
|
---|
23 | %define descr_brief Qt is a software toolkit for developing applications.
|
---|
24 |
|
---|
25 | %define pkg_wps_base QT4
|
---|
26 | %define pkg_wps_folder_id <%{pkg_wps_base}_FOLDER>
|
---|
27 | %define pkg_wps_folder_create %{pkg_wps_base}_FOLDER:WPFolder|Qt 4|<WP_DESKTOP>
|
---|
28 | %define pkg_wps_view_txt() EXENAME=e.exe;PROGTYPE=PROG_PM;PARAMETERS=((%*))
|
---|
29 |
|
---|
30 | %define pkg_docdir %{_docdir}/%{qtM}
|
---|
31 |
|
---|
32 | %if 0%{?os2_release}
|
---|
33 | Version: %{ver_major}.%{ver_minor}.%{ver_patch}.%{os2_release}
|
---|
34 | %else
|
---|
35 | Version: %{ver_major}.%{ver_minor}.%{ver_patch}
|
---|
36 | %endif
|
---|
37 | Release: %{rpm_release}
|
---|
38 |
|
---|
39 | Source: %{name}-%{version}.zip
|
---|
40 |
|
---|
41 | #BuildRequires: gnumake (when available)
|
---|
42 | BuildRequires: libc-devel
|
---|
43 | BuildRequires: gcc
|
---|
44 | BuildRequires: gcc-wlink
|
---|
45 | BuildRequires: gcc-wrc
|
---|
46 | #BuildRequires: cups-devel (when available)
|
---|
47 | BuildRequires: openssl-devel
|
---|
48 | BuildRequires: pthread-devel
|
---|
49 | #BuildRequires: mysql-devel (when available)
|
---|
50 | #BuildRequires: psql-devel (when available)
|
---|
51 |
|
---|
52 | # @todo add wrc support to Qt!
|
---|
53 |
|
---|
54 | #------------------------------------------------------------------------------
|
---|
55 | # commons
|
---|
56 | #------------------------------------------------------------------------------
|
---|
57 |
|
---|
58 | # process command line arguments
|
---|
59 | %if "%{?QT_SOURCE_TREE}" == ""
|
---|
60 | %define QT_SOURCE_TREE .
|
---|
61 | %endif
|
---|
62 |
|
---|
63 | # @todo temporary
|
---|
64 | %define skip_prep_export 1
|
---|
65 |
|
---|
66 | # installation paths
|
---|
67 | %define qt_prefix %{_libdir}/%{qtM}
|
---|
68 | %define qt_libdir %{_libdir}
|
---|
69 | %define qt_headerdir %{_includedir}/qt4
|
---|
70 | %define qt_bindir %{qt_prefix}/bin
|
---|
71 | %define qt_plugindir %{qt_prefix}/plugins
|
---|
72 | %define qt_importdir %{qt_prefix}/imports
|
---|
73 | %define qt_demosdir %{qt_prefix}/demos
|
---|
74 | %define qt_examplesdir %{qt_prefix}/examples
|
---|
75 | %define qt_datadir %{_datadir}/%{qtM}
|
---|
76 | %define qt_docdir %{qt_datadir}/doc
|
---|
77 | %define qt_translationdir %{qt_datadir}/translations
|
---|
78 | %define qt_sysconfdir %{_sysconfdir}/xdg
|
---|
79 |
|
---|
80 | %define qtM %{name}%{ver_major}
|
---|
81 |
|
---|
82 | # disable lxlite compression (Qt EXEs and DLLs are already compressed)
|
---|
83 | %define __os_install_post %{nil}
|
---|
84 |
|
---|
85 | #------------------------------------------------------------------------------
|
---|
86 | # main package
|
---|
87 | #------------------------------------------------------------------------------
|
---|
88 |
|
---|
89 | Summary: Qt runtime
|
---|
90 | Group: System Environment/Libraries
|
---|
91 |
|
---|
92 | Provides: %{qtM} = %{version}-%{release}
|
---|
93 |
|
---|
94 | %description
|
---|
95 | %{descr_brief}
|
---|
96 |
|
---|
97 | This package contains runtime Qt libraries for console applications, including
|
---|
98 | core, network and XML modules.
|
---|
99 |
|
---|
100 | %files
|
---|
101 | %defattr(-,root,root,-)
|
---|
102 | %docdir %{pkg_docdir}/
|
---|
103 | %doc %{pkg_docdir}/*
|
---|
104 | %if "%{qt_prefix}" != "%{_prefix}"
|
---|
105 | %dir %{qt_prefix}/
|
---|
106 | %endif
|
---|
107 | %if "%{qt_libdir}" != "%{_libdir}"
|
---|
108 | %dir %{qt_libdir}/
|
---|
109 | %endif
|
---|
110 | %if "%{qt_bindir}" != "%{_bindir}"
|
---|
111 | %dir %{qt_bindir}/
|
---|
112 | %endif
|
---|
113 | %dir %{qt_plugindir}
|
---|
114 | %{qt_plugindir}/bearer/
|
---|
115 | %{qt_plugindir}/codecs/
|
---|
116 | %dir %{qt_plugindir}/sqldrivers/
|
---|
117 | %{qt_plugindir}/sqldrivers/*
|
---|
118 | %dir %{qt_datadir}/
|
---|
119 | %dir %{qt_docdir}/
|
---|
120 | %dir %{qt_docdir}/qch/
|
---|
121 | %dir %{qt_translationdir}/
|
---|
122 | %{qt_translationdir}/qt_??.qm
|
---|
123 | %{qt_translationdir}/qt_??_??.qm
|
---|
124 | %if "%{qt_sysconfdir}" != "%{_sysconfdir}" && "%{qt_sysconfdir}" != "%{_sysconfdir}/xdg"
|
---|
125 | %dir %{qt_sysconfdir}/
|
---|
126 | %endif
|
---|
127 | %{qt_libdir}/QtCore%{ver_major}.dll
|
---|
128 | %{qt_libdir}/QtNet%{ver_major}.dll
|
---|
129 | %{qt_libdir}/QtScri%{ver_major}.dll
|
---|
130 | %{qt_libdir}/QtSql%{ver_major}.dll
|
---|
131 | %{qt_libdir}/QtTest%{ver_major}.dll
|
---|
132 | %{qt_libdir}/QtXml%{ver_major}.dll
|
---|
133 | %{qt_libdir}/QtXmlP%{ver_major}.dll
|
---|
134 |
|
---|
135 | %pre
|
---|
136 |
|
---|
137 | %warpin_conflicts_begin
|
---|
138 | netlabs.org\Qt4\Runtime
|
---|
139 | %warpin_conflicts_end
|
---|
140 |
|
---|
141 | #------------------------------------------------------------------------------
|
---|
142 | %package pm
|
---|
143 | #------------------------------------------------------------------------------
|
---|
144 |
|
---|
145 | Summary: Qt GUI runtime
|
---|
146 | Group: System Environment/Libraries
|
---|
147 |
|
---|
148 | Requires: %{name} = %{version}-%{release}
|
---|
149 |
|
---|
150 | Provides: %{qtM}-pm = %{version}-%{release}
|
---|
151 |
|
---|
152 | %description pm
|
---|
153 | %{descr_brief}
|
---|
154 |
|
---|
155 | This package contains runtime Qt libraries for Presentation Manager GUI
|
---|
156 | applications.
|
---|
157 |
|
---|
158 | %files pm
|
---|
159 | %defattr(-,root,root,-)
|
---|
160 | %dir %{qt_plugindir}/designer
|
---|
161 | %{qt_plugindir}/designer/qdeclv.dll
|
---|
162 | %{qt_plugindir}/accessible/
|
---|
163 | %{qt_plugindir}/graphicssystems/
|
---|
164 | %{qt_plugindir}/iconengines/
|
---|
165 | %{qt_plugindir}/imageformats/
|
---|
166 | %{qt_plugindir}/qmltooling/
|
---|
167 | %{qt_translationdir}/qt_help_??.qm
|
---|
168 | %{qt_translationdir}/qt_help_??_??.qm
|
---|
169 | %dir %{qt_importdir}/
|
---|
170 | %{qt_importdir}/Qt/
|
---|
171 | %{qt_libdir}/QtCLuc%{ver_major}.dll
|
---|
172 | %{qt_libdir}/QtDecl%{ver_major}.dll
|
---|
173 | %{qt_libdir}/QtGui%{ver_major}.dll
|
---|
174 | %{qt_libdir}/QtHelp%{ver_major}.dll
|
---|
175 | %{qt_libdir}/QtScTl%{ver_major}.dll
|
---|
176 | %{qt_libdir}/QtSvg%{ver_major}.dll
|
---|
177 |
|
---|
178 | #------------------------------------------------------------------------------
|
---|
179 | %package webkit
|
---|
180 | #------------------------------------------------------------------------------
|
---|
181 |
|
---|
182 | Summary: Qt WebKit runtime
|
---|
183 | Group: System Environment/Libraries
|
---|
184 |
|
---|
185 | Requires: %{name}-pm = %{version}-%{release}
|
---|
186 |
|
---|
187 | Provides: %{qtM}-webkit = %{version}-%{release}
|
---|
188 |
|
---|
189 | %description webkit
|
---|
190 | %{descr_brief}
|
---|
191 |
|
---|
192 | This package contains runtime Qt libraries for applications based on the WebKit
|
---|
193 | technology.
|
---|
194 |
|
---|
195 | %files webkit
|
---|
196 | %defattr(-,root,root,-)
|
---|
197 | %{qt_plugindir}/designer/qwebv.dll
|
---|
198 | %{qt_importdir}/QtWebKit/
|
---|
199 | %{qt_libdir}/QtWebK%{ver_major}.dll
|
---|
200 |
|
---|
201 | #------------------------------------------------------------------------------
|
---|
202 | %package demos
|
---|
203 | #------------------------------------------------------------------------------
|
---|
204 | Summary: Qt demos and examples
|
---|
205 | Group: Documentation
|
---|
206 |
|
---|
207 | Requires: %{name}-pm = %{version}-%{release}
|
---|
208 | Requires: %{name}-webkit = %{version}-%{release}
|
---|
209 |
|
---|
210 | Provides: %{qtM}-demos = %{version}-%{release}
|
---|
211 |
|
---|
212 | %description demos
|
---|
213 | %{descr_brief}
|
---|
214 |
|
---|
215 | This package contains the demo and example Qt applications and their
|
---|
216 | source code. These applications demonstrate the possibilities of the
|
---|
217 | Qt toolkit.
|
---|
218 |
|
---|
219 | %files demos
|
---|
220 | %defattr(-,root,root,-)
|
---|
221 | %{qt_plugindir}/designer/
|
---|
222 | %exclude %{qt_plugindir}/designer/qdeclv.dll
|
---|
223 | %exclude %{qt_plugindir}/designer/qwebv.dll
|
---|
224 | %{qt_bindir}/qtdemo.exe
|
---|
225 | %{qt_examplesdir}
|
---|
226 | %{qt_demosdir}
|
---|
227 |
|
---|
228 | %post demos
|
---|
229 | %wps_object_create_begin -n %{name}-demos
|
---|
230 | %{pkg_wps_folder_create}
|
---|
231 | %{pkg_wps_base}_DEMO:WPProgram|Examples and Demos|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/qtdemo.exe))
|
---|
232 | %wps_object_create_end
|
---|
233 |
|
---|
234 | %postun demos
|
---|
235 | %wps_object_delete_all -n %{name}-demos
|
---|
236 |
|
---|
237 | #------------------------------------------------------------------------------
|
---|
238 | %package qmlviewer
|
---|
239 | #------------------------------------------------------------------------------
|
---|
240 | Summary: Qt QML Viewer tool
|
---|
241 | Group: Development/Tools
|
---|
242 |
|
---|
243 | Requires: %{name}-pm = %{version}-%{release}
|
---|
244 |
|
---|
245 | Provides: %{qtM}-qmlviewer = %{version}-%{release}
|
---|
246 |
|
---|
247 | %description qmlviewer
|
---|
248 | %{descr_brief}
|
---|
249 |
|
---|
250 | This package contains the Qt QML Viewer tool that allows to view QML files.
|
---|
251 |
|
---|
252 | %files qmlviewer
|
---|
253 | %defattr(-,root,root,-)
|
---|
254 | %{qt_bindir}/qmlviewer.exe
|
---|
255 |
|
---|
256 | %post qmlviewer
|
---|
257 | %wps_object_create_begin -n %{name}-qmlviewer
|
---|
258 | %{pkg_wps_folder_create}
|
---|
259 | %{pkg_wps_base}_QMLVIEWER:WPProgram|QML Viewer|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/qmlview.exe))
|
---|
260 | %wps_object_create_end
|
---|
261 |
|
---|
262 | %postun qmlviewer
|
---|
263 | %wps_object_delete_all -n %{name}-qmlviewer
|
---|
264 |
|
---|
265 | #------------------------------------------------------------------------------
|
---|
266 | %package linguist
|
---|
267 | #------------------------------------------------------------------------------
|
---|
268 | Summary: Qt Linguist tool
|
---|
269 | Group: Development/Tools
|
---|
270 |
|
---|
271 | Requires: %{name}-pm = %{version}-%{release}
|
---|
272 |
|
---|
273 | Provides: %{qtM}-linguist = %{version}-%{release}
|
---|
274 |
|
---|
275 | %description linguist
|
---|
276 | %{descr_brief}
|
---|
277 |
|
---|
278 | This package contains the Qt Linguist tool used to edit the translation files
|
---|
279 | for Qt applications.
|
---|
280 |
|
---|
281 | %files linguist
|
---|
282 | %defattr(-,root,root,-)
|
---|
283 | %{qt_translationdir}/linguist_??.qm
|
---|
284 | %{qt_translationdir}/linguist_??_??.qm
|
---|
285 | %dir %{qt_datadir}/phrasebooks/
|
---|
286 | %{qt_datadir}/phrasebooks/*
|
---|
287 | %{qt_bindir}/linguist.exe
|
---|
288 |
|
---|
289 | %post linguist
|
---|
290 | %wps_object_create_begin -n %{name}-linguist
|
---|
291 | %{wps_qt4_folder}
|
---|
292 | %{pkg_wps_base}_LINGUIST:WPProgram|Linguist|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/linguist.exe))
|
---|
293 | %wps_object_create_end
|
---|
294 |
|
---|
295 | %postun linguist
|
---|
296 | %wps_object_delete_all -n %{name}-linguist
|
---|
297 |
|
---|
298 | #------------------------------------------------------------------------------
|
---|
299 | %package assistant
|
---|
300 | #------------------------------------------------------------------------------
|
---|
301 | Summary: Qt Assistant tool
|
---|
302 | Group: Development/Tools
|
---|
303 |
|
---|
304 | Requires: %{name}-pm = %{version}-%{release}
|
---|
305 |
|
---|
306 | Provides: %{qtM}-assistant = %{version}-%{release}
|
---|
307 |
|
---|
308 | %description assistant
|
---|
309 | %{descr_brief}
|
---|
310 |
|
---|
311 | This package contains the Qt Assistant tool used to read and search the Qt
|
---|
312 | Toolkit reference documentation.
|
---|
313 |
|
---|
314 | %files assistant
|
---|
315 | %defattr(-,root,root,-)
|
---|
316 | %{qt_translationdir}/assistant_??.qm
|
---|
317 | %{qt_translationdir}/assistant_??_??.qm
|
---|
318 | %{qt_bindir}/assistant.exe
|
---|
319 |
|
---|
320 | %post assistant
|
---|
321 | %wps_object_create_begin -n %{name}-assistant
|
---|
322 | %{wps_qt4_folder}
|
---|
323 | %{pkg_wps_base}_ASSISTANT:WPProgram|Assistant|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/assistant.exe))
|
---|
324 | %wps_object_create_end
|
---|
325 |
|
---|
326 | %postun assistant
|
---|
327 | %wps_object_delete_all -n %{name}-assistant
|
---|
328 |
|
---|
329 | #------------------------------------------------------------------------------
|
---|
330 | %package designer
|
---|
331 | #------------------------------------------------------------------------------
|
---|
332 | Summary: Qt Designer tool
|
---|
333 | Group: Development/Tools
|
---|
334 |
|
---|
335 | Requires: %{name}-pm = %{version}-%{release}
|
---|
336 |
|
---|
337 | Provides: %{qtM}-designer = %{version}-%{release}
|
---|
338 |
|
---|
339 | %description designer
|
---|
340 | %{descr_brief}
|
---|
341 |
|
---|
342 | This package contains the Qt Designer tool used to for designing and building
|
---|
343 | graphical user interfaces from Qt components.
|
---|
344 |
|
---|
345 | %files designer
|
---|
346 | %defattr(-,root,root,-)
|
---|
347 | %{qt_translationdir}/designer_??.qm
|
---|
348 | %{qt_translationdir}/designer_??_??.qm
|
---|
349 | %{qt_libdir}/QtDsgC%{ver_major}.dll
|
---|
350 | %{qt_libdir}/QtDsgn%{ver_major}.dll
|
---|
351 | %{qt_bindir}/designer.exe
|
---|
352 |
|
---|
353 | %post designer
|
---|
354 | %wps_object_create_begin -n %{name}-designer
|
---|
355 | %{wps_qt4_folder}
|
---|
356 | %{pkg_wps_base}_DESIGNER:WPProgram|Designer|%{pkg_wps_folder_id}|EXENAME=((%{qt_bindir}/designer.exe))
|
---|
357 | %wps_object_create_end
|
---|
358 |
|
---|
359 | %postun designer
|
---|
360 | %wps_object_delete_all -n %{name}-designer
|
---|
361 |
|
---|
362 | #------------------------------------------------------------------------------
|
---|
363 | %package devel-tools
|
---|
364 | #------------------------------------------------------------------------------
|
---|
365 | Summary: Qt development tools
|
---|
366 | Group: Development/Tools
|
---|
367 |
|
---|
368 | Requires: %{name}-pm = %{version}-%{release}
|
---|
369 |
|
---|
370 | Provides: %{qtM}-devel-tools = %{version}-%{release}
|
---|
371 |
|
---|
372 | %description devel-tools
|
---|
373 | %{descr_brief}
|
---|
374 |
|
---|
375 | This package contains tools used to assist in Qt development, including
|
---|
376 | PixelTool, Help Converter and other applications.
|
---|
377 |
|
---|
378 | %files devel-tools
|
---|
379 | %defattr(-,root,root,-)
|
---|
380 | %{qt_bindir}/lconvert.exe
|
---|
381 | %{qt_bindir}/pixeltool.exe
|
---|
382 | %{qt_bindir}/qcollectiongenerator.exe
|
---|
383 | %{qt_bindir}/qdoc3.exe
|
---|
384 | %{qt_bindir}/qhelpconverter.exe
|
---|
385 | %{qt_bindir}/qhelpgenerator.exe
|
---|
386 | %{qt_bindir}/qt3to4.exe
|
---|
387 | %{qt_bindir}/qttracereplay.exe
|
---|
388 | %{qt_bindir}/xmlpatterns.exe
|
---|
389 | %{qt_bindir}/xmlpatternsvalidator.exe
|
---|
390 |
|
---|
391 | #------------------------------------------------------------------------------
|
---|
392 | %package doc
|
---|
393 | #------------------------------------------------------------------------------
|
---|
394 | Summary: API documentation for Qt
|
---|
395 | Group: Documentation
|
---|
396 | BuildArch: noarch
|
---|
397 |
|
---|
398 | Requires: %{name}-assistant = %{version}-%{release}
|
---|
399 |
|
---|
400 | Provides: %{qtM}-doc = %{version}-%{release}
|
---|
401 |
|
---|
402 | %description doc
|
---|
403 | %{descr_brief}
|
---|
404 |
|
---|
405 | This package contains the Qt Toolkit reference documentation that provides the
|
---|
406 | detailed description of all Qt classes and tools.
|
---|
407 |
|
---|
408 | %files doc
|
---|
409 | %defattr(-,root,root,-)
|
---|
410 | %{qt_docdir}/qch/*.qch
|
---|
411 |
|
---|
412 | #------------------------------------------------------------------------------
|
---|
413 | %package devel
|
---|
414 | #------------------------------------------------------------------------------
|
---|
415 | Summary: Development files for Qt
|
---|
416 | Group: Development/Libraries
|
---|
417 |
|
---|
418 | Requires: %{name}-pm = %{version}-%{release}
|
---|
419 |
|
---|
420 | Provides: %{qtM}-devel = %{version}-%{release}
|
---|
421 |
|
---|
422 | %description devel
|
---|
423 | %{descr_brief}
|
---|
424 |
|
---|
425 | This package contains the headers, libraries and tools necessary to develop
|
---|
426 | applications using the Qt toolkit.
|
---|
427 |
|
---|
428 | %files devel
|
---|
429 | %defattr(-,root,root,-)
|
---|
430 | %if "%{qt_headerdir}" != "%{_includedir}"
|
---|
431 | %dir %{qt_headerdir}/
|
---|
432 | %endif
|
---|
433 | %{qt_headerdir}/*
|
---|
434 | %exclude %{qt_headerdir}/Qt/QtWebKit
|
---|
435 | %exclude %{qt_headerdir}/Qt/qgraphicswebview.h
|
---|
436 | %exclude %{qt_headerdir}/Qt/qweb*.h
|
---|
437 | %exclude %{qt_headerdir}/QtWebKit/
|
---|
438 | %{qt_libdir}/*.lib
|
---|
439 | %{qt_libdir}/*.prl
|
---|
440 | %exclude %{qt_libdir}/QtWebKit%{ver_major}.lib
|
---|
441 | %exclude %{qt_libdir}/QtWebKit.prl
|
---|
442 | %dir %{qt_datadir}/mkspecs/
|
---|
443 | %{qt_datadir}/mkspecs/*
|
---|
444 | %exclude %{qt_datadir}/mkspecs/modules/qt_webkit_version.pri
|
---|
445 | %{qt_datadir}/q3porting.xml
|
---|
446 | %{qt_bindir}/lrelease.exe
|
---|
447 | %{qt_bindir}/lupdate.exe
|
---|
448 | %{qt_bindir}/moc.exe
|
---|
449 | %if "%{qt_bindir}" != "%{_bindir}"
|
---|
450 | %{_bindir}/qmake.exe
|
---|
451 | %endif
|
---|
452 | %{qt_bindir}/qmake.exe
|
---|
453 | %{qt_bindir}/rcc.exe
|
---|
454 | %{qt_bindir}/uic.exe
|
---|
455 |
|
---|
456 | #------------------------------------------------------------------------------
|
---|
457 | %package webkit-devel
|
---|
458 | #------------------------------------------------------------------------------
|
---|
459 | Summary: Development files for Qt WebKit
|
---|
460 | Group: Development/Libraries
|
---|
461 |
|
---|
462 | Requires: %{name}-webkit = %{version}-%{release}
|
---|
463 | Requires: %{name}-devel = %{version}-%{release}
|
---|
464 |
|
---|
465 | Provides: %{qtM}-webkit-devel = %{version}-%{release}
|
---|
466 |
|
---|
467 | %description webkit-devel
|
---|
468 | %{descr_brief}
|
---|
469 |
|
---|
470 | This package contains the headers, libraries and tools necessary to
|
---|
471 | develop applications using the Qt WebKit technology.
|
---|
472 |
|
---|
473 | %files webkit-devel
|
---|
474 | %defattr(-,root,root,-)
|
---|
475 | %{qt_headerdir}/Qt/QtWebKit
|
---|
476 | %{qt_headerdir}/Qt/qgraphicswebview.h
|
---|
477 | %{qt_headerdir}/Qt/qweb*.h
|
---|
478 | %{qt_headerdir}/QtWebKit/
|
---|
479 | %{qt_libdir}/QtWebKit%{ver_major}.lib
|
---|
480 | %{qt_libdir}/QtWebKit.prl
|
---|
481 | %{qt_datadir}/mkspecs/modules/qt_webkit_version.pri
|
---|
482 |
|
---|
483 | #------------------------------------------------------------------------------
|
---|
484 | %package devel-all
|
---|
485 | #------------------------------------------------------------------------------
|
---|
486 | Summary: Qt development kit
|
---|
487 | Group: Development/Libraries
|
---|
488 |
|
---|
489 | Requires: %{name}-demos = %{version}-%{release}
|
---|
490 | Requires: %{name}-qmlviewer = %{version}-%{release}
|
---|
491 | Requires: %{name}-linguist = %{version}-%{release}
|
---|
492 | Requires: %{name}-assistant = %{version}-%{release}
|
---|
493 | Requires: %{name}-designer = %{version}-%{release}
|
---|
494 | Requires: %{name}-devel-tools = %{version}-%{release}
|
---|
495 | Requires: %{name}-doc = %{version}-%{release}
|
---|
496 | Requires: %{name}-devel = %{version}-%{release}
|
---|
497 | Requires: %{name}-webkit-devel = %{version}-%{release}
|
---|
498 |
|
---|
499 | Provides: %{qtM}-devel-all = %{version}-%{release}
|
---|
500 |
|
---|
501 | %description devel-all
|
---|
502 | %{descr_brief}
|
---|
503 |
|
---|
504 | This meta package installs all individual packages containing various Qt
|
---|
505 | development components, including the Qt headers and libraries, the Linguist,
|
---|
506 | Assistant and designer Designer applications, development tools, example
|
---|
507 | Qt applications and the API documentation.
|
---|
508 |
|
---|
509 | #------------------------------------------------------------------------------
|
---|
510 | %prep
|
---|
511 | #------------------------------------------------------------------------------
|
---|
512 |
|
---|
513 | %if !0%{?skip_prep}
|
---|
514 |
|
---|
515 | %if "%{?QT_SOURCE_TREE}" != ""
|
---|
516 | %if !0%{?skip_prep_export}
|
---|
517 | # get clean source tree from SVN
|
---|
518 | %setup -n "%{name}-%{version}" -Tc
|
---|
519 | svn export -r %{svn_revision} %{QT_SOURCE_TREE} .
|
---|
520 | %else
|
---|
521 | # use passed source tree as is (shadow build)
|
---|
522 | %setup -n "%{name}-%{version}" -Tc%{?skip_prep_clean:D}
|
---|
523 | %endif
|
---|
524 | %else
|
---|
525 | # use source zip
|
---|
526 | %setup -q
|
---|
527 | %endif
|
---|
528 |
|
---|
529 | %endif # if !0%{?skip_prep}
|
---|
530 |
|
---|
531 | #------------------------------------------------------------------------------
|
---|
532 | %build
|
---|
533 | #------------------------------------------------------------------------------
|
---|
534 |
|
---|
535 | %if !0%{?skip_build}
|
---|
536 |
|
---|
537 | die() { echo "ERROR: $@"; exit 1; }
|
---|
538 | check_var() { eval "[ -n \"\$$1\" ] || die \"$1 variable is not set.\""; }
|
---|
539 |
|
---|
540 | # Qt source tree (DOS format)
|
---|
541 | QT_SOURCE_TREE_D=$(echo "%{QT_SOURCE_TREE}" | tr '/' '\\')
|
---|
542 |
|
---|
543 | # Sanity checks (laking these would turn off features that must be ON)
|
---|
544 | check_var "CUPS_INCLUDEPATH"
|
---|
545 | check_var "MYSQL_INCLUDEPATH"
|
---|
546 | check_var "MYSQL_LIBS"
|
---|
547 | check_var "PSQL_INCLUDEPATH"
|
---|
548 | check_var "PSQL_LIBS"
|
---|
549 |
|
---|
550 | [ -z "$MAKE_JOBS" ] && MAKE_JOBS=1
|
---|
551 |
|
---|
552 | # Qt links to some OS/2 DLLs directly (w/o import libs)
|
---|
553 | export LIBRARY_PATH=%{os2_boot_drive}/OS2/DLL\;%{os2_boot_drive}/MPTN/DLL\;$LIBRARY_PATH
|
---|
554 |
|
---|
555 | # CMD.EXE is required by the build process for now
|
---|
556 | export MAKESHELL=%{os2_boot_drive}\\OS2\\CMD.EXE
|
---|
557 |
|
---|
558 | # Qt doesn't understand /@unixroot in library paths, replace it with $(UNIXROOT)
|
---|
559 | library_paths=$(echo \
|
---|
560 | --official-build-quiet %{svn_revision} \
|
---|
561 | -prefix "%{qt_prefix}" \
|
---|
562 | -datadir "%{qt_datadir}" \
|
---|
563 | -libdir "%{qt_libdir}" \
|
---|
564 | -headerdir "%{qt_headerdir}" \
|
---|
565 | -bindir "%{qt_bindir}" \
|
---|
566 | -plugindir "%{qt_plugindir}" \
|
---|
567 | -importdir "%{qt_importdir}" \
|
---|
568 | -demosdir "%{qt_demosdir}" \
|
---|
569 | -examplesdir "%{qt_examplesdir}" \
|
---|
570 | -docdir "%{qt_docdir}" \
|
---|
571 | -translationdir "%{qt_translationdir}" \
|
---|
572 | -sysconfdir "%{qt_sysconfdir}" \
|
---|
573 | | sed -re 's,/@unixroot,$(UNIXROOT),g')
|
---|
574 |
|
---|
575 | BUILDDIR_D=$(echo "%{_builddir}/%{buildsubdir}" | sed -re 's,/,\\,g')
|
---|
576 |
|
---|
577 | # make sure the right DLLs are used by the build (and in particular by qdoc
|
---|
578 | # in make docs) in case if there is another Qt version installed
|
---|
579 | export PATH="$BUILDDIR_D\\bin\;$PATH"
|
---|
580 | export BEGINLIBPATH="$BUILDDIR_D\\bin\;$BEGINLIBPATH"
|
---|
581 |
|
---|
582 | # temporarily reset UNIXROOT so that install targets will get only Qt prefixes
|
---|
583 | # w/o the UNIXROOT directory chain (if it's not at root)
|
---|
584 | UNIXROOT_OLD="$UNIXROOT"
|
---|
585 | export UNIXROOT=/.
|
---|
586 |
|
---|
587 | cmd /c $QT_SOURCE_TREE_D\\configure.cmd $library_paths
|
---|
588 |
|
---|
589 | make -j$MAKE_JOBS
|
---|
590 |
|
---|
591 | # resture UNIXROOT
|
---|
592 | export UNIXROOT="$UNIXROOT_OLD"
|
---|
593 |
|
---|
594 | %if !0%{?skip_build_docs}
|
---|
595 | # qdoc needs the qsqlite plugin but nothing is installed to target locations
|
---|
596 | # yet, so generate qt.conf to override paths
|
---|
597 | echo \
|
---|
598 | "[Paths]
|
---|
599 | Prefix = ..
|
---|
600 | Settings = \$(ETC)/xdg
|
---|
601 | Examples = examples
|
---|
602 | Demos = demos" \
|
---|
603 | > "%{_builddir}/%{buildsubdir}/bin/qt.conf"
|
---|
604 | make docs -j$MAKE_JOBS
|
---|
605 | rm -f "%{_builddir}/%{buildsubdir}/bin/qt.conf"
|
---|
606 | %endif
|
---|
607 |
|
---|
608 | %endif # if !0%{?skip_build}
|
---|
609 |
|
---|
610 | #------------------------------------------------------------------------------
|
---|
611 | %install
|
---|
612 | #------------------------------------------------------------------------------
|
---|
613 |
|
---|
614 | %if !0%{?skip_install}
|
---|
615 |
|
---|
616 | rm -rf %{buildroot}
|
---|
617 |
|
---|
618 | # Qt links to some OS/2 DLLs directly (w/o import libs)
|
---|
619 | export LIBRARY_PATH=%{os2_boot_drive}/OS2/DLL\;%{os2_boot_drive}/MPTN/DLL\;$LIBRARY_PATH
|
---|
620 |
|
---|
621 | # CMD.EXE is required by the build process for now
|
---|
622 | export MAKESHELL=%{os2_boot_drive}\\OS2\\CMD.EXE
|
---|
623 |
|
---|
624 | # exclude install_htmldocs from install targets
|
---|
625 | make install_subtargets install_qchdocs install_qmake install_mkspecs \
|
---|
626 | INSTALL_ROOT=$(echo "%{buildroot}/@unixroot" | sed -re 's,/,\\,g')
|
---|
627 |
|
---|
628 | # copy READMEs (make install doesn't do that)
|
---|
629 | mkdir -p "%{buildroot}/%{pkg_docdir}/"
|
---|
630 | cp -dp \
|
---|
631 | "%{QT_SOURCE_TREE}/LICENSE.*" \
|
---|
632 | "%{QT_SOURCE_TREE}/LGPL_EXCEPTION.txt" \
|
---|
633 | "%{QT_SOURCE_TREE}/README" \
|
---|
634 | "%{QT_SOURCE_TREE}/changes-%{ver_major}.%{ver_minor}.%{ver_patch}" \
|
---|
635 | "%{QT_SOURCE_TREE}/README.OS2" \
|
---|
636 | "%{QT_SOURCE_TREE}/CHANGES.OS2" \
|
---|
637 | "%{buildroot}/%{pkg_docdir}/"
|
---|
638 |
|
---|
639 | # remove *.dll from bin (they will live in %{qt_libdir})
|
---|
640 | rm -f "%{buildroot}/%{qt_bindir}/*.dll" "%{buildroot}/%{qt_bindir}/*.sym"
|
---|
641 |
|
---|
642 | # remove translations we don't need
|
---|
643 | rm -f "%{buildroot}/%{qt_translationdir}/qtconfig_??.qm" \
|
---|
644 | "%{buildroot}/%{qt_translationdir}/qtconfig_??_??.qm"
|
---|
645 | rm -f "%{buildroot}/%{qt_translationdir}/qvfb_??.qm" \
|
---|
646 | "%{buildroot}/%{qt_translationdir}/qvfb_??_??.qm"
|
---|
647 |
|
---|
648 | # move qmake.exe to %{_bindir} (to have it in PATH) and symlink back to qt4/bin
|
---|
649 | %if "%{qt_bindir}" != "%{_bindir}"
|
---|
650 | mkdir -p "%{buildroot}/%{_bindir}/"
|
---|
651 | mv "%{buildroot}/%{qt_bindir}/qmake.exe" "%{buildroot}/%{_bindir}/"
|
---|
652 | ln -s "%{_bindir}/qmake.exe" "%{buildroot}/%{qt_bindir}/qmake.exe"
|
---|
653 | %endif
|
---|
654 |
|
---|
655 | # @todo temporarily delete .sym files (until we generate -debuginfo packages)
|
---|
656 | find "%{buildroot}/" -type f -name "*.sym" -exec rm -f "{}" \;
|
---|
657 |
|
---|
658 | %endif # if !0%{?skip_install}
|
---|
659 |
|
---|
660 | #------------------------------------------------------------------------------
|
---|
661 | %clean
|
---|
662 | #------------------------------------------------------------------------------
|
---|
663 |
|
---|
664 | #rm -rf %{buildroot}
|
---|
665 |
|
---|
666 | #------------------------------------------------------------------------------
|
---|
667 | %changelog
|
---|