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