]> git.pld-linux.org Git - packages/qt4.git/blob - qt4.spec
- for Qt4
[packages/qt4.git] / qt4.spec
1 #
2 # TODO:
3 #       - QtUiTools to subpackage
4 #         (headers in %{_includedir}/qt4/QtUiTools, but (static-only) lib is not installed)
5 #       - qt4-designer-libs vs QtDesigner-{devel,static} naming inconsistency
6 #       - better descriptions
7 #       - more cleanups
8 #       - check if translations are available
9 #
10 # Conditional build:
11 %bcond_with     nas             # enable NAS audio support
12 %bcond_without  static_libs     # build static libraries
13 %bcond_without  cups            # disable CUPS support
14 %bcond_without  mysql           # don't build MySQL plugin
15 %bcond_without  odbc            # don't build unixODBC plugin
16 %bcond_without  pgsql           # don't build PostgreSQL plugin
17 %bcond_without  designer        # don't build designer (it takes long)
18 %bcond_without  sqlite3         # don't build SQLite3 plugin
19 %bcond_without  sqlite          # don't build SQLite2 plugin
20 %bcond_without  ibase           # don't build ibase (InterBase/Firebird) plugin
21 %bcond_without  pch             # disable pch in qmake
22 %bcond_with     sse             # use SSE instructions in gui/painting module
23 %bcond_with     dont_enable     # blocks translations, they are not yet available
24
25 %undefine       with_dont_enable
26
27 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
28 %undefine       with_ibase
29 %endif
30
31 %ifarch pentium3 pentium4 %{x8664}
32 %define         with_sse        1
33 %endif
34
35 %define         _withsql        1
36 %{!?with_sqlite3:%{!?with_sqlite:%{!?with_ibase:%{!?with_mysql:%{!?with_pgsql:%{!?with_odbc:%undefine _withsql}}}}}}
37
38 Summary:        The Qt GUI application framework
39 Summary(es):    Biblioteca para ejecutar aplicaciones GUI Qt
40 Summary(pl):    Biblioteka Qt do tworzenia GUI
41 Summary(pt_BR): Estrutura para rodar aplicações GUI Qt
42 Name:           qt4
43 Version:        4.1.0
44 Release:        1.9
45 License:        GPL/QPL
46 Group:          X11/Libraries
47 Source0:        ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-%{version}.tar.gz
48 # Source0-md5:  0e3982a54f56b6420d3062b20524410a
49 Source2:        qtconfig.desktop
50 Source3:        designer.desktop
51 Source4:        assistant.desktop
52 Source5:        linguist.desktop
53 Patch0:         %{name}-tools.patch
54 Patch1:         %{name}-alpha.patch
55 Patch2:         %{name}-buildsystem.patch
56 Patch3:         %{name}-locale.patch
57 Patch4:         %{name}-debug-and-release.patch
58 Patch5:         %{name}-sse.patch
59 Patch6:         %{name}-antialias.patch
60 Patch7:         %{name}-support-cflags-with-commas.patch
61 Patch8:         %{name}-build-lib-static.patch
62 %if %{with dont_enable}
63 Patch9:         qt-FHS.patch
64 # no tutorials exist
65 Patch10:        qt-disable_tutorials.patch
66 %endif
67 URL:            http://www.trolltech.com/products/qt/
68 %{?with_ibase:BuildRequires:    Firebird-devel}
69 BuildRequires:  OpenGL-GLU-devel
70 %{?with_sqlite3:BuildRequires:  sqlite3-devel}
71 # incompatible with bison
72 %{?with_cups:BuildRequires:     cups-devel}
73 BuildRequires:  fontconfig-devel
74 BuildRequires:  freetype-devel >= 1:2.0.0
75 %{?with_pch:BuildRequires:      gcc >= 5:3.4.0}
76 BuildRequires:  libjpeg-devel
77 BuildRequires:  libmng-devel >= 1.0.0
78 BuildRequires:  libpng-devel >= 2:1.0.8
79 BuildRequires:  libstdc++-devel
80 BuildRequires:  libungif-devel
81 %{?with_mysql:BuildRequires:    mysql-devel}
82 %{?with_nas:BuildRequires:      nas-devel}
83 %{?with_pgsql:BuildRequires:    postgresql-backend-devel}
84 %{?with_pgsql:BuildRequires:    postgresql-devel}
85 BuildRequires:  rpmbuild(macros) >= 1.213
86 BuildRequires:  sed >= 4.0
87 %{?with_sqlite:BuildRequires:   sqlite-devel}
88 %{?with_odbc:BuildRequires:     unixODBC-devel}
89 BuildRequires:  xorg-lib-libSM-devel
90 BuildRequires:  xorg-lib-libXcursor-devel
91 BuildRequires:  xorg-lib-libXext-devel
92 BuildRequires:  xorg-lib-libXi-devel
93 BuildRequires:  xorg-lib-libXinerama-devel
94 BuildRequires:  xorg-lib-libXrandr-devel
95 BuildRequires:  xorg-lib-libXrender-devel
96 BuildRequires:  zlib-devel
97 Obsoletes:      qt-extensions
98 Obsoletes:      qt-utils
99 Conflicts:      kdelibs <= 8:3.2-0.030602.1
100 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
101
102 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
103 %define         _noautostrip    '.*_debug\\.so*'
104
105 %define         specflags       -fno-strict-aliasing
106
107 %description
108 Qt is a complete C++ application development framework, which includes
109 a class library and tools for multiplatform development and
110 internationalization. Using Qt, a single source code tree can build
111 applications that run natively on different platforms (Windows,
112 Unix/Linux, Mac OS X, embedded Linux).
113
114 Qt has a rich set of standard widgets, and lets you write custom
115 controls. It encapsulates four different platform-specific APIs, and
116 the APIs for file-handling, networking, process-handling, threading,
117 database access, etc. Qt now also has Motif migration oraz Netscape
118 LiveConnect plugin.
119
120 %description -l es
121 Contiene las bibliotecas compartidas necesarias para ejecutar
122 aplicaciones Qt, bien como los archivos README.
123
124 %description -l pl
125 Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w
126 jêzyku C++, w którego sk³ad wchodzi biblioteka z klasami oraz
127 wieloplatformowymi narzêdziami do rozwijania i t³umaczenia aplikacji.
128 Z pomoc± Qt jeden kod ¼ród³owy mo¿e byæ natywnie uruchamiany na
129 ró¿nych platformach (Windows, Unix/Linux, Mac OS X).
130
131 Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale
132 pozwala równie¿ na pisanie w³asnych elementów. £±czy w sposób
133 niewidoczny dla programisty interfejsy programowania ró¿nych systemów,
134 tworz±c w ten sposób jeden interfejs dla obs³ugi plików, sieci,
135 procesów, w±tków, baz danych itp. Umo¿liwia tak¿e ³atwe przenoszenie
136 na Qt aplikacji korzystaj±cych z Motif oraz pisanie wtyczek z
137 wykorzystaniem Netscape LiveConnect.
138
139 %package -n QtCore
140 Summary:        Core classes used by other modules
141 Summary(pl):    Podstawowe klasy u¿ywane przez inne modu³y
142 Group:          X11/Libraries
143
144 %description -n QtCore
145 Core classes used by other modules.
146
147 %description -n QtCore -l pl
148 Podstawowe klasy u¿ywane przez inne modu³y.
149
150 %package -n QtCore-devel
151 Summary:        Core classes used by other modules - development files
152 Summary(pl):    Podstawowe klasy u¿ywane przez inne modu³y - pliki programistyczne
153 Group:          X11/Development/Libraries
154 Requires:       QtCore = %{version}-%{release}
155 Requires:       libstdc++-devel
156 Requires:       zlib-devel
157
158 %description -n QtCore-devel
159 Core classes used by other modules - development files.
160
161 %description -n QtCore-devel -l pl
162 Podstawowe klasy u¿ywane przez inne modu³y - pliki programistyczne.
163
164 %package -n QtCore-static
165 Summary:        Core classes used by other modules - static libraries
166 Summary(pl):    Podstawowe klasy u¿ywane przez inne modu³y - biblioteki statyczne
167 Group:          X11/Development/Libraries
168 Requires:       QtCore-devel = %{version}-%{release}
169
170 %description -n QtCore-static
171 Core classes used by other modules - static libraries.
172
173 %description -n QtCore-static -l pl
174 Podstawowe klasy u¿ywane przez inne modu³y - biblioteki statyczne.
175
176 %package -n QtGui
177 Summary:        Graphical User Interface components
178 Summary(pl):    Komponenty graficznego interfejsu u¿ytkownika
179 Group:          X11/Libraries
180 Requires:       QtCore = %{version}-%{release}
181 # two following because of some plugins
182 Requires:       Qt3Support = %{version}-%{release}
183 Requires:       QtSql = %{version}-%{release}
184
185 %description -n QtGui
186 Graphical User Interface components.
187
188 %description -n QtGui -l pl
189 Komponenty graficznego interfejsu u¿ytkownika.
190
191 %package -n QtGui-devel
192 Summary:        Graphical User Interface components - development files
193 Summary(pl):    Komponenty graficznego interfejsu u¿ytkownika - pliki programistyczne
194 Group:          X11/Development/Libraries
195 Requires:       QtCore-devel = %{version}-%{release}
196 Requires:       QtGui = %{version}-%{release}
197 Requires:       fontconfig-devel
198 Requires:       freetype-devel >= 1:2.0.0
199 Requires:       libpng-devel >= 2:1.0.8
200 Requires:       xorg-lib-libSM-devel
201 Requires:       xorg-lib-libXcursor-devel
202 Requires:       xorg-lib-libXext-devel
203 Requires:       xorg-lib-libXi-devel
204 Requires:       xorg-lib-libXinerama-devel
205 Requires:       xorg-lib-libXrandr-devel
206 Requires:       xorg-lib-libXrender-devel
207
208 %description -n QtGui-devel
209 Graphical User Interface components - development files.
210
211 %description -n QtGui-devel -l pl
212 Komponenty graficznego interfejsu u¿ytkownika - pliki programistyczne.
213
214 %package -n QtGui-static
215 Summary:        Graphical User Interface components - static libraries
216 Summary(pl):    Komponenty graficznego interfejsu u¿ytkownika - biblioteki statyczne
217 Group:          X11/Development/Libraries
218 Requires:       QtGui-devel = %{version}-%{release}
219
220 %description -n QtGui-static
221 Graphical User Interface components - static libraries.
222
223 %description -n QtGui-static -l pl
224 Komponenty graficznego interfejsu u¿ytkownika - biblioteki statyczne.
225
226 %package -n QtNetwork
227 Summary:        Classes for network programming
228 Summary(pl):    Klasy do programowania sieciowego
229 Group:          X11/Libraries
230 Requires:       QtCore = %{version}-%{release}
231
232 %description -n QtNetwork
233 Classes for network programming.
234
235 %description -n QtNetwork -l pl
236 Klasy do programowania sieciowego.
237
238 %package -n QtNetwork-devel
239 Summary:        Classes for network programming - development files
240 Summary(pl):    Klasy do programowania sieciowego - pliki programistyczne
241 Group:          X11/Development/Libraries
242 Requires:       QtCore-devel = %{version}-%{release}
243 Requires:       QtNetwork = %{version}-%{release}
244
245 %description -n QtNetwork-devel
246 Classes for network programming - development files.
247
248 %description -n QtNetwork-devel -l pl
249 Klasy do programowania sieciowego - pliki programistyczne.
250
251 %package -n QtNetwork-static
252 Summary:        Classes for network programming - static libraries
253 Summary(pl):    Klasy do programowania sieciowego - biblioteki statyczne
254 Group:          X11/Development/Libraries
255 Requires:       QtNetwork-devel = %{version}-%{release}
256
257 %description -n QtNetwork-static
258 Classes for network programming - static libraries.
259
260 %description -n QtNetwork-static -l pl
261 Klasy do programowania sieciowego - biblioteki statyczne.
262
263 %package -n QtOpenGL
264 Summary:        OpenGL support classes
265 Summary(pl):    Klasy wspomagaj±ce OpenGL
266 Group:          X11/Libraries
267 Requires:       QtCore = %{version}-%{release}
268
269 %description -n QtOpenGL
270 OpenGL support classes.
271
272 %description -n QtOpenGL -l pl
273 Klasy wspomagaj±ce OpenGL.
274
275 %package -n QtOpenGL-devel
276 Summary:        OpenGL support classes - development files
277 Summary(pl):    Klasy wspomagaj±ce OpenGL - pliki programistyczne
278 Group:          X11/Development/Libraries
279 Requires:       OpenGL-GLU-devel
280 Requires:       QtCore-devel = %{version}-%{release}
281 Requires:       QtOpenGL = %{version}-%{release}
282
283 %description -n QtOpenGL-devel
284 OpenGL support classes - development files.
285
286 %description -n QtOpenGL-devel -l pl
287 Klasy wspomagaj±ce OpenGL - pliki programistyczne.
288
289 %package -n QtOpenGL-static
290 Summary:        OpenGL support classes - static libraries
291 Summary(pl):    Klasy wspomagaj±ce OpenGL - biblioteki statyczne
292 Group:          X11/Development/Libraries
293 Requires:       QtOpenGL-devel = %{version}-%{release}
294
295 %description -n QtOpenGL-static
296 OpenGL support classes - static libraries.
297
298 %description -n QtOpenGL-devel -l pl
299 Klasy wspomagaj±ce OpenGL - biblioteki statyczne.
300
301 %package -n QtSql
302 Summary:        Classes for database integration using SQL
303 Summary(pl):    Klasy do integracji z bazami danych przy u¿yciu SQL
304 Group:          X11/Libraries
305 Requires:       QtCore = %{version}-%{release}
306
307 %description -n QtSql
308 Classes for database integration using SQL.
309
310 %description -n QtSql -l pl
311 Klasy do integracji z bazami danych przy u¿yciu SQL.
312
313 %package -n QtSql-devel
314 Summary:        Classes for database integration using SQL - development files
315 Summary(pl):    Klasy do integracji z bazami danych przy u¿yciu SQL - pliki programistyczne
316 Group:          X11/Development/Libraries
317 Requires:       QtCore-devel = %{version}-%{release}
318 Requires:       QtSql = %{version}-%{release}
319
320 %description -n QtSql-devel
321 Classes for database integration using SQL - development files.
322
323 %description -n QtSql-devel -l pl
324 Klasy do integracji z bazami danych przy u¿yciu SQL - pliki
325 programistyczne.
326
327 %package -n QtSql-static
328 Summary:        Classes for database integration using SQL - static libraries
329 Summary(pl):    Klasy do integracji z bazami danych przy u¿yciu SQL - biblioteki statyczne
330 Group:          X11/Development/Libraries
331 Requires:       QtSql-devel = %{version}-%{release}
332
333 %description -n QtSql-static
334 Classes for database integration using SQL - static libraries.
335
336 %description -n QtSql-static -l pl
337 Klasy do integracji z bazami danych przy u¿yciu SQL - biblioteki
338 statyczne. programistyczne.
339
340 %package -n QtSql-ibase
341 Summary:        Database plugin for InterBase/Firebird Qt support
342 Summary(pl):    Wtyczka InterBase/Firebird do Qt
343 Summary(pt_BR): Plugin de suporte a InterBase/Firebird para Qt
344 Group:          X11/Libraries
345 Requires:       QtSql = %{version}-%{release}
346 Provides:       QtSql-backend = %{version}-%{release}
347
348 %description -n QtSql-ibase
349 This package contains a plugin for accessing Interbase/Firebird
350 database via the QSql classes.
351
352 %description -n QtSql-ibase -l pl
353 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
354 danych Interbase/Firebird poprzez klasy QSql.
355
356 %description -n QtSql-ibase -l pt_BR
357 Plugin de suporte a InterBase/Firebird para Qt.
358
359 %package -n QtSql-mysql
360 Summary:        Database plugin for MySQL Qt support
361 Summary(pl):    Wtyczka MySQL do Qt
362 Summary(pt_BR): Plugin de suporte a MySQL para Qt
363 Group:          X11/Libraries
364 Requires:       QtSql = %{version}-%{release}
365 Provides:       QtSql-backend = %{version}-%{release}
366
367 %description -n QtSql-mysql
368 This package contains a plugin for accessing MySQL database via the
369 QSql classes.
370
371 %description -n QtSql-mysql -l pl
372 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
373 danych MySQL poprzez klasy QSql.
374
375 %description -n QtSql-mysql -l pt_BR
376 Plugin de suporte a MySQL para Qt.
377
378 %package -n QtSql-odbc
379 Summary:        Database plugin for ODBC Qt support
380 Summary(pl):    Wtyczka ODBC do Qt
381 Summary(pt_BR): Plugin de suporte a ODBC para Qt
382 Group:          X11/Libraries
383 Requires:       QtSql = %{version}-%{release}
384 Provides:       QtSql-backend = %{version}-%{release}
385
386 %description -n QtSql-odbc
387 This package contains a plugin for accessing unixODBC services via the
388 QSql classes.
389
390 %description -n QtSql-odbc -l pl
391 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z us³ug
392 unixODBC poprzez klasy QSql.
393
394 %description -n QtSql-odbc -l pt_BR
395 Plugin de suporte a ODBC para Qt.
396
397 %package -n QtSql-pgsql
398 Summary:        Database plugin for PostgreSQL Qt support
399 Summary(pl):    Wtyczka PostgreSQL do Qt
400 Summary(pt_BR): Plugin de suporte a PostgreSQL para Qt
401 Group:          X11/Libraries
402 Requires:       QtSql = %{version}-%{release}
403 Provides:       QtSql-backend = %{version}-%{release}
404
405 %description -n QtSql-pgsql
406 This package contains a plugin for accessing PostgreSQL database via
407 the QSql classes.
408
409 %description -n QtSql-pgsql -l pl
410 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
411 danych PostgreSQL poprzez klasy QSql.
412
413 %description -n QtSql-pgsql -l es
414 Plugin de suporte a PostgreSQL para Qt.
415
416 %package -n QtSql-sqlite
417 Summary:        Database plugin for SQLite 2.x Qt support
418 Summary(pl):    Wtyczka SQLite 2.x do Qt
419 Summary(pt_BR): Plugin de suporte a SQLite 2.x para Qt
420 Group:          X11/Libraries
421 Requires:       QtSql = %{version}-%{release}
422 Provides:       QtSql-backend = %{version}-%{release}
423
424 %description -n QtSql-sqlite
425 This package contains a plugin for using the SQLite 2.x library (which
426 allows to acces virtually any SQL database) via the QSql classes.
427
428 %description -n QtSql-sqlite -l pl
429 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
430 danych SQLite 2.x poprzez klasy QSql.
431
432 %description -n QtSql-sqlite -l pt_BR
433 Plugin de suporte a SQLite 2.x para Qt.
434
435 %package -n QtSql-sqlite3
436 Summary:        Database plugin for SQLite3 Qt support
437 Summary(pl):    Wtyczka SQLite3 do Qt
438 Summary(pt_BR): Plugin de suporte a SQLite3 para Qt
439 Group:          X11/Libraries
440 Requires:       QtSql = %{version}-%{release}
441 Provides:       QtSql-backend = %{version}-%{release}
442
443 %description -n QtSql-sqlite3
444 This package contains a plugin for using the SQLite3 library (which
445 allows to acces virtually any SQL database) via the QSql classes.
446
447 %description -n QtSql-sqlite3 -l pl
448 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
449 danych SQLite3 poprzez klasy QSql.
450
451 %description -n QtSql-sqlite3 -l pt_BR
452 Plugin de suporte a SQLite3 para Qt.
453
454 %package -n QtSvg
455 Summary:        SVG support
456 Summary(pl):    Wsparcie dla SVG
457 Group:          X11/Libraries
458 Requires:       QtCore = %{version}-%{release}
459
460 %description -n QtSvg
461 SVG support.
462
463 %description -n QtSvg -l pl
464 Wsparcie dla SVG.
465
466 %package -n QtSvg-devel
467 Summary:        SVG support - development files
468 Summary(pl):    Wsparcie dla SVG - pliki programistyczne
469 Group:          X11/Development/Libraries
470 Requires:       QtCore-devel = %{version}-%{release}
471 Requires:       QtSvg = %{version}-%{release}
472
473 %description -n QtSvg-devel
474 SVG support - development files.
475
476 %description -n QtSvg-devel -l pl
477 Wsparcie dla SVG - pliki programistyczne.
478
479 %package -n QtSvg-static
480 Summary:        SVG support - static libraries
481 Summary(pl):    Wsparcie dla SVG - biblioteki statyczne
482 Group:          X11/Development/Libraries
483 Requires:       QtSvg-devel = %{version}-%{release}
484
485 %description -n QtSvg-static
486 SVG support - static libraries.
487
488 %description -n QtSvg-static -l pl
489 Wsparcie dla SVG - biblioteki statyczne.
490
491 %package -n QtTest
492 Summary:        Test framework
493 Summary(pl):    Szkielet testów
494 Group:          X11/Libraries
495 Requires:       QtCore = %{version}-%{release}
496
497 %description -n QtTest
498 Test framework.
499
500 %description -n QtTest -l pl
501 Szkielet testów.
502
503 %package -n QtTest-devel
504 Summary:        Test framework - development files
505 Summary(pl):    Szkielet testów - pliki programistyczne
506 Group:          X11/Development/Libraries
507 Requires:       QtCore-devel = %{version}-%{release}
508 Requires:       QtTest = %{version}-%{release}
509
510 %description -n QtTest-devel
511 Test framework - development files.
512
513 %description -n QtTest-devel -l pl
514 Szkielet testów - pliki programistyczne.
515
516 %package -n QtXml
517 Summary:        Classes for handling XML
518 Summary(pl):    Klasy do obs³ugi XML-a
519 Group:          X11/Libraries
520 Requires:       QtCore = %{version}-%{release}
521
522 %description -n QtXml
523 Classes for handling XML.
524
525 %description -n QtXml -l pl
526 Klasy do obs³ugi XML-a.
527
528 %package -n QtXml-devel
529 Summary:        Classes for handling XML - development files
530 Summary(pl):    Klasy do obs³ugi XML-a - pliki programistyczne
531 Group:          X11/Development/Libraries
532 Requires:       QtCore-devel = %{version}-%{release}
533 Requires:       QtXml = %{version}-%{release}
534
535 %description -n QtXml-devel
536 Classes for handling XML - development files.
537
538 %description -n QtXml-devel -l pl
539 Klasy do obs³ugi XML-a - pliki programistyczne.
540
541 %package -n QtXml-static
542 Summary:        Classes for handling XML - static libraries
543 Summary(pl):    Klasy do obs³ugi XML-a - biblioteki statyczne
544 Group:          X11/Development/Libraries
545 Requires:       QtXml-devel = %{version}-%{release}
546
547 %description -n QtXml-static
548 Classes for handling XML - static libraries.
549
550 %description -n QtXml-static -l pl
551 Klasy do obs³ugi XML-a - biblioteki statyczne.
552
553 %package -n Qt3Support
554 Summary:        Qt3 compatibility library
555 Summary(pl):    Biblioteka kompatybilno¶ci z Qt3
556 Group:          X11/Libraries
557 Requires:       QtCore = %{version}-%{release}
558
559 %description -n Qt3Support
560 Qt3 compatibility library.
561
562 %description -n Qt3Support -l pl
563 Biblioteka kompatybilno¶ci z Qt3.
564
565 %package -n Qt3Support-devel
566 Summary:        Qt3 compatibility library - development files
567 Summary(pl):    Biblioteka kompatybilno¶ci z Qt3 - pliki programistyczne
568 Group:          X11/Development/Libraries
569 Requires:       Qt3Support = %{version}-%{release}
570 Requires:       QtCore-devel = %{version}-%{release}
571
572 %description -n Qt3Support-devel
573 Qt3 compatibility library - development files.
574
575 %description -n Qt3Support-devel -l pl
576 Biblioteka kompatybilno¶ci z Qt3 - pliki programistyczne.
577
578 %package -n Qt3Support-static
579 Summary:        Qt3 compatibility library - static libraries
580 Summary(pl):    Biblioteka kompatybilno¶ci z Qt3 - biblioteki statyczne
581 Group:          X11/Development/Libraries
582 Requires:       Qt3Support-devel = %{version}-%{release}
583
584 %description -n Qt3Support-static
585 Qt3 compatibility library - static libraries.
586
587 %description -n Qt3Support-static -l pl
588 Biblioteka kompatybilno¶ci z Qt3 - biblioteki statyczne.
589
590 %package -n QtAssistant
591 Summary:        Qt Assistant client library
592 Summary(pl):    Biblioteka kliencka Qt Assistant
593 Group:          X11/Development/Libraries
594
595 %description -n QtAssistant
596 This library allows to use Qt Assistant as an application's help tool.
597
598 %description -n QtAssistant -l pl
599 Ta biblioteka umo¿liwia wykorzystanie Qt Assistanta jako narzêdzie
600 pomocy w aplikacjach.
601
602 %package -n QtAssistant-devel
603 Summary:        Qt Assistant client library - development files
604 Summary(pl):    Biblioteka kliencka Qt Assistant - pliki programistyczne
605 Group:          X11/Development/Libraries
606 Requires:       QtAssistant = %{version}-%{release}
607 Requires:       QtNetwork-devel = %{version}-%{release}
608
609 %description -n QtAssistant-devel
610 Development files for Qt Assistant client library.
611
612 %description -n QtAssistant-devel -l pl
613 Pliki programistyczne biblioteki klienckiej Qt Assistant.
614
615 %package -n QtAssistant-static
616 Summary:        Static Qt Assistant client library
617 Summary(pl):    Statyczna biblioteka kliencka Qt Assistant
618 Group:          X11/Development/Libraries
619 Requires:       QtAssistant-devel = %{version}-%{release}
620
621 %description -n QtAssistant-static
622 Static Qt Assistant client library.
623
624 %description -n QtAssistant-static -l pl
625 Statyczna biblioteka kliencka Qt Assistant.
626
627 %package assistant
628 Summary:        Qt documentation browser
629 Summary(pl):    Przegl±darka dokumentacji Qt
630 Group:          X11/Development/Tools
631 Requires:       %{name}-doc
632
633 %description assistant
634 Qt Assistant is a tool for browsing on-line documentation with
635 indexing, bookmarks and full-text search.
636
637 %description assistant -l pl
638 Qt Assistant to narzêdzie do przegl±dania dokumentacji z mo¿liwo¶ci±
639 indeksowania, dodawania zak³adek i pe³notekstowego wyszukiwania.
640
641 %package build
642 Summary:        Build tools for Qt4
643 Summary(pl):    Narzêdzia do budowania dla Qt4
644 Group:          X11/Development/Tools
645 Requires:       QtCore = %{version}-%{release}
646 Requires:       QtXml = %{version}-%{release}
647
648 %description build
649 This package includes the Qt resource compiler (rcc), meta objects
650 compiler (moc), user interface compiler (uic) and qt3to4 include names
651 converter.
652
653 %description build -l pl
654 Ten pakiet zawiera kompilator zasobów Qt (rcc), kompilator
655 metaobiektów (moc), kompilator interfejsów u¿ytkownika (uic) oraz
656 konwerter nazw plików nag³ówkowych qt3to4.
657
658 %package designer
659 Summary:        IDE used for GUI designing with Qt library
660 Summary(pl):    IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt
661 Group:          X11/Applications
662 Requires:       %{name}-designer-libs = %{version}-%{release}
663
664 %description designer
665 An advanced tool used for GUI designing with Qt library.
666
667 %description designer -l pl
668 Zaawansowane narzêdzie s³u¿±ce do projektowania interfejsu graficznego
669 za pomoc± biblioteki Qt.
670
671 %package designer-libs
672 Summary:        Libraries IDE used for GUI designing with Qt library
673 Summary(pl):    Biblioteki do IDE s³u¿±cego do projektowania GUI za pomoc± biblioteki Qt
674 Group:          X11/Applications
675
676 %description designer-libs
677 Libraries used by the Qt GUI Designer.
678
679 %description designer-libs -l pl
680 Biblioteki wykorzystywane przez narzêdzie projektowania interfejsu
681 graficznego - Qt Designer.
682
683 %package -n QtDesigner-devel
684 Summary:        IDE used for GUI designing with Qt library - development files
685 Summary(pl):    IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt - pliki programistyczne
686 Group:          X11/Development/Libraries
687 Requires:       %{name}-designer-libs = %{version}-%{release}
688 Requires:       QtCore-devel = %{version}-%{release}
689
690 %description -n QtDesigner-devel
691 IDE used for GUI designing with Qt library - development files.
692
693 %description -n QtDesigner-devel -l pl
694 IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt - pliki
695 programistyczne.
696
697 %package -n QtDesigner-static
698 Summary:        IDE used for GUI designing with Qt library - static libraries
699 Summary(pl):    IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt - biblioteki statyczne
700 Group:          X11/Development/Libraries
701 Requires:       QtDesigner-devel = %{version}-%{release}
702
703 %description -n QtDesigner-static
704 IDE used for GUI designing with Qt library - static libraries.
705
706 %description -n QtDesigner-static -l pl
707 IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt - biblioteki
708 statyczne.
709
710 %package linguist
711 Summary:        Translation helper for Qt
712 Summary(pl):    Aplikacja u³atwiaj±ca t³umaczenie aplikacji oparty o Qt
713 Group:          X11/Development/Tools
714
715 %description linguist
716 This program provides an interface that shortens and helps systematize
717 the process of translating GUIs. Qt Linguist takes all of the text of
718 a UI that will be shown to the user, and presents it to a human
719 translator in a simple window. When one UI text is translated, the
720 program automatically progresses to the next, until they are all
721 completed.
722
723 %description linguist -l pl
724 Ten program oferuje interfejs znacznie przy¶pieszaj±cy proces
725 t³umaczenia interfejsu u¿ytkownika. Zbiera wszystkie teksty
726 przeznaczone do t³umaczenia i przedstawia w ³atwym w obs³udze oknie.
727 Gdy jeden z nich jest ju¿ przet³umaczony, automatycznie przechodzi do
728 nastêpnego, a¿ wszystkie bêd± przet³umaczone.
729
730 %package qmake
731 Summary:        Qt makefile generator
732 Summary(pl):    Generator plików makefile dla aplikacji Qt
733 Group:          X11/Development/Tools
734 Obsoletes:      qmake
735
736 %description qmake
737 A powerful makefile generator. It can create makefiles on any platform
738 from a simple .pro definitions file.
739
740 %description qmake -l pl
741 Rozbudowany generator plików makefile. Potrafi tworzyæ pliki makefile
742 na ka¿dej platformi na podstawie ³atwego w przygotowaniu pliku .pro.
743
744 %package qtconfig
745 Summary:        Qt widgets configuration tool
746 Summary(pl):    Narzêdzie do konfigurowania widgetów Qt
747 Group:          X11/Applications
748 Obsoletes:      qtconfig
749
750 %description qtconfig
751 A tool for configuring look and behavior of Qt widgets.
752
753 %description qtconfig -l pl
754 Narzêdie do konfiguracji wygl±du i zachowania widgetów Qt.
755
756 %package -n qvfb
757 Summary:        Qt Virtual framebuffer
758 Summary(pl):    Wirtualny framebuffer dla Qt
759 Group:          X11/Development/Libraries
760
761 %description -n qvfb
762 Qt Virtual framebuffer allows you to run Qt/Embedded applications in X
763 window.
764
765 %description -n qvfb -l pl
766 Qt Virtual framebuffer pozwala na uruchamianie aplikacji Qt/Embedded w
767 okienku X.
768
769 %package demos
770 Summary:        Demos of new Qt4 features
771 Summary(pl):    Programy demonstruj±ce nowe mo¿liwo¶ci Qt4
772 Group:          X11/Development/Libraries
773 Requires:       QtCore = %{version}-%{release}
774 Requires:       QtXml = %{version}-%{release}
775
776 %description demos
777 Demos are spiders that fly.
778
779 %description demos -l pl
780 Dema to lataj±ce paj±ki.
781
782 %package doc
783 Summary:        Qt Documentation in HTML format
784 Summary(pl):    Dokumentacja Qt w formacie HTML
785 Group:          X11/Development/Libraries
786
787 %description doc
788 Qt documentation in HTML format.
789
790 %description doc -l pl
791 Dokumentacja qt w formacie HTML.
792
793 %package man
794 Summary:        Qt man pages
795 Summary(pl):    Qt - strony man
796 Group:          X11/Development/Libraries
797
798 %description man
799 Qt documentation in man pages format.
800
801 %description man -l pl
802 Dokumentacja Qt w formacie stron man.
803
804 %package examples
805 Summary:        Example programs bundled with Qt
806 Summary(pl):    Æwiczenia i przyk³ady do Qt
807 Summary(pt_BR): Programas exemplo desenvolvidos com o Qt
808 Group:          X11/Development/Libraries
809 # no it does not , we cant be sure the user wants to compile them right?
810 # he might just want to take a look, anwyay no single devel package now
811 #Requires:      %{name}-devel = %{version}-%{release}
812
813 %description examples
814 Example programs bundled with Qt version.
815
816 %description examples -l pl
817 Æwiczenia/przyk³ady do³±czone do Qt.
818
819 %description examples -l pt_BR
820 Programas exemplo para o Qt versão.
821
822 %prep
823 %setup -q -n qt-x11-opensource-src-%{version}
824 %patch0 -p1
825 %patch1 -p1
826 %patch2 -p1
827 %patch3 -p1
828 %patch4 -p1
829 %patch5 -p1
830 %patch6 -p1
831 %patch7 -p1
832 %patch8 -p1
833 %if %{with dont_enable}
834 %patch9 -p1
835 %patch10 -p1
836 %endif
837
838 sed -i -e 's,usr/X11R6/,usr/,' mkspecs/linux-g*/qmake.conf
839
840 # change QMAKE_CFLAGS_RELEASE to build
841 # properly optimized libs
842
843 if [ "%{_lib}" != "lib" ] ; then
844         cfgf="mkspecs/linux-g++-64/qmake.conf"
845 else
846         cfgf="mkspecs/linux-g++/qmake.conf"
847 fi
848
849 sed -i -e '
850         s|QMAKE_CC.*=.*gcc|QMAKE_CC = %{__cc}|;
851         s|QMAKE_CXX.*=.*g++|QMAKE_CXX = %{__cxx}|;
852         s|QMAKE_LINK.*=.*g++|QMAKE_LINK = %{__cxx}|;
853         s|QMAKE_LINK_SHLIB.*=.*g++|QMAKE_LINK_SHLIB = %{__cxx}|;
854         s|QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT = %{_includedir}/qt4|;
855         ' $cfgf
856
857 cat $cfgf \
858         | grep -v QMAKE_CFLAGS_RELEASE \
859         | grep -v QMAKE_CXXFLAGS_RELEASE \
860         | grep -v QMAKE_CFLAGS_DEBUG \
861         | grep -v QMAKE_CXXFLAGS_DEBUG \
862         > $cfgf.1
863
864 mv $cfgf.1 $cfgf
865 echo >> $cfgf
866 echo -e "QMAKE_CFLAGS_RELEASE\t= %{rpmcflags}" >> $cfgf
867 echo -e "QMAKE_CXXFLAGS_RELEASE\t= %{rpmcxxflags}" >> $cfgf
868 echo -e "QMAKE_CFLAGS_DEBUG\t= %{debugcflags}" >> $cfgf
869 echo -e "QMAKE_CXXFLAGS_DEBUG\t= %{debugcflags}" >> $cfgf
870
871 %build
872 # pass OPTFLAGS to build qmake itself with optimization
873 export OPTFLAGS="%{rpmcflags}"
874 export PATH=$PWD/bin:$PATH
875
876 ##################################
877 # DEFAULT OPTIONS FOR ALL BUILDS #
878 ##################################
879
880 COMMONOPT=" \
881         -DQT_CLEAN_NAMESPACE \
882         -verbose \
883         -prefix %{_prefix} \
884         -docdir %{_docdir}/%{name}-doc \
885         -headerdir %{_includedir}/qt4 \
886         -libdir %{_libdir} \
887         -L%{_libdir} \
888         -bindir %{_bindir} \
889         -plugindir %{_libdir}/qt4/plugins \
890         -datadir %{_datadir}/qt4 \
891         -translationdir %{_datadir}/locale/ \
892         -sysconfdir %{_sysconfdir}/qt4 \
893         -examplesdir %{_examplesdir}/qt4 \
894         -demosdir %{_examplesdir}/qt4-demos \
895         -fast \
896         -%{!?with_pch:no-}pch \
897         -%{!?with_sse:no-}sse \
898         -qt-gif \
899         -system-libjpeg \
900         -system-libpng \
901         -system-zlib \
902         -no-exceptions \
903         -I%{_includedir}/postgresql/server \
904         -I%{_includedir}/mysql \
905         %{?with_cups:-cups} \
906         %{?with_nas:-system-nas-sound} \
907         %{?debug:-debug} \
908         %{!?debug:-release} \
909         -qt3support \
910         -fontconfig \
911         -nis \
912         -sm \
913         -tablet \
914         -xcursor \
915         -xkb \
916         -xrender \
917         -xshape"
918
919 ##################################
920 #      STATIC MULTI-THREAD       #
921 ##################################
922
923 %if %{with static_libs}
924 OPT=" \
925         %{?with_mysql:-qt-sql-mysql} \
926         %{?with_odbc:-qt-sql-odbc} \
927         %{?with_pgsql:-qt-sql-psql} \
928         %{?with_sqlite3:-qt-sql-sqlite} \
929         %{?with_sqlite:-qt-sql-sqlite2} \
930         %{?with_ibase:-qt-sql-ibase} \
931         -static"
932
933 echo "yes" | ./configure $COMMONOPT $OPT
934
935 %{__make} -C src
936 %{__make} -C tools/assistant/lib
937 %{__make} -C tools/designer/src/lib
938 if [ ! -d staticlib ]; then
939         mkdir staticlib
940         cp -a lib/*.a staticlib
941 fi
942 %{__make} confclean
943 %endif
944
945 ##################################
946 #      SHARED MULTI-THREAD       #
947 ##################################
948
949 OPT=" \
950         %{?with_mysql:-plugin-sql-mysql} \
951         %{?with_odbc:-plugin-sql-odbc} \
952         %{?with_pgsql:-plugin-sql-psql} \
953         %{?with_sqlite3:-plugin-sql-sqlite} \
954         %{?with_sqlite:-plugin-sql-sqlite2} \
955         %{?with_ibase:-plugin-sql-ibase}"
956
957 echo "yes" | ./configure $COMMONOPT $OPT
958
959 %{__make}
960 %{__make} \
961         sub-tools-all-ordered \
962         sub-demos-all-ordered \
963         sub-examples-all-ordered
964
965 %if %{with dont_enable}
966 %if %{with designer}
967 cd tools/designer/designer
968 lrelease designer_de.ts
969 lrelease designer_fr.ts
970 cd -
971 %endif
972 cd tools/assistant
973 lrelease assistant_de.ts
974 lrelease assistant_fr.ts
975 cd -
976 cd tools/linguist/linguist
977 lrelease linguist_de.ts
978 lrelease linguist_fr.ts
979 cd -
980 %endif
981
982 # kill -L/inside/builddir from *.la and *.pc (bug #77152)
983 %{__sed} -i -e "s,-L$PWD/lib,,g" lib/*.{la,pc,prl}
984
985 %install
986 rm -rf $RPM_BUILD_ROOT
987 install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
988
989 %{__make} install \
990         INSTALL_ROOT=$RPM_BUILD_ROOT
991
992 install -d \
993         $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
994         $RPM_BUILD_ROOT%{_libdir}/qt4/plugins/{crypto,network}
995
996 install plugins/sqldrivers/* $RPM_BUILD_ROOT%{_libdir}/qt4/plugins/sqldrivers
997 install bin/findtr tools/qvfb/qvfb $RPM_BUILD_ROOT%{_bindir}
998
999 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
1000 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
1001 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
1002
1003 install tools/qtconfig/images/appicon.png \
1004         $RPM_BUILD_ROOT%{_pixmapsdir}/qtconfig.png
1005
1006 install tools/linguist/linguist/images/appicon.png \
1007         $RPM_BUILD_ROOT%{_pixmapsdir}/linguist.png
1008
1009 install tools/assistant/images/assistant.png \
1010         $RPM_BUILD_ROOT%{_pixmapsdir}/assistant.png
1011
1012 %if %{with designer}
1013 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
1014 install tools/designer/src/designer/images/designer.png \
1015         $RPM_BUILD_ROOT%{_pixmapsdir}/designer.png
1016 %endif
1017
1018 %if %{with static_libs}
1019 install staticlib/*.a $RPM_BUILD_ROOT%{_libdir}
1020 %endif
1021
1022 install -d $RPM_BUILD_ROOT%{_datadir}/locale/{ar,cs,de,fr,ru,sk}/LC_MESSAGES
1023 install translations/qt_ar.qm $RPM_BUILD_ROOT%{_datadir}/locale/ar/LC_MESSAGES/qt.qm
1024 install translations/qt_cs.qm $RPM_BUILD_ROOT%{_datadir}/locale/cs/LC_MESSAGES/qt.qm
1025 install translations/qt_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/qt.qm
1026 install translations/qt_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/qt.qm
1027 install translations/qt_ru.qm $RPM_BUILD_ROOT%{_datadir}/locale/ru/LC_MESSAGES/qt.qm
1028 install translations/qt_sk.qm $RPM_BUILD_ROOT%{_datadir}/locale/sk/LC_MESSAGES/qt.qm
1029 install tools/assistant/assistant_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/assistant.qm
1030
1031 %if %{with dont_enable}
1032 %if %{with designer}
1033 install tools/designer/designer/designer_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/designer.qm
1034 install tools/designer/designer/designer_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/designer.qm
1035 %endif
1036
1037 install tools/assistant/assistant_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/assistant.qm
1038
1039 install tools/linguist/linguist/linguist_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/linguist.qm
1040 install tools/linguist/linguist/linguist_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/linguist.qm
1041 %endif
1042
1043 cd $RPM_BUILD_ROOT%{_includedir}/qt4/Qt
1044 for f in ../Qt{3Support,Assistant,Core,Designer,Gui,Network,OpenGL,Sql,Svg,Test,Xml}/*
1045 do
1046         if [ ! -d $f ]; then
1047                 ln -sf $f `basename $f`
1048         fi
1049 done
1050 ln -sf ../../QtCore/arch/qatomic.h arch/qatomic.h
1051 cd -
1052
1053 mv $RPM_BUILD_ROOT%{_libdir}/*.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
1054 for f in $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc; do
1055         HAVEDEBUG=`echo $f | grep _debug | wc -l`
1056         MODULE=`echo $f | basename $f | cut -d. -f1 | cut -d_ -f1`
1057         MODULE2=`echo $MODULE | tr a-z A-Z | sed s:QT::`
1058         DEFS="-D_REENTRANT"
1059
1060         if [ "$MODULE2" == "3SUPPORT" ]; then
1061                 DEFS="$DEFS -DQT3_SUPPORT -DQT_QT3SUPPORT_LIB"
1062         else
1063                 DEFS="$DEFS -DQT_"$MODULE2"_LIB"
1064         fi
1065         [ "$HAVEDEBUG" -eq 0 ] && DEFS="$DEFS -DQT_NO_DEBUG"
1066
1067         sed -i -e "s:-DQT_SHARED:-DQT_SHARED $DEFS:" $f
1068 done
1069
1070 # Prepare some files list
1071 ifecho () {
1072         RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null`
1073         [ "$RESULT" == "" ] && return
1074         r=`echo $RESULT | awk '{ print $1 }'`
1075
1076         if [ -d "$r" ]; then
1077                 echo "%%dir $2" >> $1.files
1078         elif [ -x "$r" ] ; then
1079                 echo "%%attr(755,root,root) $2" >> $1.files
1080         elif [ -f "$r" ]; then
1081                 echo "$2" >> $1.files
1082         else
1083                 echo "Error generation devel files list!"
1084                 echo "$r: no such file or direcotry!"
1085                 return 1
1086         fi
1087 }
1088
1089 mkdevfl () {
1090         MODULE=$1; shift
1091         echo "%%defattr(644,root,root,755)" > $MODULE-devel.files
1092         ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.so"
1093         ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.la"
1094         ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.prl"
1095         ifecho $MODULE-devel "%{_pkgconfigdir}/$MODULE*.pc"
1096         if [ -d "$RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE" ]; then
1097                 ifecho $MODULE-devel %{_includedir}/qt4/$MODULE
1098         fi
1099         for f in `find $RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE -printf "%%P "`
1100         do
1101                 ifecho $MODULE-devel %{_includedir}/qt4/$MODULE/$f
1102                 ifecho $MODULE-devel %{_includedir}/qt4/Qt/$f
1103         done
1104         for f in $@; do ifecho $MODULE-devel $f; done
1105 }
1106
1107 mkdevfl QtCore %{_includedir}/qt4 %{_includedir}/qt4/Qt
1108 mkdevfl QtGui
1109 mkdevfl QtNetwork
1110 mkdevfl QtOpenGL
1111 mkdevfl QtSql
1112 mkdevfl QtSvg
1113 mkdevfl QtTest
1114 mkdevfl QtXml
1115 mkdevfl Qt3Support
1116
1117 # without *.la *.pc etc.
1118 mkdevfl QtAssistant || /bin/true
1119 mkdevfl QtDesigner || /bin/true
1120
1121 echo "%defattr(644,root,root,755)" > examples.files
1122 ifecho examples %{_examplesdir}/qt4
1123 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4 -printf "%%P "`
1124 do
1125         ifecho examples %{_examplesdir}/qt4/$f
1126 done
1127
1128 echo "%defattr(644,root,root,755)" > demos.files
1129 ifecho demos "%{_examplesdir}/qt4-demos"
1130 ifecho demos "%{_bindir}/qtdemo"
1131 ifecho demos "%{_libdir}/qt4/plugins/arthurplugin/libarthurplugin.so"
1132 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4-demos -printf "%%P "`
1133 do
1134         ifecho demos %{_examplesdir}/qt4-demos/$f
1135 done
1136
1137 %clean
1138 rm -rf $RPM_BUILD_ROOT
1139
1140 %post   -n QtCore
1141 /sbin/ldconfig
1142 cat << EOF
1143  *******************************************************
1144  *                                                     *
1145  *  NOTE:                                              *
1146  *  With qt 4.0.0 the single threaded version was      *
1147  *  removed. Also the library is modular now so be     *
1148  *  sure to check that you have every module you need. *
1149  *                                                     *
1150  *******************************************************
1151 EOF
1152 %postun -n QtCore       -p /sbin/ldconfig
1153
1154 %post   -n QtGui        -p /sbin/ldconfig
1155 %postun -n QtGui        -p /sbin/ldconfig
1156
1157 %post   -n QtNetwork    -p /sbin/ldconfig
1158 %postun -n QtNetwork    -p /sbin/ldconfig
1159
1160 %post   -n QtOpenGL     -p /sbin/ldconfig
1161 %postun -n QtOpenGL     -p /sbin/ldconfig
1162
1163 %post   -n QtSql        -p /sbin/ldconfig
1164 %postun -n QtSql        -p /sbin/ldconfig
1165
1166 %post   -n QtSvg        -p /sbin/ldconfig
1167 %postun -n QtSvg        -p /sbin/ldconfig
1168
1169 %post   -n QtTest       -p /sbin/ldconfig
1170 %postun -n QtTest       -p /sbin/ldconfig
1171
1172 %post   -n QtXml        -p /sbin/ldconfig
1173 %postun -n QtXml        -p /sbin/ldconfig
1174
1175 %post   -n Qt3Support   -p /sbin/ldconfig
1176 %postun -n Qt3Support   -p /sbin/ldconfig
1177
1178 %post   -n QtAssistant  -p /sbin/ldconfig
1179 %postun -n QtAssistant  -p /sbin/ldconfig
1180
1181 %post   designer-libs   -p /sbin/ldconfig
1182 %postun designer-libs   -p /sbin/ldconfig
1183
1184 %files -n QtCore
1185 %defattr(644,root,root,755)
1186 %attr(755,root,root) %{_libdir}/libQtCore.so.*.*
1187 %dir %{_libdir}/qt4
1188 %dir %{_libdir}/qt4/plugins
1189 %dir %{_libdir}/qt4/plugins/accessible
1190 %dir %{_libdir}/qt4/plugins/codecs
1191 %dir %{_libdir}/qt4/plugins/crypto
1192 %dir %{_libdir}/qt4/plugins/imageformats
1193 %dir %{_libdir}/qt4/plugins/network
1194 %dir %{_libdir}/qt4/plugins/sqldrivers
1195 %dir %{_datadir}/qt4
1196 %lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/qt.qm
1197 %lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/qt.qm
1198 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt.qm
1199 %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qt.qm
1200 %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qt.qm
1201 %lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/qt.qm
1202
1203 %files -n QtGui
1204 %defattr(644,root,root,755)
1205 %attr(755,root,root) %{_libdir}/libQtGui.so.*.*
1206 %{_libdir}/qt4/plugins/accessible/*
1207 %{_libdir}/qt4/plugins/codecs/*
1208 %{_libdir}/qt4/plugins/imageformats/*
1209
1210 %files -n QtNetwork
1211 %defattr(644,root,root,755)
1212 %attr(755,root,root) %{_libdir}/libQtNetwork.so.*.*
1213
1214 %files -n QtOpenGL
1215 %defattr(644,root,root,755)
1216 %attr(755,root,root) %{_libdir}/libQtOpenGL.so.*.*
1217
1218 %files -n QtSql
1219 %defattr(644,root,root,755)
1220 %attr(755,root,root) %{_libdir}/libQtSql.so.*.*
1221
1222 %if %{with mysql}
1223 %files -n QtSql-mysql
1224 %defattr(644,root,root,755)
1225 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlmysql*.so
1226 %endif
1227
1228 %if %{with pgsql}
1229 %files -n QtSql-pgsql
1230 %defattr(644,root,root,755)
1231 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlpsql*.so
1232 %endif
1233
1234 %if %{with sqlite}
1235 %files -n QtSql-sqlite
1236 %defattr(644,root,root,755)
1237 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlite2*.so
1238 %endif
1239
1240 %if %{with sqlite3}
1241 %files -n QtSql-sqlite3
1242 %defattr(644,root,root,755)
1243 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlite*.so
1244 %exclude %{_libdir}/qt4/plugins/sqldrivers/libqsqlite2*.so
1245 %endif
1246
1247 %if %{with ibase}
1248 %files -n QtSql-ibase
1249 %defattr(644,root,root,755)
1250 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlibase*.so
1251 %endif
1252
1253 %if %{with odbc}
1254 %files -n QtSql-odbc
1255 %defattr(644,root,root,755)
1256 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlodbc*.so
1257 %endif
1258
1259 %files -n QtSvg
1260 %defattr(644,root,root,755)
1261 %attr(755,root,root) %{_libdir}/libQtSvg.so.*.*
1262
1263 %files -n QtTest
1264 %defattr(644,root,root,755)
1265 %attr(755,root,root) %{_libdir}/libQtTest.so.*.*
1266
1267 %files -n QtXml
1268 %defattr(644,root,root,755)
1269 %attr(755,root,root) %{_libdir}/libQtXml.so.*.*
1270
1271 %files -n Qt3Support
1272 %defattr(644,root,root,755)
1273 %attr(755,root,root) %{_bindir}/uic3
1274 %attr(755,root,root) %{_libdir}/libQt3Support.so.*.*
1275
1276 %files -n QtAssistant
1277 %defattr(644,root,root,755)
1278 %attr(755,root,root) %{_libdir}/libQtAssistantClient.so.*.*
1279
1280 %files assistant
1281 %defattr(644,root,root,755)
1282 %attr(755,root,root) %{_bindir}/assistant
1283 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/assistant.qm
1284 %{_desktopdir}/assistant.desktop
1285 %{_pixmapsdir}/assistant.png
1286
1287 %files build
1288 %defattr(644,root,root,755)
1289 %attr(755,root,root) %{_bindir}/rcc
1290 %attr(755,root,root) %{_bindir}/moc
1291 %attr(755,root,root) %{_bindir}/qt3to4
1292 %attr(755,root,root) %{_bindir}/uic
1293 %{_datadir}/qt4/q3porting.xml
1294
1295 %if %{with designer}
1296 %files designer
1297 %defattr(644,root,root,755)
1298 %attr(755,root,root) %{_bindir}/designer
1299 %{_desktopdir}/designer.desktop
1300 %{_pixmapsdir}/designer.png
1301
1302 %files designer-libs
1303 %defattr(644,root,root,755)
1304 %attr(755,root,root) %{_libdir}/libQtDesigner*.so.*.*
1305 %dir %{_libdir}/qt4/plugins/designer
1306 %attr(755,root,root) %{_libdir}/qt4/plugins/designer/*.so
1307 %endif
1308
1309 %files linguist
1310 %defattr(644,root,root,755)
1311 %attr(755,root,root) %{_bindir}/linguist
1312 %attr(755,root,root) %{_bindir}/findtr
1313 %attr(755,root,root) %{_bindir}/lrelease
1314 %attr(755,root,root) %{_bindir}/lupdate
1315 %attr(755,root,root) %{_bindir}/qm2ts
1316 %{_datadir}/qt4/phrasebooks
1317 %{_desktopdir}/linguist.desktop
1318 %{_pixmapsdir}/linguist.png
1319
1320 %files qmake
1321 %defattr(644,root,root,755)
1322 %attr(755,root,root) %{_bindir}/qmake
1323 %{_datadir}/qt4/mkspecs
1324
1325 %files qtconfig
1326 %defattr(644,root,root,755)
1327 %attr(755,root,root) %{_bindir}/qtconfig
1328 %{_desktopdir}/qtconfig.desktop
1329 %{_pixmapsdir}/qtconfig.png
1330
1331 %files -n qvfb
1332 %defattr(644,root,root,755)
1333 %attr(755,root,root) %{_bindir}/qvfb
1334
1335 %files doc
1336 %defattr(644,root,root,755)
1337 %{_docdir}/%{name}-doc
1338
1339 %files -n QtCore-devel -f QtCore-devel.files
1340 %files -n QtDesigner-devel -f QtDesigner-devel.files
1341 %files -n QtGui-devel -f QtGui-devel.files
1342 %files -n QtNetwork-devel -f QtNetwork-devel.files
1343 %files -n QtOpenGL-devel -f QtOpenGL-devel.files
1344 %files -n QtSql-devel -f QtSql-devel.files
1345 %files -n QtSvg-devel -f QtSvg-devel.files
1346 %files -n QtTest-devel -f QtTest-devel.files
1347 %files -n QtXml-devel -f QtXml-devel.files
1348 %files -n Qt3Support-devel -f Qt3Support-devel.files
1349 %files -n QtAssistant-devel -f QtAssistant-devel.files
1350
1351 %if %{with static_libs}
1352 %files -n QtCore-static
1353 %defattr(644,root,root,755)
1354 %{_libdir}/libQtCore*.a
1355
1356 %files -n QtGui-static
1357 %defattr(644,root,root,755)
1358 %{_libdir}/libQtGui*.a
1359
1360 %files -n QtNetwork-static
1361 %defattr(644,root,root,755)
1362 %{_libdir}/libQtNetwork*.a
1363
1364 %files -n QtOpenGL-static
1365 %defattr(644,root,root,755)
1366 %{_libdir}/libQtOpenGL*.a
1367
1368 %files -n QtSql-static
1369 %defattr(644,root,root,755)
1370 %{_libdir}/libQtSql*.a
1371
1372 %files -n QtSvg-static
1373 %defattr(644,root,root,755)
1374 %{_libdir}/libQtSvg*.a
1375
1376 %files -n QtXml-static
1377 %defattr(644,root,root,755)
1378 %{_libdir}/libQtXml*.a
1379
1380 %files -n Qt3Support-static
1381 %defattr(644,root,root,755)
1382 %{_libdir}/libQt3Support*.a
1383
1384 %files -n QtDesigner-static
1385 %defattr(644,root,root,755)
1386 %{_libdir}/libQtDesigner.a
1387
1388 %files -n QtAssistant-static
1389 %defattr(644,root,root,755)
1390 %{_libdir}/libQtAssistantClient.a
1391 %endif
1392
1393 %files demos -f demos.files
1394 %files examples -f examples.files
This page took 0.158738 seconds and 4 git commands to generate.