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