3 # - fix ibase build with current Firebird on x86_64
4 # - better descriptions
6 # - check if translations are available
10 %bcond_with nas # enable NAS audio support
11 %bcond_without static_libs # build static libraries
12 %bcond_without cups # disable CUPS support
13 %bcond_without mysql # don't build MySQL plugin
14 %bcond_without odbc # don't build unixODBC plugin
15 %bcond_without pgsql # don't build PostgreSQL plugin
16 %bcond_without sqlite3 # don't build SQLite3 plugin
17 %bcond_without sqlite # don't build SQLite2 plugin
18 %bcond_with 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 sse2 # use SSE2 instructions
23 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
27 %ifarch pentium3 pentium4 %{x8664}
31 %ifarch pentium4 %{x8664}
36 %{!?with_sqlite3:%{!?with_sqlite:%{!?with_ibase:%{!?with_mysql:%{!?with_pgsql:%{!?with_odbc:%undefine _withsql}}}}}}
38 Summary: The Qt GUI application framework
39 Summary(es.UTF-8): Biblioteca para ejecutar aplicaciones GUI Qt
40 Summary(pl.UTF-8): Biblioteka Qt do tworzenia GUI
41 Summary(pt_BR.UTF-8): Estrutura para rodar aplicações GUI Qt
45 License: GPL v2 with OSS exception or QPL v1
47 Source0: ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-%{version}.tar.gz
48 # Source0-md5: 19678fe35170559cd6a6fa531c57799c
49 Source2: %{name}-qtconfig.desktop
50 Source3: %{name}-designer.desktop
51 Source4: %{name}-assistant.desktop
52 Source5: %{name}-linguist.desktop
53 Source6: %{name}_pl.ts
54 Patch0: %{name}-tools.patch
55 Patch1: %{name}-qt_copy.patch
56 Patch2: %{name}-buildsystem.patch
57 Patch3: %{name}-locale.patch
58 Patch4: %{name}-antialias.patch
59 Patch5: %{name}-support-cflags-with-commas.patch
60 Patch6: %{name}-build-lib-static.patch
61 Patch7: %{name}-x11_fonts.patch
62 URL: http://www.trolltech.com/products/qt/
63 %{?with_ibase:BuildRequires: Firebird-devel}
64 BuildRequires: OpenGL-GLU-devel
65 %{?with_sqlite3:BuildRequires: sqlite3-devel}
66 # incompatible with bison
67 %{?with_cups:BuildRequires: cups-devel}
68 BuildRequires: dbus-devel >= 0.62
69 BuildRequires: fontconfig-devel
70 BuildRequires: freetype-devel >= 1:2.0.0
71 %{?with_pch:BuildRequires: gcc >= 5:4.0}
72 BuildRequires: giflib-devel
73 BuildRequires: glib2-devel >= 2.0.0
74 BuildRequires: libjpeg-devel
75 BuildRequires: libmng-devel >= 1.0.0
76 BuildRequires: libpng-devel >= 2:1.0.8
77 BuildRequires: libstdc++-devel
78 %{?with_mysql:BuildRequires: mysql-devel}
79 %{?with_nas:BuildRequires: nas-devel}
80 BuildRequires: pkgconfig
81 %{?with_pgsql:BuildRequires: postgresql-backend-devel}
82 %{?with_pgsql:BuildRequires: postgresql-devel}
83 BuildRequires: rpmbuild(macros) >= 1.213
84 BuildRequires: sed >= 4.0
85 %{?with_sqlite:BuildRequires: sqlite-devel}
86 %{?with_odbc:BuildRequires: unixODBC-devel >= 2.2.12-2}
87 BuildRequires: xorg-lib-libSM-devel
88 BuildRequires: xorg-lib-libXcursor-devel
89 BuildRequires: xorg-lib-libXext-devel
90 BuildRequires: xorg-lib-libXfixes-devel
91 BuildRequires: xorg-lib-libXi-devel
92 BuildRequires: xorg-lib-libXinerama-devel
93 BuildRequires: xorg-lib-libXrandr-devel
94 BuildRequires: xorg-lib-libXrender-devel
95 BuildRequires: zlib-devel
96 BuildConflicts: QtCore-devel < 4.3.2
97 Obsoletes: qt-extensions
99 Conflicts: kdelibs <= 8:3.2-0.030602.1
100 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
102 %define _noautoreqdep libGL.so.1 libGLU.so.1
103 %define _noautostrip '.*_debug\\.so*'
105 %define specflags -fno-strict-aliasing
107 %define _qtdir %{_libdir}/qt4
110 Qt is a complete C++ application development framework, which includes
111 a class library and tools for multiplatform development and
112 internationalization. Using Qt, a single source code tree can build
113 applications that run natively on different platforms (Windows,
114 Unix/Linux, Mac OS X, embedded Linux).
116 Qt has a rich set of standard widgets, and lets you write custom
117 controls. It encapsulates four different platform-specific APIs, and
118 the APIs for file-handling, networking, process-handling, threading,
119 database access, etc. Qt now also has Motif migration oraz Netscape
122 %description -l es.UTF-8
123 Contiene las bibliotecas compartidas necesarias para ejecutar
124 aplicaciones Qt, bien como los archivos README.
126 %description -l pl.UTF-8
127 Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w
128 języku C++, w którego skład wchodzi biblioteka z klasami oraz
129 wieloplatformowymi narzędziami do rozwijania i tłumaczenia aplikacji.
130 Z pomocą Qt jeden kod źródłowy może być natywnie uruchamiany na
131 różnych platformach (Windows, Unix/Linux, Mac OS X).
133 Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale
134 pozwala również na pisanie własnych elementów. Łączy w sposób
135 niewidoczny dla programisty interfejsy programowania różnych systemów,
136 tworząc w ten sposób jeden interfejs dla obsługi plików, sieci,
137 procesów, wątków, baz danych itp. Umożliwia także łatwe przenoszenie
138 na Qt aplikacji korzystających z Motif oraz pisanie wtyczek z
139 wykorzystaniem Netscape LiveConnect.
142 Summary: Core classes used by other modules
143 Summary(pl.UTF-8): Podstawowe klasy używane przez inne moduły
145 Requires(post): /sbin/ldconfig
147 %description -n QtCore
148 Core classes used by other modules.
150 %description -n QtCore -l pl.UTF-8
151 Podstawowe klasy używane przez inne moduły.
153 %package -n QtCore-devel
154 Summary: Core classes used by other modules - development files
155 Summary(pl.UTF-8): Podstawowe klasy używane przez inne moduły - pliki programistyczne
156 Group: X11/Development/Libraries
157 Requires: QtCore = %{version}-%{release}
158 Requires: glib2-devel
159 Requires: libstdc++-devel
162 %description -n QtCore-devel
163 Core classes used by other modules - development files.
165 %description -n QtCore-devel -l pl.UTF-8
166 Podstawowe klasy używane przez inne moduły - pliki programistyczne.
168 %package -n QtCore-static
169 Summary: Core classes used by other modules - static libraries
170 Summary(pl.UTF-8): Podstawowe klasy używane przez inne moduły - biblioteki statyczne
171 Group: X11/Development/Libraries
172 Requires: QtCore-devel = %{version}-%{release}
174 %description -n QtCore-static
175 Core classes used by other modules - static libraries.
177 %description -n QtCore-static -l pl.UTF-8
178 Podstawowe klasy używane przez inne moduły - biblioteki statyczne.
181 Summary: Graphical User Interface components
182 Summary(pl.UTF-8): Komponenty graficznego interfejsu użytkownika
184 Requires: QtCore = %{version}-%{release}
185 # two following because of some plugins
186 Requires: Qt3Support = %{version}-%{release}
187 Requires: QtSql = %{version}-%{release}
189 %description -n QtGui
190 Graphical User Interface components.
192 %description -n QtGui -l pl.UTF-8
193 Komponenty graficznego interfejsu użytkownika.
195 %package -n QtGui-devel
196 Summary: Graphical User Interface components - development files
197 Summary(pl.UTF-8): Komponenty graficznego interfejsu użytkownika - pliki programistyczne
198 Group: X11/Development/Libraries
199 Requires: QtCore-devel = %{version}-%{release}
200 Requires: QtGui = %{version}-%{release}
201 Requires: fontconfig-devel
202 Requires: freetype-devel >= 1:2.0.0
203 Requires: libpng-devel >= 2:1.0.8
204 Requires: xorg-lib-libSM-devel
205 Requires: xorg-lib-libXcursor-devel
206 Requires: xorg-lib-libXext-devel
207 Requires: xorg-lib-libXfixes-devel
208 Requires: xorg-lib-libXi-devel
209 Requires: xorg-lib-libXinerama-devel
210 Requires: xorg-lib-libXrandr-devel
211 Requires: xorg-lib-libXrender-devel
213 %description -n QtGui-devel
214 Graphical User Interface components - development files.
216 %description -n QtGui-devel -l pl.UTF-8
217 Komponenty graficznego interfejsu użytkownika - pliki programistyczne.
219 %package -n QtGui-static
220 Summary: Graphical User Interface components - static libraries
221 Summary(pl.UTF-8): Komponenty graficznego interfejsu użytkownika - biblioteki statyczne
222 Group: X11/Development/Libraries
223 Requires: QtGui-devel = %{version}-%{release}
225 %description -n QtGui-static
226 Graphical User Interface components - static libraries.
228 %description -n QtGui-static -l pl.UTF-8
229 Komponenty graficznego interfejsu użytkownika - biblioteki statyczne.
231 %package -n QtNetwork
232 Summary: Classes for network programming
233 Summary(pl.UTF-8): Klasy do programowania sieciowego
235 Requires: QtCore = %{version}-%{release}
237 %description -n QtNetwork
238 Classes for network programming.
240 %description -n QtNetwork -l pl.UTF-8
241 Klasy do programowania sieciowego.
243 %package -n QtNetwork-devel
244 Summary: Classes for network programming - development files
245 Summary(pl.UTF-8): Klasy do programowania sieciowego - pliki programistyczne
246 Group: X11/Development/Libraries
247 Requires: QtCore-devel = %{version}-%{release}
248 Requires: QtNetwork = %{version}-%{release}
250 %description -n QtNetwork-devel
251 Classes for network programming - development files.
253 %description -n QtNetwork-devel -l pl.UTF-8
254 Klasy do programowania sieciowego - pliki programistyczne.
256 %package -n QtNetwork-static
257 Summary: Classes for network programming - static libraries
258 Summary(pl.UTF-8): Klasy do programowania sieciowego - biblioteki statyczne
259 Group: X11/Development/Libraries
260 Requires: QtNetwork-devel = %{version}-%{release}
262 %description -n QtNetwork-static
263 Classes for network programming - static libraries.
265 %description -n QtNetwork-static -l pl.UTF-8
266 Klasy do programowania sieciowego - biblioteki statyczne.
269 Summary: OpenGL support classes
270 Summary(pl.UTF-8): Klasy wspomagające OpenGL
272 Requires: QtCore = %{version}-%{release}
274 %description -n QtOpenGL
275 OpenGL support classes.
277 %description -n QtOpenGL -l pl.UTF-8
278 Klasy wspomagające OpenGL.
280 %package -n QtOpenGL-devel
281 Summary: OpenGL support classes - development files
282 Summary(pl.UTF-8): Klasy wspomagające OpenGL - pliki programistyczne
283 Group: X11/Development/Libraries
284 Requires: OpenGL-GLU-devel
285 Requires: QtCore-devel = %{version}-%{release}
286 Requires: QtOpenGL = %{version}-%{release}
288 %description -n QtOpenGL-devel
289 OpenGL support classes - development files.
291 %description -n QtOpenGL-devel -l pl.UTF-8
292 Klasy wspomagające OpenGL - pliki programistyczne.
294 %package -n QtOpenGL-static
295 Summary: OpenGL support classes - static libraries
296 Summary(pl.UTF-8): Klasy wspomagające OpenGL - biblioteki statyczne
297 Group: X11/Development/Libraries
298 Requires: QtOpenGL-devel = %{version}-%{release}
300 %description -n QtOpenGL-static
301 OpenGL support classes - static libraries.
303 %description -n QtOpenGL-devel -l pl.UTF-8
304 Klasy wspomagające OpenGL - biblioteki statyczne.
307 Summary: Classes for database integration using SQL
308 Summary(pl.UTF-8): Klasy do integracji z bazami danych przy użyciu SQL
310 Requires: QtCore = %{version}-%{release}
312 %description -n QtSql
313 Classes for database integration using SQL.
315 %description -n QtSql -l pl.UTF-8
316 Klasy do integracji z bazami danych przy użyciu SQL.
318 %package -n QtSql-devel
319 Summary: Classes for database integration using SQL - development files
320 Summary(pl.UTF-8): Klasy do integracji z bazami danych przy użyciu SQL - pliki programistyczne
321 Group: X11/Development/Libraries
322 Requires: QtCore-devel = %{version}-%{release}
323 Requires: QtSql = %{version}-%{release}
325 %description -n QtSql-devel
326 Classes for database integration using SQL - development files.
328 %description -n QtSql-devel -l pl.UTF-8
329 Klasy do integracji z bazami danych przy użyciu SQL - pliki
332 %package -n QtSql-static
333 Summary: Classes for database integration using SQL - static libraries
334 Summary(pl.UTF-8): Klasy do integracji z bazami danych przy użyciu SQL - biblioteki statyczne
335 Group: X11/Development/Libraries
336 Requires: QtSql-devel = %{version}-%{release}
338 %description -n QtSql-static
339 Classes for database integration using SQL - static libraries.
341 %description -n QtSql-static -l pl.UTF-8
342 Klasy do integracji z bazami danych przy użyciu SQL - biblioteki
343 statyczne. programistyczne.
345 %package -n QtSql-ibase
346 Summary: Database plugin for InterBase/Firebird Qt support
347 Summary(pl.UTF-8): Wtyczka InterBase/Firebird do Qt
348 Summary(pt_BR.UTF-8): Plugin de suporte a InterBase/Firebird para Qt
350 Requires: QtSql = %{version}-%{release}
351 Provides: QtSql-backend = %{version}-%{release}
353 %description -n QtSql-ibase
354 This package contains a plugin for accessing Interbase/Firebird
355 database via the QSql classes.
357 %description -n QtSql-ibase -l pl.UTF-8
358 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z baz
359 danych Interbase/Firebird poprzez klasy QSql.
361 %description -n QtSql-ibase -l pt_BR.UTF-8
362 Plugin de suporte a InterBase/Firebird para Qt.
364 %package -n QtSql-mysql
365 Summary: Database plugin for MySQL Qt support
366 Summary(pl.UTF-8): Wtyczka MySQL do Qt
367 Summary(pt_BR.UTF-8): Plugin de suporte a MySQL para Qt
369 Requires: QtSql = %{version}-%{release}
370 Provides: QtSql-backend = %{version}-%{release}
372 %description -n QtSql-mysql
373 This package contains a plugin for accessing MySQL database via the
376 %description -n QtSql-mysql -l pl.UTF-8
377 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z baz
378 danych MySQL poprzez klasy QSql.
380 %description -n QtSql-mysql -l pt_BR.UTF-8
381 Plugin de suporte a MySQL para Qt.
383 %package -n QtSql-odbc
384 Summary: Database plugin for ODBC Qt support
385 Summary(pl.UTF-8): Wtyczka ODBC do Qt
386 Summary(pt_BR.UTF-8): Plugin de suporte a ODBC para Qt
388 Requires: QtSql = %{version}-%{release}
389 Provides: QtSql-backend = %{version}-%{release}
391 %description -n QtSql-odbc
392 This package contains a plugin for accessing unixODBC services via the
395 %description -n QtSql-odbc -l pl.UTF-8
396 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z usług
397 unixODBC poprzez klasy QSql.
399 %description -n QtSql-odbc -l pt_BR.UTF-8
400 Plugin de suporte a ODBC para Qt.
402 %package -n QtSql-pgsql
403 Summary: Database plugin for PostgreSQL Qt support
404 Summary(pl.UTF-8): Wtyczka PostgreSQL do Qt
405 Summary(pt_BR.UTF-8): Plugin de suporte a PostgreSQL para Qt
407 Requires: QtSql = %{version}-%{release}
408 Provides: QtSql-backend = %{version}-%{release}
410 %description -n QtSql-pgsql
411 This package contains a plugin for accessing PostgreSQL database via
414 %description -n QtSql-pgsql -l pl.UTF-8
415 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z baz
416 danych PostgreSQL poprzez klasy QSql.
418 %description -n QtSql-pgsql -l es.UTF-8
419 Plugin de suporte a PostgreSQL para Qt.
421 %package -n QtSql-sqlite
422 Summary: Database plugin for SQLite 2.x Qt support
423 Summary(pl.UTF-8): Wtyczka SQLite 2.x do Qt
424 Summary(pt_BR.UTF-8): Plugin de suporte a SQLite 2.x para Qt
426 Requires: QtSql = %{version}-%{release}
427 Provides: QtSql-backend = %{version}-%{release}
429 %description -n QtSql-sqlite
430 This package contains a plugin for using the SQLite 2.x library (which
431 allows to acces virtually any SQL database) via the QSql classes.
433 %description -n QtSql-sqlite -l pl.UTF-8
434 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z baz
435 danych SQLite 2.x poprzez klasy QSql.
437 %description -n QtSql-sqlite -l pt_BR.UTF-8
438 Plugin de suporte a SQLite 2.x para Qt.
440 %package -n QtSql-sqlite3
441 Summary: Database plugin for SQLite3 Qt support
442 Summary(pl.UTF-8): Wtyczka SQLite3 do Qt
443 Summary(pt_BR.UTF-8): Plugin de suporte a SQLite3 para Qt
445 Requires: QtSql = %{version}-%{release}
446 Provides: QtSql-backend = %{version}-%{release}
448 %description -n QtSql-sqlite3
449 This package contains a plugin for using the SQLite3 library (which
450 allows to acces virtually any SQL database) via the QSql classes.
452 %description -n QtSql-sqlite3 -l pl.UTF-8
453 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z baz
454 danych SQLite3 poprzez klasy QSql.
456 %description -n QtSql-sqlite3 -l pt_BR.UTF-8
457 Plugin de suporte a SQLite3 para Qt.
461 Summary(pl.UTF-8): Wsparcie dla SVG
463 Requires: QtXml = %{version}-%{release}
465 %description -n QtSvg
468 %description -n QtSvg -l pl.UTF-8
471 %package -n QtSvg-devel
472 Summary: SVG support - development files
473 Summary(pl.UTF-8): Wsparcie dla SVG - pliki programistyczne
474 Group: X11/Development/Libraries
475 Requires: QtSvg = %{version}-%{release}
476 Requires: QtXml-devel = %{version}-%{release}
478 %description -n QtSvg-devel
479 SVG support - development files.
481 %description -n QtSvg-devel -l pl.UTF-8
482 Wsparcie dla SVG - pliki programistyczne.
484 %package -n QtSvg-static
485 Summary: SVG support - static libraries
486 Summary(pl.UTF-8): Wsparcie dla SVG - biblioteki statyczne
487 Group: X11/Development/Libraries
488 Requires: QtSvg-devel = %{version}-%{release}
490 %description -n QtSvg-static
491 SVG support - static libraries.
493 %description -n QtSvg-static -l pl.UTF-8
494 Wsparcie dla SVG - biblioteki statyczne.
497 Summary: Test framework
498 Summary(pl.UTF-8): Szkielet testów
500 Requires: QtCore = %{version}-%{release}
502 %description -n QtTest
505 %description -n QtTest -l pl.UTF-8
508 %package -n QtTest-devel
509 Summary: Test framework - development files
510 Summary(pl.UTF-8): Szkielet testów - pliki programistyczne
511 Group: X11/Development/Libraries
512 Requires: QtCore-devel = %{version}-%{release}
513 Requires: QtTest = %{version}-%{release}
515 %description -n QtTest-devel
516 Test framework - development files.
518 %description -n QtTest-devel -l pl.UTF-8
519 Szkielet testów - pliki programistyczne.
522 Summary: Classes for handling XML
523 Summary(pl.UTF-8): Klasy do obsługi XML-a
525 Requires: QtCore = %{version}-%{release}
527 %description -n QtXml
528 Classes for handling XML.
530 %description -n QtXml -l pl.UTF-8
531 Klasy do obsługi XML-a.
533 %package -n QtXml-devel
534 Summary: Classes for handling XML - development files
535 Summary(pl.UTF-8): Klasy do obsługi XML-a - pliki programistyczne
536 Group: X11/Development/Libraries
537 Requires: QtCore-devel = %{version}-%{release}
538 Requires: QtXml = %{version}-%{release}
540 %description -n QtXml-devel
541 Classes for handling XML - development files.
543 %description -n QtXml-devel -l pl.UTF-8
544 Klasy do obsługi XML-a - pliki programistyczne.
546 %package -n QtXml-static
547 Summary: Classes for handling XML - static libraries
548 Summary(pl.UTF-8): Klasy do obsługi XML-a - biblioteki statyczne
549 Group: X11/Development/Libraries
550 Requires: QtXml-devel = %{version}-%{release}
552 %description -n QtXml-static
553 Classes for handling XML - static libraries.
555 %description -n QtXml-static -l pl.UTF-8
556 Klasy do obsługi XML-a - biblioteki statyczne.
558 %package -n Qt3Support
559 Summary: Qt3 compatibility library
560 Summary(pl.UTF-8): Biblioteka kompatybilności z Qt3
562 Requires: QtCore = %{version}-%{release}
563 Requires: QtGui = %{version}-%{release}
564 Requires: QtNetwork = %{version}-%{release}
565 Requires: QtSql = %{version}-%{release}
566 Requires: QtXml = %{version}-%{release}
568 %description -n Qt3Support
569 Qt3 compatibility library.
571 %description -n Qt3Support -l pl.UTF-8
572 Biblioteka kompatybilności z Qt3.
574 %package -n Qt3Support-devel
575 Summary: Qt3 compatibility library - development files
576 Summary(pl.UTF-8): Biblioteka kompatybilności z Qt3 - pliki programistyczne
577 Group: X11/Development/Libraries
578 Requires: Qt3Support = %{version}-%{release}
579 Requires: QtCore-devel = %{version}-%{release}
580 Requires: QtGui-devel = %{version}-%{release}
581 Requires: QtNetwork-devel = %{version}-%{release}
582 Requires: QtSql-devel = %{version}-%{release}
583 Requires: QtXml-devel = %{version}-%{release}
585 %description -n Qt3Support-devel
586 Qt3 compatibility library - development files.
588 %description -n Qt3Support-devel -l pl.UTF-8
589 Biblioteka kompatybilności z Qt3 - pliki programistyczne.
591 %package -n Qt3Support-static
592 Summary: Qt3 compatibility library - static libraries
593 Summary(pl.UTF-8): Biblioteka kompatybilności z Qt3 - biblioteki statyczne
594 Group: X11/Development/Libraries
595 Requires: Qt3Support-devel = %{version}-%{release}
597 %description -n Qt3Support-static
598 Qt3 compatibility library - static libraries.
600 %description -n Qt3Support-static -l pl.UTF-8
601 Biblioteka kompatybilności z Qt3 - biblioteki statyczne.
603 %package -n QtAssistant
604 Summary: Qt Assistant client library
605 Summary(pl.UTF-8): Biblioteka kliencka Qt Assistant
606 Group: X11/Development/Libraries
607 Requires: QtGui = %{version}-%{release}
608 Requires: QtNetwork = %{version}-%{release}
610 %description -n QtAssistant
611 This library allows to use Qt Assistant as an application's help tool.
613 %description -n QtAssistant -l pl.UTF-8
614 Ta biblioteka umożliwia wykorzystanie Qt Assistanta jako narzędzie
615 pomocy w aplikacjach.
617 %package -n QtAssistant-devel
618 Summary: Qt Assistant client library - development files
619 Summary(pl.UTF-8): Biblioteka kliencka Qt Assistant - pliki programistyczne
620 Group: X11/Development/Libraries
621 Requires: QtAssistant = %{version}-%{release}
622 Requires: QtNetwork-devel = %{version}-%{release}
624 %description -n QtAssistant-devel
625 Development files for Qt Assistant client library.
627 %description -n QtAssistant-devel -l pl.UTF-8
628 Pliki programistyczne biblioteki klienckiej Qt Assistant.
630 %package -n QtAssistant-static
631 Summary: Static Qt Assistant client library
632 Summary(pl.UTF-8): Statyczna biblioteka kliencka Qt Assistant
633 Group: X11/Development/Libraries
634 Requires: QtAssistant-devel = %{version}-%{release}
636 %description -n QtAssistant-static
637 Static Qt Assistant client library.
639 %description -n QtAssistant-static -l pl.UTF-8
640 Statyczna biblioteka kliencka Qt Assistant.
643 Summary: Classes for D-BUS support
644 Summary(pl.UTF-8): Klasy do obsługi D-BUS
646 Requires: QtXml = %{version}-%{release}
647 # is it really required? libs should need just libs, not service
650 %description -n QtDBus
651 This module provides classes for D-BUS support. D-BUS is an
652 Inter-Process Communication (IPC) and Remote Procedure Calling (RPC)
653 mechanism originally developed for Linux to replace existing and
654 competing IPC solutions with one unified protocol.
656 %description -n QtDBus -l pl.UTF-8
657 Ten moduł udostępnia klasy do obsługi D-BUS. D-BUS to mechanizm
658 komunikacji między procesowej (IPC - Inter-Process Communication) i
659 zdalnego wywoływania procedur (RPC - Remote Procedure Calling)
660 stworzony początkowo dla Linuksa, aby zastąpić istniejące i
661 konkurujące ze sobą rozwiązania IPC jednym, ujednoliconym protokołem.
663 %package -n QtDBus-devel
664 Summary: Classes for D-BUS support - development files
665 Summary(pl.UTF-8): Klasy do obsługi D-BUS - pliki programistyczne
666 Group: X11/Development/Libraries
667 Requires: QtDBus = %{version}-%{release}
668 Requires: QtXml-devel = %{version}-%{release}
670 Requires: glib2-devel >= 2.0.0
672 %description -n QtDBus-devel
673 Classes for D-BUS support - development files.
675 %description -n QtDBus-devel -l pl.UTF-8
676 Klasy do obsługi D-BUS - pliki programistyczne.
678 %package -n QtDBus-static
679 Summary: Classes for D-BUS support - static libraries
680 Summary(pl.UTF-8): Klasy do obsługi D-BUS - biblioteki statyczne
681 Group: X11/Development/Libraries
682 Requires: QtDBus-devel = %{version}-%{release}
684 %description -n QtDBus-static
685 Classes for D-BUS support - static libraries.
687 %description -n QtDBus-static -l pl.UTF-8
688 Klasy do obsługi D-BUS - biblioteki statyczne.
690 %package -n QtDesigner
691 Summary: Classes for extending Qt Designer
692 Summary(pl.UTF-8): Klasy do rozbudowy Qt Designera
694 Requires: QtGui = %{version}-%{release}
695 Requires: QtNetwork = %{version}-%{release}
696 Requires: QtXml = %{version}-%{release}
697 Obsoletes: qt4-designer-libs
699 %description -n QtDesigner
700 This module provides classes that allow you to create your own custom
701 widget plugins for Qt Designer, and classes that enable you to access
702 Qt Designer's components.
704 %description -n QtDesigner -l pl.UTF-8
705 Ten moduł dostarcza klasy, które pozwalają tworzyć własne wtyczki dla
706 Qt Designera oraz klasy, które umożliwiają dostęp do jego komponentów.
708 %package -n QtDesigner-devel
709 Summary: Classes for extending Qt Designer - development files
710 Summary(pl.UTF-8): Klasy do rozbudowy Qt Designera - pliki programistyczne
711 Group: X11/Development/Libraries
712 Requires: QtDesigner = %{version}-%{release}
713 Requires: QtGui-devel = %{version}-%{release}
715 %description -n QtDesigner-devel
716 Classes for extending Qt Designer - development files.
718 %description -n QtDesigner-devel -l pl.UTF-8
719 Klasy do rozbudowy Qt Designera - pliki programistyczne.
721 %package -n QtDesigner-static
722 Summary: Classes for extending Qt Designer - static libraries
723 Summary(pl.UTF-8): Klasy do rozbudowy Qt Designera - biblioteki statyczne
724 Group: X11/Development/Libraries
725 Requires: QtDesigner-devel = %{version}-%{release}
727 %description -n QtDesigner-static
728 Classes for extending Qt Designer - static libraries.
730 %description -n QtDesigner-static -l pl.UTF-8
731 Klasy do rozbudowy Qt Designera - biblioteki statyczne.
734 Summary: Classes for scripting applications
735 Summary(pl.UTF-8): Klasy pozwalające dodać obsługę skryptów w aplikacjach
736 Group: X11/Development/Libraries
738 %description -n QtScript
739 The QtScript module provides classes to handle scripts inside
742 %description -n QtScript -l pl.UTF-8
743 Ten moduł dostarcza klasy obsługujące języki skryptowe wewnątrz
746 %package -n QtScript-devel
747 Summary: Classes for scripting applications - development files
748 Summary(pl.UTF-8): Klasy do obsługi skryptów wewnątrz aplikacji - pliki programistyczne
749 Group: X11/Development/Libraries
750 Requires: QtScript = %{version}-%{release}
752 %description -n QtScript-devel
753 Classes for scriptin applications - development files.
755 %description -n QtScript-devel -l pl.UTF-8
756 Klasy do obsługi skryptów wewnątrz aplikacji - pliki programistyczne.
758 %package -n QtScript-static
759 Summary: Classes for scripting applications - static library
760 Summary(pl.UTF-8): Klasy pozwalające dodać obsługę skryptów w aplikacjach - biblioteka statyczna
761 Group: X11/Development/Libraries
762 Requires: QtScript-devel = %{version}-%{release}
764 %description -n QtScript-static
765 Classes for scripting applications - static library.
767 %description -n QtScript-static -l pl.UTF-8
768 Klasy pozwalające dodać obsługę skryptów w aplikacjach - biblioteka
771 %package -n QtUiTools
772 Summary: Classes for handling Qt Designer forms in applications
773 Summary(pl.UTF-8): Klasy do obsługi formularzy Qt Designera w aplikacjach
775 Requires: QtGui = %{version}-%{release}
776 Requires: QtXml = %{version}-%{release}
778 %description -n QtUiTools
779 The QtUiTools module provides classes to handle forms created with Qt
782 %description -n QtUiTools -l pl.UTF-8
783 Moduł QtUiTools udostępnia klasy do obsługi formularzy tworzonych przy
786 %package -n QtUiTools-devel
787 Summary: Classes for handling Qt Designer forms in applications - development files
788 Summary(pl.UTF-8): Klasy do obsługi formularzy Qt Designera w aplikacjach - pliki programistyczne
789 Group: X11/Development/Libraries
790 Requires: QtCore-devel = %{version}-%{release}
791 Requires: QtUiTools = %{version}-%{release}
793 %description -n QtUiTools-devel
794 Classes for handling Qt Designer forms in applications - development
797 %description -n QtUiTools-devel -l pl.UTF-8
798 Klasy do obsługi formularzy Qt Designera w aplikacjach - pliki
801 %package -n QtUiTools-static
802 Summary: Classes for handling Qt Designer forms in applications - static library
803 Summary(pl.UTF-8): Klasy do obsługi formularzy Qt Designera w aplikacjach - biblioteka statyczna
804 Group: X11/Development/Libraries
805 Requires: QtUiTools-devel = %{version}-%{release}
807 %description -n QtUiTools-static
808 Classes for handling Qt Designer forms in applications - static
811 %description -n QtUiTools-static -l pl.UTF-8
812 Klasy do obsługi formularzy Qt Designera w aplikacjach - biblioteka
816 Summary: Qt documentation browser
817 Summary(pl.UTF-8): Przeglądarka dokumentacji Qt
818 Group: X11/Development/Tools
819 Requires: %{name}-doc = %{version}-%{release}
820 Requires: QtAssistant = %{version}-%{release}
821 Requires: QtDBus = %{version}-%{release}
823 %description assistant
824 Qt Assistant is a tool for browsing on-line documentation with
825 indexing, bookmarks and full-text search.
827 %description assistant -l pl.UTF-8
828 Qt Assistant to narzędzie do przeglądania dokumentacji z możliwością
829 indeksowania, dodawania zakładek i pełnotekstowego wyszukiwania.
832 Summary: Build tools for Qt4
833 Summary(pl.UTF-8): Narzędzia do budowania dla Qt4
834 Group: X11/Development/Tools
835 Requires: QtCore = %{version}-%{release}
836 Requires: QtXml = %{version}-%{release}
839 This package includes the Qt resource compiler (rcc), meta objects
840 compiler (moc), user interface compiler (uic) and qt3to4 include names
843 %description build -l pl.UTF-8
844 Ten pakiet zawiera kompilator zasobów Qt (rcc), kompilator
845 metaobiektów (moc), kompilator interfejsów użytkownika (uic) oraz
846 konwerter nazw plików nagłówkowych qt3to4.
849 Summary: IDE used for GUI designing with Qt library
850 Summary(pl.UTF-8): IDE służące do projektowania GUI za pomocą biblioteki Qt
851 Group: X11/Applications
852 Requires: QtAssistant = %{version}-%{release}
853 Requires: QtDesigner = %{version}-%{release}
855 %description designer
856 An advanced tool used for GUI designing with Qt library.
858 %description designer -l pl.UTF-8
859 Zaawansowane narzędzie służące do projektowania interfejsu graficznego
860 za pomocą biblioteki Qt.
863 Summary: Translation helper for Qt
864 Summary(pl.UTF-8): Aplikacja ułatwiająca tłumaczenie aplikacji oparty o Qt
865 Group: X11/Development/Tools
866 Requires: QtAssistant = %{version}-%{release}
867 Requires: QtUiTools = %{version}-%{release}
869 %description linguist
870 This program provides an interface that shortens and helps systematize
871 the process of translating GUIs. Qt Linguist takes all of the text of
872 a UI that will be shown to the user, and presents it to a human
873 translator in a simple window. When one UI text is translated, the
874 program automatically progresses to the next, until they are all
877 %description linguist -l pl.UTF-8
878 Ten program oferuje interfejs znacznie przyśpieszający proces
879 tłumaczenia interfejsu użytkownika. Zbiera wszystkie teksty
880 przeznaczone do tłumaczenia i przedstawia w łatwym w obsłudze oknie.
881 Gdy jeden z nich jest już przetłumaczony, automatycznie przechodzi do
882 następnego, aż wszystkie będą przetłumaczone.
885 Summary: Qt makefile generator
886 Summary(pl.UTF-8): Generator plików makefile dla aplikacji Qt
887 Group: X11/Development/Tools
890 A powerful makefile generator. It can create makefiles on any platform
891 from a simple .pro definitions file.
893 %description qmake -l pl.UTF-8
894 Rozbudowany generator plików makefile. Potrafi tworzyć pliki makefile
895 na każdej platformi na podstawie łatwego w przygotowaniu pliku .pro.
898 Summary: Qt widgets configuration tool
899 Summary(pl.UTF-8): Narzędzie do konfigurowania widgetów Qt
900 Group: X11/Applications
901 Requires: Qt3Support = %{version}-%{release}
902 Requires: QtGui = %{version}-%{release}
903 Requires: QtNetwork = %{version}-%{release}
904 Requires: QtSql = %{version}-%{release}
905 Requires: QtXml = %{version}-%{release}
907 %description qtconfig
908 A tool for configuring look and behavior of Qt widgets.
910 %description qtconfig -l pl.UTF-8
911 Narzędie do konfiguracji wyglądu i zachowania widgetów Qt.
914 Summary: Qt Virtual framebuffer
915 Summary(pl.UTF-8): Wirtualny framebuffer dla Qt
916 Group: X11/Development/Libraries
917 Requires: QtGui = %{version}-%{release}
918 Requires: QtOpenGL = %{version}-%{release}
921 Qt Virtual framebuffer allows you to run Qt/Embedded applications in X
924 %description -n qvfb -l pl.UTF-8
925 Qt Virtual framebuffer pozwala na uruchamianie aplikacji Qt/Embedded w
929 Summary: Demos of new Qt4 features
930 Summary(pl.UTF-8): Programy demonstrujące nowe możliwości Qt4
931 Group: X11/Development/Libraries
932 Requires: QtAssistant = %{version}-%{release}
933 Requires: QtXml = %{version}-%{release}
936 Demos are spiders that fly.
938 %description demos -l pl.UTF-8
939 Dema to latające pająki.
942 Summary: Qt Documentation in HTML format
943 Summary(pl.UTF-8): Dokumentacja Qt w formacie HTML
944 Group: X11/Development/Libraries
947 Qt documentation in HTML format.
949 %description doc -l pl.UTF-8
950 Dokumentacja qt w formacie HTML.
953 Summary: Example programs bundled with Qt
954 Summary(pl.UTF-8): Ćwiczenia i przykłady do Qt
955 Summary(pt_BR.UTF-8): Programas exemplo desenvolvidos com o Qt
956 Group: X11/Development/Libraries
957 # no it does not , we cant be sure the user wants to compile them right?
958 # he might just want to take a look, anwyay no single devel package now
959 #Requires: %{name}-devel = %{version}-%{release}
961 %description examples
962 Example programs bundled with Qt version.
964 %description examples -l pl.UTF-8
965 Ćwiczenia/przykłady dołączone do Qt.
967 %description examples -l pt_BR.UTF-8
968 Programas exemplo para o Qt versão.
971 %setup -q -n qt-x11-opensource-src-%{version}
981 %{__sed} -i -e 's,usr/X11R6/,usr/g,' mkspecs/linux-g++-64/qmake.conf \
982 mkspecs/common/linux.conf
984 # change QMAKE FLAGS to build
986 s|QMAKE_CC.*=.*gcc|QMAKE_CC\t\t= %{__cc}|;
987 s|QMAKE_CXX.*=.*g++|QMAKE_CXX\t\t= %{__cxx}|;
988 s|QMAKE_LINK.*=.*g++|QMAKE_LINK\t\t= %{__cxx}|;
989 s|QMAKE_LINK_SHLIB.*=.*g++|QMAKE_LINK_SHLIB\t= %{__cxx}|;
990 s|QMAKE_CFLAGS_RELEASE.*|QMAKE_CFLAGS_RELEASE\t+= %{rpmcflags}|;
991 s|QMAKE_CXXFLAGS_RELEASE.*|QMAKE_CXXFLAGS_RELEASE\t+= %{rpmcxxflags}|;
992 s|QMAKE_CFLAGS_DEBUG.*|QMAKE_CFLAGS_DEBUG\t+= %{debugcflags}|;
993 s|QMAKE_CXXFLAGS_DEBUG.*|QMAKE_CXXFLAGS_DEBUG\t+= %{debugcflags}|;
994 ' mkspecs/common/g++.conf
997 s|QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT = %{_includedir}/qt4|;
998 ' mkspecs/common/linux.conf
1001 # pass OPTFLAGS to build qmake itself with optimization
1002 export OPTFLAGS="%{rpmcflags}"
1003 export PATH=$PWD/bin:$PATH
1005 ##################################
1006 # DEFAULT OPTIONS FOR ALL BUILDS #
1007 ##################################
1010 -DQT_CLEAN_NAMESPACE \
1013 -bindir %{_qtdir}/bin \
1014 -docdir %{_docdir}/%{name}-doc \
1015 -headerdir %{_includedir}/qt4 \
1016 -libdir %{_libdir} \
1018 -plugindir %{_qtdir}/plugins \
1019 -datadir %{_datadir}/qt4 \
1020 -translationdir %{_datadir}/locale/ \
1021 -sysconfdir %{_sysconfdir}/qt4 \
1022 -examplesdir %{_examplesdir}/qt4 \
1023 -demosdir %{_examplesdir}/qt4-demos \
1026 -%{!?with_pch:no-}pch \
1028 %{!?with_sse:-no-sse} \
1029 %{!?with_sse2:-no-sse2} \
1038 -I%{_includedir}/postgresql/server \
1039 -I%{_includedir}/mysql \
1040 %{?with_cups:-cups} \
1041 %{?with_nas:-system-nas-sound} \
1043 %{!?debug:-release} \
1047 -no-separate-debug-info \
1057 ##################################
1058 # STATIC MULTI-THREAD #
1059 ##################################
1061 %if %{with static_libs}
1063 -%{!?with_mysql:no}%{?with_mysql:qt}-sql-mysql \
1064 -%{!?with_odbc:no}%{?with_odbc:qt}-sql-odbc \
1065 -%{!?with_pgsql:no}%{?with_pgsql:qt}-sql-psql \
1066 -%{!?with_sqlite3:no}%{?with_sqlite3:qt}-sql-sqlite \
1067 -%{!?with_sqlite:no}%{?with_sqlite:qt}-sql-sqlite2 \
1068 -%{!?with_ibase:no}%{?with_ibase:qt}-sql-ibase \
1071 echo "yes" | ./configure $COMMONOPT $OPT
1074 %{__make} -C tools/assistant/lib
1075 %{__make} -C tools/designer
1076 %{__make} -C tools/qdbus/src
1077 if [ ! -d staticlib ]; then
1079 cp -a lib/*.a staticlib
1084 ##################################
1085 # SHARED MULTI-THREAD #
1086 ##################################
1089 -%{!?with_mysql:no}%{?with_mysql:plugin}-sql-mysql \
1090 -%{!?with_odbc:no}%{?with_odbc:plugin}-sql-odbc \
1091 -%{!?with_pgsql:no}%{?with_pgsql:plugin}-sql-psql \
1092 -%{!?with_sqlite3:no}%{?with_sqlite3:plugin}-sql-sqlite \
1093 -%{!?with_sqlite:no}%{?with_sqlite:plugin}-sql-sqlite2 \
1094 -%{!?with_ibase:no}%{?with_ibase:plugin}-sql-ibase"
1096 echo "yes" | ./configure $COMMONOPT $OPT
1100 sub-tools-all-ordered \
1101 sub-demos-all-ordered \
1102 sub-examples-all-ordered
1105 rm -rf $RPM_BUILD_ROOT
1106 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir},%{_pkgconfigdir}}
1107 install -d $RPM_BUILD_ROOT%{_qtdir}/plugins/{crypto,network}
1110 INSTALL_ROOT=$RPM_BUILD_ROOT
1112 # kill -L/inside/builddir from *.la and *.pc (bug #77152)
1113 %{__sed} -i -e "s,-L$PWD/lib,,g" $RPM_BUILD_ROOT%{_libdir}/*.{la,prl}
1114 %{__sed} -i -e "s,-L$PWD/lib,,g" $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc
1116 s|moc_location=.*|moc_location=%{_bindir}/moc-qt4|;
1117 s|uic_location=.*|uic_location=%{_bindir}/uic-qt4|;
1118 ' $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc
1121 install bin/findtr $RPM_BUILD_ROOT%{_qtdir}/bin
1123 cd $RPM_BUILD_ROOT%{_bindir}
1124 ln -sf ../%{_lib}/qt4/bin/assistant assistant-qt4
1125 ln -sf ../%{_lib}/qt4/bin/designer designer-qt4
1126 ln -sf ../%{_lib}/qt4/bin/findtr findtr-qt4
1127 ln -sf ../%{_lib}/qt4/bin/linguist linguist-qt4
1128 ln -sf ../%{_lib}/qt4/bin/lrelease lrelease-qt4
1129 ln -sf ../%{_lib}/qt4/bin/lupdate lupdate-qt4
1130 ln -sf ../%{_lib}/qt4/bin/moc moc-qt4
1131 ln -sf ../%{_lib}/qt4/bin/qmake qmake-qt4
1132 ln -sf ../%{_lib}/qt4/bin/qtconfig qtconfig-qt4
1133 ln -sf ../%{_lib}/qt4/bin/uic uic-qt4
1134 ln -sf ../%{_lib}/qt4/bin/qt3to4 .
1135 ln -sf ../%{_lib}/qt4/bin/rcc .
1136 ln -sf ../%{_lib}/qt4/bin/uic3 .
1137 ln -sf ../%{_lib}/qt4/bin/pixeltool .
1138 ln -sf ../%{_lib}/qt4/bin/qdbus .
1139 ln -sf ../%{_lib}/qt4/bin/qdbuscpp2xml .
1140 ln -sf ../%{_lib}/qt4/bin/qdbusxml2cpp .
1141 ln -sf ../%{_lib}/qt4/bin/qdbusviewer .
1142 ln -sf ../%{_lib}/qt4/bin/qvfb .
1145 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/qtconfig-qt4.desktop
1146 install tools/qtconfig/images/appicon.png \
1147 $RPM_BUILD_ROOT%{_pixmapsdir}/qtconfig-qt4.png
1149 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}/linguist-qt4.desktop
1150 install tools/linguist/linguist/images/appicon.png \
1151 $RPM_BUILD_ROOT%{_pixmapsdir}/linguist-qt4.png
1153 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/assistant-qt4.desktop
1154 install tools/assistant/images/assistant.png \
1155 $RPM_BUILD_ROOT%{_pixmapsdir}/assistant-qt4.png
1157 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/designer-qt4.desktop
1158 install tools/designer/src/designer/images/designer.png \
1159 $RPM_BUILD_ROOT%{_pixmapsdir}/designer-qt4.png
1161 %if %{with static_libs}
1162 install staticlib/*.a $RPM_BUILD_ROOT%{_libdir}
1168 cp %{SOURCE6} translations/qt_pl.ts
1169 LD_LIBRARY_PATH=lib bin/lrelease translations/qt_pl.ts -qm translations/qt_pl.qm
1171 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*.qm
1172 for file in translations/*.qm tools/assistant/*.qm tools/designer/designer/*.qm tools/linguist/linguist/*.qm; do
1173 [ ! -f $file ] && continue
1174 lang=`echo $file | sed -r 's:.*/[a-zA-Z]*_(.*).qm:\1:'`
1175 MOD=`echo $file | sed -r 's:.*/([a-zA-Z]*)_.*.qm:\1:'`
1176 [ "$lang" == "iw" ] && lang=he
1178 [ "$MOD" == "qt4-qt" ] && MOD=qt4
1179 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES
1180 cp $file $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/$MOD.qm
1183 cd $RPM_BUILD_ROOT%{_includedir}/qt4/Qt
1184 for f in ../Qt{3Support,Assistant,Core,DBus,Designer,Gui,Network,OpenGL,Script,Sql,Svg,Test,UiTools,Xml}/*; do
1185 if [ ! -d $f ]; then
1186 ln -sf $f `basename $f`
1191 mv $RPM_BUILD_ROOT%{_datadir}/locale/ja_jp/LC_MESSAGES/qt4.qm \
1192 $RPM_BUILD_ROOT%{_datadir}/locale/ja/LC_MESSAGES/qt4.qm
1194 # Ship doc & qmake stuff
1195 ln -s %{_docdir}/%{name}-doc $RPM_BUILD_ROOT%{_qtdir}/doc
1196 ln -s %{_datadir}/qt4/mkspecs $RPM_BUILD_ROOT%{_qtdir}/mkspecs
1198 for f in $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc; do
1199 HAVEDEBUG=`echo $f | grep _debug | wc -l`
1200 MODULE=`echo $f | basename $f | cut -d. -f1 | cut -d_ -f1`
1201 MODULE2=`echo $MODULE | tr a-z A-Z | sed s:QT::`
1204 if [ "$MODULE2" == "3SUPPORT" ]; then
1205 DEFS="$DEFS -DQT3_SUPPORT -DQT_QT3SUPPORT_LIB"
1207 DEFS="$DEFS -DQT_"$MODULE2"_LIB"
1209 [ "$HAVEDEBUG" -eq 0 ] && DEFS="$DEFS -DQT_NO_DEBUG"
1211 sed -i -e "s:-DQT_SHARED:-DQT_SHARED $DEFS:" $f
1214 # Prepare some files list
1216 RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null`
1217 [ "$RESULT" == "" ] && return # XXX this is never true due $RPM_BUILD_ROOT being set
1218 r=`echo $RESULT | awk '{ print $1 }'`
1220 if [ -d "$r" ]; then
1221 echo "%%dir $2" >> $1.files
1222 elif [ -x "$r" ] ; then
1223 echo "%%attr(755,root,root) $2" >> $1.files
1224 elif [ -f "$r" ]; then
1225 echo "$2" >> $1.files
1227 echo "Error generation $1 files list!"
1228 echo "$r: no such file or direcotry!"
1235 echo "%%defattr(644,root,root,755)" > $MODULE-devel.files
1236 ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.so"
1237 ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.la"
1238 ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.prl"
1239 ifecho $MODULE-devel "%{_pkgconfigdir}/$MODULE*.pc"
1240 if [ -d "$RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE" ]; then
1241 ifecho $MODULE-devel %{_includedir}/qt4/$MODULE
1243 for f in `find $RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE -printf "%%P "`; do
1244 ifecho $MODULE-devel %{_includedir}/qt4/$MODULE/$f
1245 ifecho $MODULE-devel %{_includedir}/qt4/Qt/$f
1247 for f in $@; do ifecho $MODULE-devel $f; done
1250 mkdevfl QtCore %{_includedir}/qt4 %{_includedir}/qt4/Qt
1251 mkdevfl QtDBus %{_qtdir}/bin/qdbuscpp2xml %{_qtdir}/bin/qdbusxml2cpp %{_bindir}/qdbuscpp2xml %{_bindir}/qdbusxml2cpp
1262 # without *.la *.pc etc.
1263 mkdevfl QtAssistant || /bin/true
1264 mkdevfl QtDesigner || /bin/true
1265 mkdevfl QtUiTools || /bin/true
1267 echo "%defattr(644,root,root,755)" > examples.files
1268 ifecho examples %{_examplesdir}/qt4
1269 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4 -printf "%%P "`; do
1270 ifecho examples %{_examplesdir}/qt4/$f
1273 echo "%defattr(644,root,root,755)" > demos.files
1274 ifecho demos "%{_examplesdir}/qt4-demos"
1275 ifecho demos "%{_qtdir}/bin/qtdemo"
1276 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4-demos -printf "%%P "`; do
1277 ifecho demos %{_examplesdir}/qt4-demos/$f
1281 rm -rf $RPM_BUILD_ROOT
1283 %post -n QtCore -p /sbin/ldconfig
1284 %postun -n QtCore -p /sbin/ldconfig
1286 %post -n QtDBus -p /sbin/ldconfig
1287 %postun -n QtDBus -p /sbin/ldconfig
1289 %post -n QtGui -p /sbin/ldconfig
1290 %postun -n QtGui -p /sbin/ldconfig
1292 %post -n QtNetwork -p /sbin/ldconfig
1293 %postun -n QtNetwork -p /sbin/ldconfig
1295 %post -n QtOpenGL -p /sbin/ldconfig
1296 %postun -n QtOpenGL -p /sbin/ldconfig
1298 %post -n QtScript -p /sbin/ldconfig
1299 %postun -n QtScript -p /sbin/ldconfig
1301 %post -n QtSql -p /sbin/ldconfig
1302 %postun -n QtSql -p /sbin/ldconfig
1304 %post -n QtSvg -p /sbin/ldconfig
1305 %postun -n QtSvg -p /sbin/ldconfig
1307 %post -n QtTest -p /sbin/ldconfig
1308 %postun -n QtTest -p /sbin/ldconfig
1310 %post -n QtXml -p /sbin/ldconfig
1311 %postun -n QtXml -p /sbin/ldconfig
1313 %post -n Qt3Support -p /sbin/ldconfig
1314 %postun -n Qt3Support -p /sbin/ldconfig
1316 %post -n QtAssistant -p /sbin/ldconfig
1317 %postun -n QtAssistant -p /sbin/ldconfig
1319 %post -n QtDesigner -p /sbin/ldconfig
1320 %postun -n QtDesigner -p /sbin/ldconfig
1322 %post -n QtUiTools -p /sbin/ldconfig
1323 %postun -n QtUiTools -p /sbin/ldconfig
1326 %defattr(644,root,root,755)
1327 %attr(755,root,root) %{_libdir}/libQtCore.so.*.*
1330 %dir %{_qtdir}/plugins
1331 %dir %{_qtdir}/plugins/accessible
1332 %dir %{_qtdir}/plugins/codecs
1333 %dir %{_qtdir}/plugins/crypto
1334 %dir %{_qtdir}/plugins/iconengines
1335 %dir %{_qtdir}/plugins/imageformats
1336 %dir %{_qtdir}/plugins/inputmethods
1337 %dir %{_qtdir}/plugins/network
1338 %dir %{_qtdir}/plugins/sqldrivers
1339 %dir %{_datadir}/qt4
1340 %lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/qt4.qm
1341 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt4.qm
1342 %lang(es) %{_datadir}/locale/es/LC_MESSAGES/qt4.qm
1343 %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qt4.qm
1344 %lang(he) %{_datadir}/locale/he/LC_MESSAGES/qt4.qm
1345 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/qt4.qm
1346 %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/qt4.qm
1347 %lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/qt4.qm
1348 %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qt4.qm
1349 %lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/qt4.qm
1350 %lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/qt4.qm
1351 %lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/qt4.qm
1352 %lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt4.qm
1355 %defattr(644,root,root,755)
1356 %attr(755,root,root) %{_bindir}/qdbus
1357 %attr(755,root,root) %{_bindir}/qdbusviewer
1358 %attr(755,root,root) %{_libdir}/libQtDBus.so.*.*
1359 %attr(755,root,root) %{_qtdir}/bin/qdbus
1360 %attr(755,root,root) %{_qtdir}/bin/qdbusviewer
1363 %defattr(644,root,root,755)
1364 %attr(755,root,root) %{_libdir}/libQtGui.so.*.*
1365 %attr(755,root,root) %{_qtdir}/plugins/accessible/*.so
1366 %attr(755,root,root) %{_qtdir}/plugins/codecs/*.so
1367 %attr(755,root,root) %{_qtdir}/plugins/iconengines/*.so
1368 %attr(755,root,root) %{_qtdir}/plugins/imageformats/*.so
1369 %attr(755,root,root) %{_qtdir}/plugins/inputmethods/*.so
1372 %defattr(644,root,root,755)
1373 %attr(755,root,root) %{_libdir}/libQtNetwork.so.*.*
1376 %defattr(644,root,root,755)
1377 %attr(755,root,root) %{_libdir}/libQtOpenGL.so.*.*
1380 %defattr(644,root,root,755)
1381 %attr(755,root,root) %{_libdir}/libQtScript.so.*.*
1384 %defattr(644,root,root,755)
1385 %attr(755,root,root) %{_libdir}/libQtSql.so.*.*
1388 %files -n QtSql-mysql
1389 %defattr(644,root,root,755)
1390 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlmysql.so
1394 %files -n QtSql-pgsql
1395 %defattr(644,root,root,755)
1396 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlpsql.so
1400 %files -n QtSql-sqlite
1401 %defattr(644,root,root,755)
1402 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlite2.so
1406 %files -n QtSql-sqlite3
1407 %defattr(644,root,root,755)
1408 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlite.so
1412 %files -n QtSql-ibase
1413 %defattr(644,root,root,755)
1414 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlibase.so
1418 %files -n QtSql-odbc
1419 %defattr(644,root,root,755)
1420 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlodbc.so
1424 %defattr(644,root,root,755)
1425 %attr(755,root,root) %{_libdir}/libQtSvg.so.*.*
1428 %defattr(644,root,root,755)
1429 %attr(755,root,root) %{_libdir}/libQtTest.so.*.*
1432 %defattr(644,root,root,755)
1433 %attr(755,root,root) %{_libdir}/libQtXml.so.*.*
1435 %files -n Qt3Support
1436 %defattr(644,root,root,755)
1437 %attr(755,root,root) %{_libdir}/libQt3Support.so.*.*
1439 %files -n QtAssistant
1440 %defattr(644,root,root,755)
1441 %attr(755,root,root) %{_libdir}/libQtAssistantClient.so.*.*
1443 %files -n QtDesigner
1444 %defattr(644,root,root,755)
1445 %attr(755,root,root) %{_libdir}/libQtDesigner.so.*.*
1446 %attr(755,root,root) %{_libdir}/libQtDesignerComponents.so.*.*
1447 %dir %{_qtdir}/plugins/designer
1448 %attr(755,root,root) %{_qtdir}/plugins/designer/*.so
1451 %defattr(644,root,root,755)
1452 %attr(755,root,root) %{_libdir}/libQtUiTools.so.*.*
1455 %defattr(644,root,root,755)
1456 %attr(755,root,root) %{_bindir}/pixeltool
1457 %attr(755,root,root) %{_bindir}/assistant-qt4
1458 %attr(755,root,root) %{_qtdir}/bin/pixeltool
1459 %attr(755,root,root) %{_qtdir}/bin/assistant
1460 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt4-assistant.qm
1461 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/qt4-assistant.qm
1462 %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/qt4-assistant.qm
1463 %lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt4-assistant.qm
1464 %{_desktopdir}/assistant-qt4.desktop
1465 %{_pixmapsdir}/assistant-qt4.png
1468 %defattr(644,root,root,755)
1469 %attr(755,root,root) %{_bindir}/rcc
1470 %attr(755,root,root) %{_bindir}/moc-qt4
1471 %attr(755,root,root) %{_bindir}/qt3to4
1472 %attr(755,root,root) %{_bindir}/uic-qt4
1473 %attr(755,root,root) %{_qtdir}/bin/rcc
1474 %attr(755,root,root) %{_qtdir}/bin/moc
1475 %attr(755,root,root) %{_qtdir}/bin/qt3to4
1476 %attr(755,root,root) %{_qtdir}/bin/uic
1477 %{_datadir}/qt4/q3porting.xml
1480 %defattr(644,root,root,755)
1481 %attr(755,root,root) %{_bindir}/designer-qt4
1482 %attr(755,root,root) %{_qtdir}/bin/designer
1483 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt4-designer.qm
1484 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/qt4-designer.qm
1485 %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/qt4-designer.qm
1486 %lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt4-designer.qm
1487 %{_desktopdir}/designer-qt4.desktop
1488 %{_pixmapsdir}/designer-qt4.png
1491 %defattr(644,root,root,755)
1492 %attr(755,root,root) %{_bindir}/findtr-qt4
1493 %attr(755,root,root) %{_bindir}/linguist-qt4
1494 %attr(755,root,root) %{_bindir}/lrelease-qt4
1495 %attr(755,root,root) %{_bindir}/lupdate-qt4
1496 %attr(755,root,root) %{_qtdir}/bin/findtr
1497 %attr(755,root,root) %{_qtdir}/bin/linguist
1498 %attr(755,root,root) %{_qtdir}/bin/lrelease
1499 %attr(755,root,root) %{_qtdir}/bin/lupdate
1500 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/qt4-linguist.qm
1501 %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/qt4-linguist.qm
1502 %lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt4-linguist.qm
1503 %{_datadir}/qt4/phrasebooks
1504 %{_desktopdir}/linguist-qt4.desktop
1505 %{_pixmapsdir}/linguist-qt4.png
1508 %defattr(644,root,root,755)
1509 %attr(755,root,root) %{_bindir}/qmake-qt4
1510 %attr(755,root,root) %{_qtdir}/bin/qmake
1511 %{_datadir}/qt4/mkspecs
1515 %defattr(644,root,root,755)
1516 %attr(755,root,root) %{_bindir}/qtconfig-qt4
1517 %attr(755,root,root) %{_qtdir}/bin/qtconfig
1518 %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/qt4-qtconfig.qm
1519 %lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt4-qtconfig.qm
1520 %{_desktopdir}/qtconfig-qt4.desktop
1521 %{_pixmapsdir}/qtconfig-qt4.png
1524 %defattr(644,root,root,755)
1525 %attr(755,root,root) %{_bindir}/qvfb
1526 %attr(755,root,root) %{_qtdir}/bin/qvfb
1527 %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/qt4-qvfb.qm
1528 %lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt4-qvfb.qm
1531 %defattr(644,root,root,755)
1532 %{_docdir}/%{name}-doc
1535 %files -n QtCore-devel -f QtCore-devel.files
1536 %defattr(644,root,root,755)
1538 %files -n QtDBus-devel -f QtDBus-devel.files
1539 %defattr(644,root,root,755)
1541 %files -n QtDesigner-devel -f QtDesigner-devel.files
1542 %defattr(644,root,root,755)
1544 %files -n QtGui-devel -f QtGui-devel.files
1545 %defattr(644,root,root,755)
1547 %files -n QtNetwork-devel -f QtNetwork-devel.files
1548 %defattr(644,root,root,755)
1550 %files -n QtOpenGL-devel -f QtOpenGL-devel.files
1551 %defattr(644,root,root,755)
1553 %files -n QtScript-devel -f QtScript-devel.files
1554 %defattr(644,root,root,755)
1556 %files -n QtSql-devel -f QtSql-devel.files
1557 %defattr(644,root,root,755)
1559 %files -n QtSvg-devel -f QtSvg-devel.files
1560 %defattr(644,root,root,755)
1562 %files -n QtTest-devel -f QtTest-devel.files
1563 %defattr(644,root,root,755)
1565 %files -n QtXml-devel -f QtXml-devel.files
1566 %defattr(644,root,root,755)
1568 %files -n Qt3Support-devel -f Qt3Support-devel.files
1569 %defattr(644,root,root,755)
1570 %attr(755,root,root) %{_bindir}/uic3
1571 %attr(755,root,root) %{_qtdir}/bin/uic3
1573 %files -n QtAssistant-devel -f QtAssistant-devel.files
1574 %defattr(644,root,root,755)
1576 %files -n QtUiTools-devel -f QtUiTools-devel.files
1577 %defattr(644,root,root,755)
1579 %if %{with static_libs}
1580 %files -n QtCore-static
1581 %defattr(644,root,root,755)
1582 %{_libdir}/libQtCore.a
1584 %files -n QtDBus-static
1585 %defattr(644,root,root,755)
1586 %{_libdir}/libQtDBus.a
1588 %files -n QtGui-static
1589 %defattr(644,root,root,755)
1590 %{_libdir}/libQtGui.a
1592 %files -n QtNetwork-static
1593 %defattr(644,root,root,755)
1594 %{_libdir}/libQtNetwork.a
1596 %files -n QtOpenGL-static
1597 %defattr(644,root,root,755)
1598 %{_libdir}/libQtOpenGL.a
1600 %files -n QtScript-static
1601 %defattr(644,root,root,755)
1602 %{_libdir}/libQtScript.a
1604 %files -n QtSql-static
1605 %defattr(644,root,root,755)
1606 %{_libdir}/libQtSql.a
1608 %files -n QtSvg-static
1609 %defattr(644,root,root,755)
1610 %{_libdir}/libQtSvg.a
1612 %files -n QtXml-static
1613 %defattr(644,root,root,755)
1614 %{_libdir}/libQtXml.a
1616 %files -n Qt3Support-static
1617 %defattr(644,root,root,755)
1618 %{_libdir}/libQt3Support.a
1620 %files -n QtAssistant-static
1621 %defattr(644,root,root,755)
1622 %{_libdir}/libQtAssistantClient.a
1624 %files -n QtDesigner-static
1625 %defattr(644,root,root,755)
1626 %{_libdir}/libQtDesigner.a
1627 %{_libdir}/libQtDesignerComponents.a
1629 %files -n QtUiTools-static
1630 %defattr(644,root,root,755)
1631 %{_libdir}/libQtUiTools.a
1634 %files demos -f demos.files
1635 %defattr(644,root,root,755)
1637 %files examples -f examples.files
1638 %defattr(644,root,root,755)