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