3 # - better descriptions
5 # - check if translations are available
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 sqlite3 # don't build SQLite3 plugin
16 %bcond_without sqlite # don't build SQLite2 plugin
17 %bcond_without ibase # don't build ibase (InterBase/Firebird) plugin
18 %bcond_without pch # disable pch in qmake
19 %bcond_with sse # use SSE instructions in gui/painting module
20 %bcond_with sse2 # use SSE2 instructions
22 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
26 %ifarch pentium3 pentium4 %{x8664}
30 %ifarch pentium4 %{x8664}
35 %{!?with_sqlite3:%{!?with_sqlite:%{!?with_ibase:%{!?with_mysql:%{!?with_pgsql:%{!?with_odbc:%undefine _withsql}}}}}}
37 Summary: The Qt GUI application framework
38 Summary(es.UTF-8): Biblioteca para ejecutar aplicaciones GUI Qt
39 Summary(pl.UTF-8): Biblioteka Qt do tworzenia GUI
40 Summary(pt_BR.UTF-8): Estrutura para rodar aplicações GUI Qt
46 Source0: ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-%{version}.tar.gz
47 # Source0-md5: 8012acea71b35c18247bd92c4721589d
48 Source2: %{name}-qtconfig.desktop
49 Source3: %{name}-designer.desktop
50 Source4: %{name}-assistant.desktop
51 Source5: %{name}-linguist.desktop
52 Source6: %{name}_pl.ts
53 Patch0: %{name}-tools.patch
54 Patch1: %{name}-qt_copy.patch
55 Patch2: %{name}-buildsystem.patch
56 Patch3: %{name}-locale.patch
58 Patch6: %{name}-antialias.patch
59 Patch7: %{name}-support-cflags-with-commas.patch
60 Patch8: %{name}-build-lib-static.patch
61 Patch9: %{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}
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 < %{version}
97 BuildConflicts: QtCore-devel < %{version}
98 Obsoletes: qt-extensions
100 Conflicts: kdelibs <= 8:3.2-0.030602.1
101 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
103 %define _noautoreqdep libGL.so.1 libGLU.so.1
104 %define _noautostrip '.*_debug\\.so*'
106 %define specflags -fno-strict-aliasing
108 %define _qtdir %{_libdir}/qt4
111 Qt is a complete C++ application development framework, which includes
112 a class library and tools for multiplatform development and
113 internationalization. Using Qt, a single source code tree can build
114 applications that run natively on different platforms (Windows,
115 Unix/Linux, Mac OS X, embedded Linux).
117 Qt has a rich set of standard widgets, and lets you write custom
118 controls. It encapsulates four different platform-specific APIs, and
119 the APIs for file-handling, networking, process-handling, threading,
120 database access, etc. Qt now also has Motif migration oraz Netscape
123 %description -l es.UTF-8
124 Contiene las bibliotecas compartidas necesarias para ejecutar
125 aplicaciones Qt, bien como los archivos README.
127 %description -l pl.UTF-8
128 Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w
129 języku C++, w którego skład wchodzi biblioteka z klasami oraz
130 wieloplatformowymi narzędziami do rozwijania i tłumaczenia aplikacji.
131 Z pomocą Qt jeden kod źródłowy może być natywnie uruchamiany na
132 różnych platformach (Windows, Unix/Linux, Mac OS X).
134 Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale
135 pozwala również na pisanie własnych elementów. Łączy w sposób
136 niewidoczny dla programisty interfejsy programowania różnych systemów,
137 tworząc w ten sposób jeden interfejs dla obsługi plików, sieci,
138 procesów, wątków, baz danych itp. Umożliwia także łatwe przenoszenie
139 na Qt aplikacji korzystających z Motif oraz pisanie wtyczek z
140 wykorzystaniem Netscape LiveConnect.
143 Summary: Core classes used by other modules
144 Summary(pl.UTF-8): Podstawowe klasy używane przez inne moduły
146 Requires(post): /sbin/ldconfig
148 %description -n QtCore
149 Core classes used by other modules.
151 %description -n QtCore -l pl.UTF-8
152 Podstawowe klasy używane przez inne moduły.
154 %package -n QtCore-devel
155 Summary: Core classes used by other modules - development files
156 Summary(pl.UTF-8): Podstawowe klasy używane przez inne moduły - pliki programistyczne
157 Group: X11/Development/Libraries
158 Requires: QtCore = %{version}-%{release}
159 Requires: glib2-devel
160 Requires: libstdc++-devel
163 %description -n QtCore-devel
164 Core classes used by other modules - development files.
166 %description -n QtCore-devel -l pl.UTF-8
167 Podstawowe klasy używane przez inne moduły - pliki programistyczne.
169 %package -n QtCore-static
170 Summary: Core classes used by other modules - static libraries
171 Summary(pl.UTF-8): Podstawowe klasy używane przez inne moduły - biblioteki statyczne
172 Group: X11/Development/Libraries
173 Requires: QtCore-devel = %{version}-%{release}
175 %description -n QtCore-static
176 Core classes used by other modules - static libraries.
178 %description -n QtCore-static -l pl.UTF-8
179 Podstawowe klasy używane przez inne moduły - biblioteki statyczne.
182 Summary: Graphical User Interface components
183 Summary(pl.UTF-8): Komponenty graficznego interfejsu użytkownika
185 Requires: QtCore = %{version}-%{release}
186 # two following because of some plugins
187 Requires: Qt3Support = %{version}-%{release}
188 Requires: QtSql = %{version}-%{release}
190 %description -n QtGui
191 Graphical User Interface components.
193 %description -n QtGui -l pl.UTF-8
194 Komponenty graficznego interfejsu użytkownika.
196 %package -n QtGui-devel
197 Summary: Graphical User Interface components - development files
198 Summary(pl.UTF-8): Komponenty graficznego interfejsu użytkownika - pliki programistyczne
199 Group: X11/Development/Libraries
200 Requires: QtCore-devel = %{version}-%{release}
201 Requires: QtGui = %{version}-%{release}
202 Requires: fontconfig-devel
203 Requires: freetype-devel >= 1:2.0.0
204 Requires: libpng-devel >= 2:1.0.8
205 Requires: xorg-lib-libSM-devel
206 Requires: xorg-lib-libXcursor-devel
207 Requires: xorg-lib-libXext-devel
208 Requires: xorg-lib-libXfixes-devel
209 Requires: xorg-lib-libXi-devel
210 Requires: xorg-lib-libXinerama-devel
211 Requires: xorg-lib-libXrandr-devel
212 Requires: xorg-lib-libXrender-devel
214 %description -n QtGui-devel
215 Graphical User Interface components - development files.
217 %description -n QtGui-devel -l pl.UTF-8
218 Komponenty graficznego interfejsu użytkownika - pliki programistyczne.
220 %package -n QtGui-static
221 Summary: Graphical User Interface components - static libraries
222 Summary(pl.UTF-8): Komponenty graficznego interfejsu użytkownika - biblioteki statyczne
223 Group: X11/Development/Libraries
224 Requires: QtGui-devel = %{version}-%{release}
226 %description -n QtGui-static
227 Graphical User Interface components - static libraries.
229 %description -n QtGui-static -l pl.UTF-8
230 Komponenty graficznego interfejsu użytkownika - biblioteki statyczne.
232 %package -n QtNetwork
233 Summary: Classes for network programming
234 Summary(pl.UTF-8): Klasy do programowania sieciowego
236 Requires: QtCore = %{version}-%{release}
238 %description -n QtNetwork
239 Classes for network programming.
241 %description -n QtNetwork -l pl.UTF-8
242 Klasy do programowania sieciowego.
244 %package -n QtNetwork-devel
245 Summary: Classes for network programming - development files
246 Summary(pl.UTF-8): Klasy do programowania sieciowego - pliki programistyczne
247 Group: X11/Development/Libraries
248 Requires: QtCore-devel = %{version}-%{release}
249 Requires: QtNetwork = %{version}-%{release}
251 %description -n QtNetwork-devel
252 Classes for network programming - development files.
254 %description -n QtNetwork-devel -l pl.UTF-8
255 Klasy do programowania sieciowego - pliki programistyczne.
257 %package -n QtNetwork-static
258 Summary: Classes for network programming - static libraries
259 Summary(pl.UTF-8): Klasy do programowania sieciowego - biblioteki statyczne
260 Group: X11/Development/Libraries
261 Requires: QtNetwork-devel = %{version}-%{release}
263 %description -n QtNetwork-static
264 Classes for network programming - static libraries.
266 %description -n QtNetwork-static -l pl.UTF-8
267 Klasy do programowania sieciowego - biblioteki statyczne.
270 Summary: OpenGL support classes
271 Summary(pl.UTF-8): Klasy wspomagające OpenGL
273 Requires: QtCore = %{version}-%{release}
275 %description -n QtOpenGL
276 OpenGL support classes.
278 %description -n QtOpenGL -l pl.UTF-8
279 Klasy wspomagające OpenGL.
281 %package -n QtOpenGL-devel
282 Summary: OpenGL support classes - development files
283 Summary(pl.UTF-8): Klasy wspomagające OpenGL - pliki programistyczne
284 Group: X11/Development/Libraries
285 Requires: OpenGL-GLU-devel
286 Requires: QtCore-devel = %{version}-%{release}
287 Requires: QtOpenGL = %{version}-%{release}
289 %description -n QtOpenGL-devel
290 OpenGL support classes - development files.
292 %description -n QtOpenGL-devel -l pl.UTF-8
293 Klasy wspomagające OpenGL - pliki programistyczne.
295 %package -n QtOpenGL-static
296 Summary: OpenGL support classes - static libraries
297 Summary(pl.UTF-8): Klasy wspomagające OpenGL - biblioteki statyczne
298 Group: X11/Development/Libraries
299 Requires: QtOpenGL-devel = %{version}-%{release}
301 %description -n QtOpenGL-static
302 OpenGL support classes - static libraries.
304 %description -n QtOpenGL-devel -l pl.UTF-8
305 Klasy wspomagające OpenGL - biblioteki statyczne.
308 Summary: Classes for database integration using SQL
309 Summary(pl.UTF-8): Klasy do integracji z bazami danych przy użyciu SQL
311 Requires: QtCore = %{version}-%{release}
313 %description -n QtSql
314 Classes for database integration using SQL.
316 %description -n QtSql -l pl.UTF-8
317 Klasy do integracji z bazami danych przy użyciu SQL.
319 %package -n QtSql-devel
320 Summary: Classes for database integration using SQL - development files
321 Summary(pl.UTF-8): Klasy do integracji z bazami danych przy użyciu SQL - pliki programistyczne
322 Group: X11/Development/Libraries
323 Requires: QtCore-devel = %{version}-%{release}
324 Requires: QtSql = %{version}-%{release}
326 %description -n QtSql-devel
327 Classes for database integration using SQL - development files.
329 %description -n QtSql-devel -l pl.UTF-8
330 Klasy do integracji z bazami danych przy użyciu SQL - pliki
333 %package -n QtSql-static
334 Summary: Classes for database integration using SQL - static libraries
335 Summary(pl.UTF-8): Klasy do integracji z bazami danych przy użyciu SQL - biblioteki statyczne
336 Group: X11/Development/Libraries
337 Requires: QtSql-devel = %{version}-%{release}
339 %description -n QtSql-static
340 Classes for database integration using SQL - static libraries.
342 %description -n QtSql-static -l pl.UTF-8
343 Klasy do integracji z bazami danych przy użyciu SQL - biblioteki
344 statyczne. programistyczne.
346 %package -n QtSql-ibase
347 Summary: Database plugin for InterBase/Firebird Qt support
348 Summary(pl.UTF-8): Wtyczka InterBase/Firebird do Qt
349 Summary(pt_BR.UTF-8): Plugin de suporte a InterBase/Firebird para Qt
351 Requires: QtSql = %{version}-%{release}
352 Provides: QtSql-backend = %{version}-%{release}
354 %description -n QtSql-ibase
355 This package contains a plugin for accessing Interbase/Firebird
356 database via the QSql classes.
358 %description -n QtSql-ibase -l pl.UTF-8
359 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z baz
360 danych Interbase/Firebird poprzez klasy QSql.
362 %description -n QtSql-ibase -l pt_BR.UTF-8
363 Plugin de suporte a InterBase/Firebird para Qt.
365 %package -n QtSql-mysql
366 Summary: Database plugin for MySQL Qt support
367 Summary(pl.UTF-8): Wtyczka MySQL do Qt
368 Summary(pt_BR.UTF-8): Plugin de suporte a MySQL para Qt
370 Requires: QtSql = %{version}-%{release}
371 Provides: QtSql-backend = %{version}-%{release}
373 %description -n QtSql-mysql
374 This package contains a plugin for accessing MySQL database via the
377 %description -n QtSql-mysql -l pl.UTF-8
378 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z baz
379 danych MySQL poprzez klasy QSql.
381 %description -n QtSql-mysql -l pt_BR.UTF-8
382 Plugin de suporte a MySQL para Qt.
384 %package -n QtSql-odbc
385 Summary: Database plugin for ODBC Qt support
386 Summary(pl.UTF-8): Wtyczka ODBC do Qt
387 Summary(pt_BR.UTF-8): Plugin de suporte a ODBC para Qt
389 Requires: QtSql = %{version}-%{release}
390 Provides: QtSql-backend = %{version}-%{release}
392 %description -n QtSql-odbc
393 This package contains a plugin for accessing unixODBC services via the
396 %description -n QtSql-odbc -l pl.UTF-8
397 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z usług
398 unixODBC poprzez klasy QSql.
400 %description -n QtSql-odbc -l pt_BR.UTF-8
401 Plugin de suporte a ODBC para Qt.
403 %package -n QtSql-pgsql
404 Summary: Database plugin for PostgreSQL Qt support
405 Summary(pl.UTF-8): Wtyczka PostgreSQL do Qt
406 Summary(pt_BR.UTF-8): Plugin de suporte a PostgreSQL para Qt
408 Requires: QtSql = %{version}-%{release}
409 Provides: QtSql-backend = %{version}-%{release}
411 %description -n QtSql-pgsql
412 This package contains a plugin for accessing PostgreSQL database via
415 %description -n QtSql-pgsql -l pl.UTF-8
416 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z baz
417 danych PostgreSQL poprzez klasy QSql.
419 %description -n QtSql-pgsql -l es.UTF-8
420 Plugin de suporte a PostgreSQL para Qt.
422 %package -n QtSql-sqlite
423 Summary: Database plugin for SQLite 2.x Qt support
424 Summary(pl.UTF-8): Wtyczka SQLite 2.x do Qt
425 Summary(pt_BR.UTF-8): Plugin de suporte a SQLite 2.x para Qt
427 Requires: QtSql = %{version}-%{release}
428 Provides: QtSql-backend = %{version}-%{release}
430 %description -n QtSql-sqlite
431 This package contains a plugin for using the SQLite 2.x library (which
432 allows to acces virtually any SQL database) via the QSql classes.
434 %description -n QtSql-sqlite -l pl.UTF-8
435 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z baz
436 danych SQLite 2.x poprzez klasy QSql.
438 %description -n QtSql-sqlite -l pt_BR.UTF-8
439 Plugin de suporte a SQLite 2.x para Qt.
441 %package -n QtSql-sqlite3
442 Summary: Database plugin for SQLite3 Qt support
443 Summary(pl.UTF-8): Wtyczka SQLite3 do Qt
444 Summary(pt_BR.UTF-8): Plugin de suporte a SQLite3 para Qt
446 Requires: QtSql = %{version}-%{release}
447 Provides: QtSql-backend = %{version}-%{release}
449 %description -n QtSql-sqlite3
450 This package contains a plugin for using the SQLite3 library (which
451 allows to acces virtually any SQL database) via the QSql classes.
453 %description -n QtSql-sqlite3 -l pl.UTF-8
454 Ten pakiet zawiera wtyczki do Qt umożliwiające korzystanie z baz
455 danych SQLite3 poprzez klasy QSql.
457 %description -n QtSql-sqlite3 -l pt_BR.UTF-8
458 Plugin de suporte a SQLite3 para Qt.
462 Summary(pl.UTF-8): Wsparcie dla SVG
464 Requires: QtXml = %{version}-%{release}
466 %description -n QtSvg
469 %description -n QtSvg -l pl.UTF-8
472 %package -n QtSvg-devel
473 Summary: SVG support - development files
474 Summary(pl.UTF-8): Wsparcie dla SVG - pliki programistyczne
475 Group: X11/Development/Libraries
476 Requires: QtSvg = %{version}-%{release}
477 Requires: QtXml-devel = %{version}-%{release}
479 %description -n QtSvg-devel
480 SVG support - development files.
482 %description -n QtSvg-devel -l pl.UTF-8
483 Wsparcie dla SVG - pliki programistyczne.
485 %package -n QtSvg-static
486 Summary: SVG support - static libraries
487 Summary(pl.UTF-8): Wsparcie dla SVG - biblioteki statyczne
488 Group: X11/Development/Libraries
489 Requires: QtSvg-devel = %{version}-%{release}
491 %description -n QtSvg-static
492 SVG support - static libraries.
494 %description -n QtSvg-static -l pl.UTF-8
495 Wsparcie dla SVG - biblioteki statyczne.
498 Summary: Test framework
499 Summary(pl.UTF-8): Szkielet testów
501 Requires: QtCore = %{version}-%{release}
503 %description -n QtTest
506 %description -n QtTest -l pl.UTF-8
509 %package -n QtTest-devel
510 Summary: Test framework - development files
511 Summary(pl.UTF-8): Szkielet testów - pliki programistyczne
512 Group: X11/Development/Libraries
513 Requires: QtCore-devel = %{version}-%{release}
514 Requires: QtTest = %{version}-%{release}
516 %description -n QtTest-devel
517 Test framework - development files.
519 %description -n QtTest-devel -l pl.UTF-8
520 Szkielet testów - pliki programistyczne.
523 Summary: Classes for handling XML
524 Summary(pl.UTF-8): Klasy do obsługi XML-a
526 Requires: QtCore = %{version}-%{release}
528 %description -n QtXml
529 Classes for handling XML.
531 %description -n QtXml -l pl.UTF-8
532 Klasy do obsługi XML-a.
534 %package -n QtXml-devel
535 Summary: Classes for handling XML - development files
536 Summary(pl.UTF-8): Klasy do obsługi XML-a - pliki programistyczne
537 Group: X11/Development/Libraries
538 Requires: QtCore-devel = %{version}-%{release}
539 Requires: QtXml = %{version}-%{release}
541 %description -n QtXml-devel
542 Classes for handling XML - development files.
544 %description -n QtXml-devel -l pl.UTF-8
545 Klasy do obsługi XML-a - pliki programistyczne.
547 %package -n QtXml-static
548 Summary: Classes for handling XML - static libraries
549 Summary(pl.UTF-8): Klasy do obsługi XML-a - biblioteki statyczne
550 Group: X11/Development/Libraries
551 Requires: QtXml-devel = %{version}-%{release}
553 %description -n QtXml-static
554 Classes for handling XML - static libraries.
556 %description -n QtXml-static -l pl.UTF-8
557 Klasy do obsługi XML-a - biblioteki statyczne.
559 %package -n Qt3Support
560 Summary: Qt3 compatibility library
561 Summary(pl.UTF-8): Biblioteka kompatybilności z Qt3
563 Requires: QtCore = %{version}-%{release}
564 Requires: QtGui = %{version}-%{release}
565 Requires: QtNetwork = %{version}-%{release}
566 Requires: QtSql = %{version}-%{release}
567 Requires: QtXml = %{version}-%{release}
569 %description -n Qt3Support
570 Qt3 compatibility library.
572 %description -n Qt3Support -l pl.UTF-8
573 Biblioteka kompatybilności z Qt3.
575 %package -n Qt3Support-devel
576 Summary: Qt3 compatibility library - development files
577 Summary(pl.UTF-8): Biblioteka kompatybilności z Qt3 - pliki programistyczne
578 Group: X11/Development/Libraries
579 Requires: Qt3Support = %{version}-%{release}
580 Requires: QtCore-devel = %{version}-%{release}
581 Requires: QtGui-devel = %{version}-%{release}
582 Requires: QtNetwork-devel = %{version}-%{release}
583 Requires: QtSql-devel = %{version}-%{release}
584 Requires: QtXml-devel = %{version}-%{release}
586 %description -n Qt3Support-devel
587 Qt3 compatibility library - development files.
589 %description -n Qt3Support-devel -l pl.UTF-8
590 Biblioteka kompatybilności z Qt3 - pliki programistyczne.
592 %package -n Qt3Support-static
593 Summary: Qt3 compatibility library - static libraries
594 Summary(pl.UTF-8): Biblioteka kompatybilności z Qt3 - biblioteki statyczne
595 Group: X11/Development/Libraries
596 Requires: Qt3Support-devel = %{version}-%{release}
598 %description -n Qt3Support-static
599 Qt3 compatibility library - static libraries.
601 %description -n Qt3Support-static -l pl.UTF-8
602 Biblioteka kompatybilności z Qt3 - biblioteki statyczne.
604 %package -n QtAssistant
605 Summary: Qt Assistant client library
606 Summary(pl.UTF-8): Biblioteka kliencka Qt Assistant
607 Group: X11/Development/Libraries
608 Requires: QtGui = %{version}-%{release}
609 Requires: QtNetwork = %{version}-%{release}
611 %description -n QtAssistant
612 This library allows to use Qt Assistant as an application's help tool.
614 %description -n QtAssistant -l pl.UTF-8
615 Ta biblioteka umożliwia wykorzystanie Qt Assistanta jako narzędzie
616 pomocy w aplikacjach.
618 %package -n QtAssistant-devel
619 Summary: Qt Assistant client library - development files
620 Summary(pl.UTF-8): Biblioteka kliencka Qt Assistant - pliki programistyczne
621 Group: X11/Development/Libraries
622 Requires: QtAssistant = %{version}-%{release}
623 Requires: QtNetwork-devel = %{version}-%{release}
625 %description -n QtAssistant-devel
626 Development files for Qt Assistant client library.
628 %description -n QtAssistant-devel -l pl.UTF-8
629 Pliki programistyczne biblioteki klienckiej Qt Assistant.
631 %package -n QtAssistant-static
632 Summary: Static Qt Assistant client library
633 Summary(pl.UTF-8): Statyczna biblioteka kliencka Qt Assistant
634 Group: X11/Development/Libraries
635 Requires: QtAssistant-devel = %{version}-%{release}
637 %description -n QtAssistant-static
638 Static Qt Assistant client library.
640 %description -n QtAssistant-static -l pl.UTF-8
641 Statyczna biblioteka kliencka Qt Assistant.
644 Summary: Classes for D-BUS support
645 Summary(pl.UTF-8): Klasy do obsługi D-BUS
647 Requires: QtXml = %{version}-%{release}
648 # is it really required? libs should need just libs, not service
651 %description -n QtDBus
652 This module provides classes for D-BUS support. D-BUS is an
653 Inter-Process Communication (IPC) and Remote Procedure Calling (RPC)
654 mechanism originally developed for Linux to replace existing and
655 competing IPC solutions with one unified protocol.
657 %description -n QtDBus -l pl.UTF-8
658 Ten moduł udostępnia klasy do obsługi D-BUS. D-BUS to mechanizm
659 komunikacji między procesowej (IPC - Inter-Process Communication) i
660 zdalnego wywoływania procedur (RPC - Remote Procedure Calling)
661 stworzony początkowo dla Linuksa, aby zastąpić istniejące i
662 konkurujące ze sobą rozwiązania IPC jednym, ujednoliconym protokołem.
664 %package -n QtDBus-devel
665 Summary: Classes for D-BUS support - development files
666 Summary(pl.UTF-8): Klasy do obsługi D-BUS - pliki programistyczne
667 Group: X11/Development/Libraries
668 Requires: QtDBus = %{version}-%{release}
669 Requires: QtXml-devel = %{version}-%{release}
671 Requires: glib2-devel >= 2.0.0
673 %description -n QtDBus-devel
674 Classes for D-BUS support - development files.
676 %description -n QtDBus-devel -l pl.UTF-8
677 Klasy do obsługi D-BUS - pliki programistyczne.
679 %package -n QtDBus-static
680 Summary: Classes for D-BUS support - static libraries
681 Summary(pl.UTF-8): Klasy do obsługi D-BUS - biblioteki statyczne
682 Group: X11/Development/Libraries
683 Requires: QtDBus-devel = %{version}-%{release}
685 %description -n QtDBus-static
686 Classes for D-BUS support - static libraries.
688 %description -n QtDBus-static -l pl.UTF-8
689 Klasy do obsługi D-BUS - biblioteki statyczne.
691 %package -n QtDesigner
692 Summary: Classes for extending Qt Designer
693 Summary(pl.UTF-8): Klasy do rozbudowy Qt Designera
695 Requires: QtGui = %{version}-%{release}
696 Requires: QtNetwork = %{version}-%{release}
697 Requires: QtXml = %{version}-%{release}
698 Obsoletes: qt4-designer-libs
700 %description -n QtDesigner
701 This module provides classes that allow you to create your own custom
702 widget plugins for Qt Designer, and classes that enable you to access
703 Qt Designer's components.
705 %description -n QtDesigner -l pl.UTF-8
706 Ten moduł dostarcza klasy, które pozwalają tworzyć własne wtyczki dla
707 Qt Designera oraz klasy, które umożliwiają dostęp do jego komponentów.
709 %package -n QtDesigner-devel
710 Summary: Classes for extending Qt Designer - development files
711 Summary(pl.UTF-8): Klasy do rozbudowy Qt Designera - pliki programistyczne
712 Group: X11/Development/Libraries
713 Requires: QtDesigner = %{version}-%{release}
714 Requires: QtGui-devel = %{version}-%{release}
716 %description -n QtDesigner-devel
717 Classes for extending Qt Designer - development files.
719 %description -n QtDesigner-devel -l pl.UTF-8
720 Klasy do rozbudowy Qt Designera - pliki programistyczne.
722 %package -n QtDesigner-static
723 Summary: Classes for extending Qt Designer - static libraries
724 Summary(pl.UTF-8): Klasy do rozbudowy Qt Designera - biblioteki statyczne
725 Group: X11/Development/Libraries
726 Requires: QtDesigner-devel = %{version}-%{release}
728 %description -n QtDesigner-static
729 Classes for extending Qt Designer - static libraries.
731 %description -n QtDesigner-static -l pl.UTF-8
732 Klasy do rozbudowy Qt Designera - biblioteki statyczne.
735 Summary: Classes for scripting applications
736 Summary(pl.UTF-8): Klasy pozwalające dodać obsługę skryptów w aplikacjach
737 Group: X11/Development/Libraries
739 %description -n QtScript
740 The QtScript module provides classes to handle scripts inside
743 %description -n QtScript -l pl.UTF-8
744 Ten moduł dostarcza klasy obsługujące języki skryptowe wewnątrz
747 %package -n QtScript-devel
748 Summary: Classes for scripting applications - development files
749 Summary(pl.UTF-8): Klasy do obsługi skryptów wewnątrz aplikacji - pliki programistyczne
750 Group: X11/Development/Libraries
751 Requires: QtScript = %{version}-%{release}
753 %description -n QtScript-devel
754 Classes for scriptin applications - development files.
756 %description -n QtScript-devel -l pl.UTF-8
757 Klasy do obsługi skryptów wewnątrz aplikacji - pliki programistyczne.
759 %package -n QtScript-static
760 Summary: Classes for scripting applications - static library
761 Summary(pl.UTF-8): Klasy pozwalające dodać obsługę skryptów w aplikacjach - biblioteka statyczna
762 Group: X11/Development/Libraries
763 Requires: QtScript-devel = %{version}-%{release}
765 %description -n QtScript-static
766 Classes for scripting applications - static library.
768 %description -n QtScript-static -l pl.UTF-8
769 Klasy pozwalające dodać obsługę skryptów w aplikacjach - biblioteka
772 %package -n QtUiTools
773 Summary: Classes for handling Qt Designer forms in applications
774 Summary(pl.UTF-8): Klasy do obsługi formularzy Qt Designera w aplikacjach
776 Requires: QtGui = %{version}-%{release}
777 Requires: QtXml = %{version}-%{release}
779 %description -n QtUiTools
780 The QtUiTools module provides classes to handle forms created with Qt
783 %description -n QtUiTools -l pl.UTF-8
784 Moduł QtUiTools udostępnia klasy do obsługi formularzy tworzonych przy
787 %package -n QtUiTools-devel
788 Summary: Classes for handling Qt Designer forms in applications - development files
789 Summary(pl.UTF-8): Klasy do obsługi formularzy Qt Designera w aplikacjach - pliki programistyczne
790 Group: X11/Development/Libraries
791 Requires: QtCore-devel = %{version}-%{release}
792 Requires: QtUiTools = %{version}-%{release}
794 %description -n QtUiTools-devel
795 Classes for handling Qt Designer forms in applications - development
798 %description -n QtUiTools-devel -l pl.UTF-8
799 Klasy do obsługi formularzy Qt Designera w aplikacjach - pliki
802 %package -n QtUiTools-static
803 Summary: Classes for handling Qt Designer forms in applications - static library
804 Summary(pl.UTF-8): Klasy do obsługi formularzy Qt Designera w aplikacjach - biblioteka statyczna
805 Group: X11/Development/Libraries
806 Requires: QtUiTools-devel = %{version}-%{release}
808 %description -n QtUiTools-static
809 Classes for handling Qt Designer forms in applications - static
812 %description -n QtUiTools-static -l pl.UTF-8
813 Klasy do obsługi formularzy Qt Designera w aplikacjach - biblioteka
817 Summary: Qt documentation browser
818 Summary(pl.UTF-8): Przeglądarka dokumentacji Qt
819 Group: X11/Development/Tools
820 Requires: %{name}-doc = %{version}-%{release}
821 Requires: QtAssistant = %{version}-%{release}
822 Requires: QtDBus = %{version}-%{release}
824 %description assistant
825 Qt Assistant is a tool for browsing on-line documentation with
826 indexing, bookmarks and full-text search.
828 %description assistant -l pl.UTF-8
829 Qt Assistant to narzędzie do przeglądania dokumentacji z możliwością
830 indeksowania, dodawania zakładek i pełnotekstowego wyszukiwania.
833 Summary: Build tools for Qt4
834 Summary(pl.UTF-8): Narzędzia do budowania dla Qt4
835 Group: X11/Development/Tools
836 Requires: QtCore = %{version}-%{release}
837 Requires: QtXml = %{version}-%{release}
840 This package includes the Qt resource compiler (rcc), meta objects
841 compiler (moc), user interface compiler (uic) and qt3to4 include names
844 %description build -l pl.UTF-8
845 Ten pakiet zawiera kompilator zasobów Qt (rcc), kompilator
846 metaobiektów (moc), kompilator interfejsów użytkownika (uic) oraz
847 konwerter nazw plików nagłówkowych qt3to4.
850 Summary: IDE used for GUI designing with Qt library
851 Summary(pl.UTF-8): IDE służące do projektowania GUI za pomocą biblioteki Qt
852 Group: X11/Applications
853 Requires: QtAssistant = %{version}-%{release}
854 Requires: QtDesigner = %{version}-%{release}
856 %description designer
857 An advanced tool used for GUI designing with Qt library.
859 %description designer -l pl.UTF-8
860 Zaawansowane narzędzie służące do projektowania interfejsu graficznego
861 za pomocą biblioteki Qt.
864 Summary: Translation helper for Qt
865 Summary(pl.UTF-8): Aplikacja ułatwiająca tłumaczenie aplikacji oparty o Qt
866 Group: X11/Development/Tools
867 Requires: QtAssistant = %{version}-%{release}
868 Requires: QtUiTools = %{version}-%{release}
870 %description linguist
871 This program provides an interface that shortens and helps systematize
872 the process of translating GUIs. Qt Linguist takes all of the text of
873 a UI that will be shown to the user, and presents it to a human
874 translator in a simple window. When one UI text is translated, the
875 program automatically progresses to the next, until they are all
878 %description linguist -l pl.UTF-8
879 Ten program oferuje interfejs znacznie przyśpieszający proces
880 tłumaczenia interfejsu użytkownika. Zbiera wszystkie teksty
881 przeznaczone do tłumaczenia i przedstawia w łatwym w obsłudze oknie.
882 Gdy jeden z nich jest już przetłumaczony, automatycznie przechodzi do
883 następnego, aż wszystkie będą przetłumaczone.
886 Summary: Qt makefile generator
887 Summary(pl.UTF-8): Generator plików makefile dla aplikacji Qt
888 Group: X11/Development/Tools
891 A powerful makefile generator. It can create makefiles on any platform
892 from a simple .pro definitions file.
894 %description qmake -l pl.UTF-8
895 Rozbudowany generator plików makefile. Potrafi tworzyć pliki makefile
896 na każdej platformi na podstawie łatwego w przygotowaniu pliku .pro.
899 Summary: Qt widgets configuration tool
900 Summary(pl.UTF-8): Narzędzie do konfigurowania widgetów Qt
901 Group: X11/Applications
902 Requires: Qt3Support = %{version}-%{release}
903 Requires: QtGui = %{version}-%{release}
904 Requires: QtNetwork = %{version}-%{release}
905 Requires: QtSql = %{version}-%{release}
906 Requires: QtXml = %{version}-%{release}
908 %description qtconfig
909 A tool for configuring look and behavior of Qt widgets.
911 %description qtconfig -l pl.UTF-8
912 Narzędie do konfiguracji wyglądu i zachowania widgetów Qt.
915 Summary: Qt Virtual framebuffer
916 Summary(pl.UTF-8): Wirtualny framebuffer dla Qt
917 Group: X11/Development/Libraries
918 Requires: QtGui = %{version}-%{release}
919 Requires: QtOpenGL = %{version}-%{release}
922 Qt Virtual framebuffer allows you to run Qt/Embedded applications in X
925 %description -n qvfb -l pl.UTF-8
926 Qt Virtual framebuffer pozwala na uruchamianie aplikacji Qt/Embedded w
930 Summary: Demos of new Qt4 features
931 Summary(pl.UTF-8): Programy demonstrujące nowe możliwości Qt4
932 Group: X11/Development/Libraries
933 Requires: QtAssistant = %{version}-%{release}
934 Requires: QtXml = %{version}-%{release}
937 Demos are spiders that fly.
939 %description demos -l pl.UTF-8
940 Dema to latające pająki.
943 Summary: Qt Documentation in HTML format
944 Summary(pl.UTF-8): Dokumentacja Qt w formacie HTML
945 Group: X11/Development/Libraries
948 Qt documentation in HTML format.
950 %description doc -l pl.UTF-8
951 Dokumentacja qt w formacie HTML.
954 Summary: Example programs bundled with Qt
955 Summary(pl.UTF-8): Ćwiczenia i przykłady do Qt
956 Summary(pt_BR.UTF-8): Programas exemplo desenvolvidos com o Qt
957 Group: X11/Development/Libraries
958 # no it does not , we cant be sure the user wants to compile them right?
959 # he might just want to take a look, anwyay no single devel package now
960 #Requires: %{name}-devel = %{version}-%{release}
962 %description examples
963 Example programs bundled with Qt version.
965 %description examples -l pl.UTF-8
966 Ćwiczenia/przykłady dołączone do Qt.
968 %description examples -l pt_BR.UTF-8
969 Programas exemplo para o Qt versão.
972 %setup -q -n qt-x11-opensource-src-%{version}
982 %{__sed} -i -e 's,usr/X11R6/,usr/g,' mkspecs/linux-g++-64/qmake.conf \
983 mkspecs/common/linux.conf
985 # change QMAKE FLAGS to build
987 s|QMAKE_CC.*=.*gcc|QMAKE_CC\t\t= %{__cc}|;
988 s|QMAKE_CXX.*=.*g++|QMAKE_CXX\t\t= %{__cxx}|;
989 s|QMAKE_LINK.*=.*g++|QMAKE_LINK\t\t= %{__cxx}|;
990 s|QMAKE_LINK_SHLIB.*=.*g++|QMAKE_LINK_SHLIB\t= %{__cxx}|;
991 s|QMAKE_CFLAGS_RELEASE.*|QMAKE_CFLAGS_RELEASE\t+= %{rpmcflags}|;
992 s|QMAKE_CXXFLAGS_RELEASE.*|QMAKE_CXXFLAGS_RELEASE\t+= %{rpmcxxflags}|;
993 s|QMAKE_CFLAGS_DEBUG.*|QMAKE_CFLAGS_DEBUG\t+= %{debugcflags}|;
994 s|QMAKE_CXXFLAGS_DEBUG.*|QMAKE_CXXFLAGS_DEBUG\t+= %{debugcflags}|;
995 ' mkspecs/common/g++.conf
998 s|QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT = %{_includedir}/qt4|;
999 ' mkspecs/common/linux.conf
1002 # pass OPTFLAGS to build qmake itself with optimization
1003 export OPTFLAGS="%{rpmcflags}"
1004 export PATH=$PWD/bin:$PATH
1006 ##################################
1007 # DEFAULT OPTIONS FOR ALL BUILDS #
1008 ##################################
1011 -DQT_CLEAN_NAMESPACE \
1014 -bindir %{_qtdir}/bin \
1015 -docdir %{_docdir}/%{name}-doc \
1016 -headerdir %{_includedir}/qt4 \
1017 -libdir %{_libdir} \
1019 -plugindir %{_qtdir}/plugins \
1020 -datadir %{_datadir}/qt4 \
1021 -translationdir %{_datadir}/locale/ \
1022 -sysconfdir %{_sysconfdir}/qt4 \
1023 -examplesdir %{_examplesdir}/qt4 \
1024 -demosdir %{_examplesdir}/qt4-demos \
1027 -%{!?with_pch:no-}pch \
1029 -%{!?with_sse:no-}sse \
1030 -%{!?with_sse2:no-}sse2 \
1039 -I%{_includedir}/postgresql/server \
1040 -I%{_includedir}/mysql \
1041 %{?with_cups:-cups} \
1042 %{?with_nas:-system-nas-sound} \
1044 %{!?debug:-release} \
1048 -no-separate-debug-info \
1058 ##################################
1059 # STATIC MULTI-THREAD #
1060 ##################################
1062 %if %{with static_libs}
1064 -%{!?with_mysql:no}%{?with_mysql:qt}-sql-mysql \
1065 -%{!?with_odbc:no}%{?with_odbc:qt}-sql-odbc \
1066 -%{!?with_pgsql:no}%{?with_pgsql:qt}-sql-psql \
1067 -%{!?with_sqlite3:no}%{?with_sqlite3:qt}-sql-sqlite \
1068 -%{!?with_sqlite:no}%{?with_sqlite:qt}-sql-sqlite2 \
1069 -%{!?with_ibase:no}%{?with_ibase:qt}-sql-ibase \
1072 echo "yes" | ./configure $COMMONOPT $OPT
1075 %{__make} -C tools/assistant/lib
1076 %{__make} -C tools/designer
1077 %{__make} -C tools/qdbus/src
1078 if [ ! -d staticlib ]; then
1080 cp -a lib/*.a staticlib
1085 ##################################
1086 # SHARED MULTI-THREAD #
1087 ##################################
1090 -%{!?with_mysql:no}%{?with_mysql:plugin}-sql-mysql \
1091 -%{!?with_odbc:no}%{?with_odbc:plugin}-sql-odbc \
1092 -%{!?with_pgsql:no}%{?with_pgsql:plugin}-sql-psql \
1093 -%{!?with_sqlite3:no}%{?with_sqlite3:plugin}-sql-sqlite \
1094 -%{!?with_sqlite:no}%{?with_sqlite:plugin}-sql-sqlite2 \
1095 -%{!?with_ibase:no}%{?with_ibase:plugin}-sql-ibase"
1097 echo "yes" | ./configure $COMMONOPT $OPT
1101 sub-tools-all-ordered \
1102 sub-demos-all-ordered \
1103 sub-examples-all-ordered
1106 rm -rf $RPM_BUILD_ROOT
1107 install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir},%{_pkgconfigdir}}
1108 install -d $RPM_BUILD_ROOT%{_qtdir}/plugins/{crypto,network}
1111 INSTALL_ROOT=$RPM_BUILD_ROOT
1113 # kill -L/inside/builddir from *.la and *.pc (bug #77152)
1114 %{__sed} -i -e "s,-L$PWD/lib,,g" $RPM_BUILD_ROOT%{_libdir}/*.{la,prl}
1115 %{__sed} -i -e "s,-L$PWD/lib,,g" $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc
1117 s|moc_location=.*|moc_location=%{_bindir}/qt4-moc|;
1118 s|uic_location=.*|uic_location=%{_bindir}/qt4-uic|;
1119 ' $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc
1122 install bin/findtr $RPM_BUILD_ROOT%{_qtdir}/bin
1124 cd $RPM_BUILD_ROOT%{_bindir}
1125 ln -sf ../%{_lib}/qt4/bin/assistant qt4-assistant
1126 ln -sf ../%{_lib}/qt4/bin/designer qt4-designer
1127 ln -sf ../%{_lib}/qt4/bin/linguist qt4-linguist
1128 ln -sf ../%{_lib}/qt4/bin/moc qt4-moc
1129 ln -sf ../%{_lib}/qt4/bin/qmake qt4-qmake
1130 ln -sf ../%{_lib}/qt4/bin/qt3to4 .
1131 ln -sf ../%{_lib}/qt4/bin/qtconfig qt4-qtconfig
1132 ln -sf ../%{_lib}/qt4/bin/rcc .
1133 ln -sf ../%{_lib}/qt4/bin/uic qt4-uic
1134 ln -sf ../%{_lib}/qt4/bin/uic3 .
1135 ln -sf ../%{_lib}/qt4/bin/pixeltool .
1136 ln -sf ../%{_lib}/qt4/bin/qdbus .
1137 ln -sf ../%{_lib}/qt4/bin/qdbuscpp2xml .
1138 ln -sf ../%{_lib}/qt4/bin/qdbusxml2cpp .
1139 ln -sf ../%{_lib}/qt4/bin/qdbusviewer .
1140 ln -sf ../%{_lib}/qt4/bin/qvfb .
1143 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
1144 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
1145 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
1147 install tools/qtconfig/images/appicon.png \
1148 $RPM_BUILD_ROOT%{_pixmapsdir}/qt4-qtconfig.png
1150 install tools/linguist/linguist/images/appicon.png \
1151 $RPM_BUILD_ROOT%{_pixmapsdir}/qt4-linguist.png
1153 install tools/assistant/images/assistant.png \
1154 $RPM_BUILD_ROOT%{_pixmapsdir}/qt4-assistant.png
1156 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
1157 install tools/designer/src/designer/images/designer.png \
1158 $RPM_BUILD_ROOT%{_pixmapsdir}/qt4-designer.png
1160 %if %{with static_libs}
1161 install staticlib/*.a $RPM_BUILD_ROOT%{_libdir}
1167 cp %{SOURCE6} translations/qt_pl.ts
1168 LD_LIBRARY_PATH=lib bin/lrelease translations/qt_pl.ts -qm translations/qt_pl.qm
1170 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*.qm
1171 for file in translations/*.qm tools/assistant/*.qm tools/designer/designer/*.qm tools/linguist/linguist/*.qm; do
1172 [ ! -f $file ] && continue
1173 lang=`echo $file | sed -r 's:.*/[a-zA-Z]*_(.*).qm:\1:'`
1174 MOD=`echo $file | sed -r 's:.*/([a-zA-Z]*)_.*.qm:\1:'`
1175 [ "$lang" == "iw" ] && lang=he
1177 [ "$MOD" == "qt4-qt" ] && MOD=qt4
1178 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES
1179 cp $file $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/$MOD.qm
1182 cd $RPM_BUILD_ROOT%{_includedir}/qt4/Qt
1183 for f in ../Qt{3Support,Assistant,Core,DBus,Designer,Gui,Network,OpenGL,Script,Sql,Svg,Test,UiTools,Xml}/*; do
1184 if [ ! -d $f ]; then
1185 ln -sf $f `basename $f`
1190 mv $RPM_BUILD_ROOT%{_datadir}/locale/ja_jp/LC_MESSAGES/qt4.qm \
1191 $RPM_BUILD_ROOT%{_datadir}/locale/ja/LC_MESSAGES/qt4.qm
1193 # Ship doc & qmake stuff
1194 ln -s %{_docdir}/%{name}-doc $RPM_BUILD_ROOT%{_qtdir}/doc
1195 ln -s %{_datadir}/qt4/mkspecs $RPM_BUILD_ROOT%{_qtdir}/mkspecs
1197 for f in $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc; do
1198 HAVEDEBUG=`echo $f | grep _debug | wc -l`
1199 MODULE=`echo $f | basename $f | cut -d. -f1 | cut -d_ -f1`
1200 MODULE2=`echo $MODULE | tr a-z A-Z | sed s:QT::`
1203 if [ "$MODULE2" == "3SUPPORT" ]; then
1204 DEFS="$DEFS -DQT3_SUPPORT -DQT_QT3SUPPORT_LIB"
1206 DEFS="$DEFS -DQT_"$MODULE2"_LIB"
1208 [ "$HAVEDEBUG" -eq 0 ] && DEFS="$DEFS -DQT_NO_DEBUG"
1210 sed -i -e "s:-DQT_SHARED:-DQT_SHARED $DEFS:" $f
1213 # Prepare some files list
1215 RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null`
1216 [ "$RESULT" == "" ] && return # XXX this is never true due $RPM_BUILD_ROOT being set
1217 r=`echo $RESULT | awk '{ print $1 }'`
1219 if [ -d "$r" ]; then
1220 echo "%%dir $2" >> $1.files
1221 elif [ -x "$r" ] ; then
1222 echo "%%attr(755,root,root) $2" >> $1.files
1223 elif [ -f "$r" ]; then
1224 echo "$2" >> $1.files
1226 echo "Error generation $1 files list!"
1227 echo "$r: no such file or direcotry!"
1234 echo "%%defattr(644,root,root,755)" > $MODULE-devel.files
1235 ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.so"
1236 ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.la"
1237 ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.prl"
1238 ifecho $MODULE-devel "%{_pkgconfigdir}/$MODULE*.pc"
1239 if [ -d "$RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE" ]; then
1240 ifecho $MODULE-devel %{_includedir}/qt4/$MODULE
1242 for f in `find $RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE -printf "%%P "`; do
1243 ifecho $MODULE-devel %{_includedir}/qt4/$MODULE/$f
1244 ifecho $MODULE-devel %{_includedir}/qt4/Qt/$f
1246 for f in $@; do ifecho $MODULE-devel $f; done
1249 mkdevfl QtCore %{_includedir}/qt4 %{_includedir}/qt4/Qt
1250 mkdevfl QtDBus %{_qtdir}/bin/qdbuscpp2xml %{_qtdir}/bin/qdbusxml2cpp %{_bindir}/qdbuscpp2xml %{_bindir}/qdbusxml2cpp
1261 # without *.la *.pc etc.
1262 mkdevfl QtAssistant || /bin/true
1263 mkdevfl QtDesigner || /bin/true
1264 mkdevfl QtUiTools || /bin/true
1266 echo "%defattr(644,root,root,755)" > examples.files
1267 ifecho examples %{_examplesdir}/qt4
1268 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4 -printf "%%P "`; do
1269 ifecho examples %{_examplesdir}/qt4/$f
1272 echo "%defattr(644,root,root,755)" > demos.files
1273 ifecho demos "%{_examplesdir}/qt4-demos"
1274 ifecho demos "%{_qtdir}/bin/qtdemo"
1275 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4-demos -printf "%%P "`; do
1276 ifecho demos %{_examplesdir}/qt4-demos/$f
1280 rm -rf $RPM_BUILD_ROOT
1284 if [ "$1" = 1 ]; then
1285 %banner -e %{name} <<'EOF'
1286 *******************************************************
1289 * With qt 4.0.0 the single threaded version was *
1290 * removed. Also the library is modular now so be *
1291 * sure to check that you have every module you need. *
1293 *******************************************************
1297 %postun -n QtCore -p /sbin/ldconfig
1299 %post -n QtDBus -p /sbin/ldconfig
1300 %postun -n QtDBus -p /sbin/ldconfig
1302 %post -n QtGui -p /sbin/ldconfig
1303 %postun -n QtGui -p /sbin/ldconfig
1305 %post -n QtNetwork -p /sbin/ldconfig
1306 %postun -n QtNetwork -p /sbin/ldconfig
1308 %post -n QtOpenGL -p /sbin/ldconfig
1309 %postun -n QtOpenGL -p /sbin/ldconfig
1311 %post -n QtScript -p /sbin/ldconfig
1312 %postun -n QtScript -p /sbin/ldconfig
1314 %post -n QtSql -p /sbin/ldconfig
1315 %postun -n QtSql -p /sbin/ldconfig
1317 %post -n QtSvg -p /sbin/ldconfig
1318 %postun -n QtSvg -p /sbin/ldconfig
1320 %post -n QtTest -p /sbin/ldconfig
1321 %postun -n QtTest -p /sbin/ldconfig
1323 %post -n QtXml -p /sbin/ldconfig
1324 %postun -n QtXml -p /sbin/ldconfig
1326 %post -n Qt3Support -p /sbin/ldconfig
1327 %postun -n Qt3Support -p /sbin/ldconfig
1329 %post -n QtAssistant -p /sbin/ldconfig
1330 %postun -n QtAssistant -p /sbin/ldconfig
1332 %post -n QtDesigner -p /sbin/ldconfig
1333 %postun -n QtDesigner -p /sbin/ldconfig
1335 %post -n QtUiTools -p /sbin/ldconfig
1336 %postun -n QtUiTools -p /sbin/ldconfig
1339 %defattr(644,root,root,755)
1340 %attr(755,root,root) %{_libdir}/libQtCore.so.*.*
1343 %dir %{_qtdir}/plugins
1344 %dir %{_qtdir}/plugins/accessible
1345 %dir %{_qtdir}/plugins/codecs
1346 %dir %{_qtdir}/plugins/crypto
1347 %dir %{_qtdir}/plugins/iconengines
1348 %dir %{_qtdir}/plugins/imageformats
1349 %dir %{_qtdir}/plugins/inputmethods
1350 %dir %{_qtdir}/plugins/network
1351 %dir %{_qtdir}/plugins/sqldrivers
1352 %dir %{_datadir}/qt4
1353 %lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/qt4.qm
1354 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt4.qm
1355 %lang(es) %{_datadir}/locale/es/LC_MESSAGES/qt4.qm
1356 %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qt4.qm
1357 %lang(he) %{_datadir}/locale/he/LC_MESSAGES/qt4.qm
1358 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/qt4.qm
1359 %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/qt4.qm
1360 %lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/qt4.qm
1361 %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qt4.qm
1362 %lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/qt4.qm
1363 %lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/qt4.qm
1364 %lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/qt4.qm
1365 %lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt4.qm
1368 %defattr(644,root,root,755)
1369 %attr(755,root,root) %{_qtdir}/bin/qdbus
1370 %attr(755,root,root) %{_qtdir}/bin/qdbusviewer
1371 %attr(755,root,root) %{_bindir}/qdbus
1372 %attr(755,root,root) %{_bindir}/qdbusviewer
1373 %attr(755,root,root) %{_libdir}/libQtDBus.so.*.*
1376 %defattr(644,root,root,755)
1377 %attr(755,root,root) %{_libdir}/libQtGui.so.*.*
1378 %attr(755,root,root) %{_qtdir}/plugins/accessible/*.so
1379 %attr(755,root,root) %{_qtdir}/plugins/codecs/*.so
1380 %attr(755,root,root) %{_qtdir}/plugins/iconengines/*.so
1381 %attr(755,root,root) %{_qtdir}/plugins/imageformats/*.so
1382 %attr(755,root,root) %{_qtdir}/plugins/inputmethods/*.so
1385 %defattr(644,root,root,755)
1386 %attr(755,root,root) %{_libdir}/libQtNetwork.so.*.*
1389 %defattr(644,root,root,755)
1390 %attr(755,root,root) %{_libdir}/libQtOpenGL.so.*.*
1393 %defattr(644,root,root,755)
1394 %attr(755,root,root) %{_libdir}/libQtScript.so.*.*
1397 %defattr(644,root,root,755)
1398 %attr(755,root,root) %{_libdir}/libQtSql.so.*.*
1401 %files -n QtSql-mysql
1402 %defattr(644,root,root,755)
1403 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlmysql*.so
1407 %files -n QtSql-pgsql
1408 %defattr(644,root,root,755)
1409 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlpsql*.so
1413 %files -n QtSql-sqlite
1414 %defattr(644,root,root,755)
1415 #%attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlite2*.so
1419 %files -n QtSql-sqlite3
1420 %defattr(644,root,root,755)
1421 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlite*.so
1423 #%exclude %{_qtdir}/plugins/sqldrivers/libqsqlite2*.so
1428 %files -n QtSql-ibase
1429 %defattr(644,root,root,755)
1430 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlibase*.so
1434 %files -n QtSql-odbc
1435 %defattr(644,root,root,755)
1436 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlodbc*.so
1440 %defattr(644,root,root,755)
1441 %attr(755,root,root) %{_libdir}/libQtSvg.so.*.*
1444 %defattr(644,root,root,755)
1445 %attr(755,root,root) %{_libdir}/libQtTest.so.*.*
1448 %defattr(644,root,root,755)
1449 %attr(755,root,root) %{_libdir}/libQtXml.so.*.*
1451 %files -n Qt3Support
1452 %defattr(644,root,root,755)
1453 %attr(755,root,root) %{_bindir}/uic3
1454 %attr(755,root,root) %{_qtdir}/bin/uic3
1455 %attr(755,root,root) %{_libdir}/libQt3Support.so.*.*
1457 %files -n QtAssistant
1458 %defattr(644,root,root,755)
1459 %attr(755,root,root) %{_libdir}/libQtAssistantClient.so.*.*
1460 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/qt4-assistant.qm
1462 %files -n QtDesigner
1463 %defattr(644,root,root,755)
1464 %attr(755,root,root) %{_libdir}/libQtDesigner*.so.*.*
1465 %dir %{_qtdir}/plugins/designer
1466 %attr(755,root,root) %{_qtdir}/plugins/designer/*.so
1469 %defattr(644,root,root,755)
1470 %attr(755,root,root) %{_libdir}/libQtUiTools.so.*.*
1473 %defattr(644,root,root,755)
1474 %attr(755,root,root) %{_bindir}/pixeltool
1475 %attr(755,root,root) %{_qtdir}/bin/pixeltool
1476 %attr(755,root,root) %{_bindir}/qt4-assistant
1477 %attr(755,root,root) %{_qtdir}/bin/assistant
1478 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt4-assistant.qm
1479 %{_desktopdir}/qt4-assistant.desktop
1480 %{_pixmapsdir}/qt4-assistant.png
1483 %defattr(644,root,root,755)
1484 %attr(755,root,root) %{_bindir}/rcc
1485 %attr(755,root,root) %{_bindir}/qt4-moc
1486 %attr(755,root,root) %{_bindir}/qt3to4
1487 %attr(755,root,root) %{_bindir}/qt4-uic
1488 %attr(755,root,root) %{_qtdir}/bin/rcc
1489 %attr(755,root,root) %{_qtdir}/bin/moc
1490 %attr(755,root,root) %{_qtdir}/bin/qt3to4
1491 %attr(755,root,root) %{_qtdir}/bin/uic
1492 %{_datadir}/qt4/q3porting.xml
1495 %defattr(644,root,root,755)
1496 %attr(755,root,root) %{_bindir}/qt4-designer
1497 %attr(755,root,root) %{_qtdir}/bin/designer
1498 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt4-designer.qm
1499 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/qt4-designer.qm
1500 %{_desktopdir}/qt4-designer.desktop
1501 %{_pixmapsdir}/qt4-designer.png
1504 %defattr(644,root,root,755)
1505 %attr(755,root,root) %{_bindir}/qt4-linguist
1506 %attr(755,root,root) %{_qtdir}/bin/findtr
1507 %attr(755,root,root) %{_qtdir}/bin/linguist
1508 %attr(755,root,root) %{_qtdir}/bin/lrelease
1509 %attr(755,root,root) %{_qtdir}/bin/lupdate
1510 %lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/qt4-linguist.qm
1511 %{_datadir}/qt4/phrasebooks
1512 %{_desktopdir}/qt4-linguist.desktop
1513 %{_pixmapsdir}/qt4-linguist.png
1516 %defattr(644,root,root,755)
1517 %attr(755,root,root) %{_bindir}/qt4-qmake
1518 %attr(755,root,root) %{_qtdir}/bin/qmake
1519 %{_datadir}/qt4/mkspecs
1523 %defattr(644,root,root,755)
1524 %attr(755,root,root) %{_bindir}/qt4-qtconfig
1525 %attr(755,root,root) %{_qtdir}/bin/qtconfig
1526 %{_desktopdir}/qt4-qtconfig.desktop
1527 %{_pixmapsdir}/qt4-qtconfig.png
1530 %defattr(644,root,root,755)
1531 %attr(755,root,root) %{_bindir}/qvfb
1532 %attr(755,root,root) %{_qtdir}/bin/qvfb
1535 %defattr(644,root,root,755)
1536 %{_docdir}/%{name}-doc
1539 %files -n QtCore-devel -f QtCore-devel.files
1540 %defattr(644,root,root,755)
1541 %files -n QtDBus-devel -f QtDBus-devel.files
1542 %defattr(644,root,root,755)
1543 %files -n QtDesigner-devel -f QtDesigner-devel.files
1544 %defattr(644,root,root,755)
1545 %files -n QtGui-devel -f QtGui-devel.files
1546 %defattr(644,root,root,755)
1547 %files -n QtNetwork-devel -f QtNetwork-devel.files
1548 %defattr(644,root,root,755)
1549 %files -n QtOpenGL-devel -f QtOpenGL-devel.files
1550 %defattr(644,root,root,755)
1551 %files -n QtScript-devel -f QtScript-devel.files
1552 %defattr(644,root,root,755)
1553 %files -n QtSql-devel -f QtSql-devel.files
1554 %defattr(644,root,root,755)
1555 %files -n QtSvg-devel -f QtSvg-devel.files
1556 %defattr(644,root,root,755)
1557 %files -n QtTest-devel -f QtTest-devel.files
1558 %defattr(644,root,root,755)
1559 %files -n QtXml-devel -f QtXml-devel.files
1560 %defattr(644,root,root,755)
1561 %files -n Qt3Support-devel -f Qt3Support-devel.files
1562 %defattr(644,root,root,755)
1563 %files -n QtAssistant-devel -f QtAssistant-devel.files
1564 %defattr(644,root,root,755)
1565 %files -n QtUiTools-devel -f QtUiTools-devel.files
1566 %defattr(644,root,root,755)
1568 %if %{with static_libs}
1569 %files -n QtCore-static
1570 %defattr(644,root,root,755)
1571 %{_libdir}/libQtCore*.a
1573 %files -n QtDBus-static
1574 %defattr(644,root,root,755)
1575 %{_libdir}/libQtDBus*.a
1577 %files -n QtGui-static
1578 %defattr(644,root,root,755)
1579 %{_libdir}/libQtGui*.a
1581 %files -n QtNetwork-static
1582 %defattr(644,root,root,755)
1583 %{_libdir}/libQtNetwork*.a
1585 %files -n QtOpenGL-static
1586 %defattr(644,root,root,755)
1587 %{_libdir}/libQtOpenGL*.a
1589 %files -n QtScript-static
1590 %defattr(644,root,root,755)
1591 %{_libdir}/libQtScript*.a
1593 %files -n QtSql-static
1594 %defattr(644,root,root,755)
1595 %{_libdir}/libQtSql*.a
1597 %files -n QtSvg-static
1598 %defattr(644,root,root,755)
1599 %{_libdir}/libQtSvg*.a
1601 %files -n QtXml-static
1602 %defattr(644,root,root,755)
1603 %{_libdir}/libQtXml*.a
1605 %files -n Qt3Support-static
1606 %defattr(644,root,root,755)
1607 %{_libdir}/libQt3Support*.a
1609 %files -n QtAssistant-static
1610 %defattr(644,root,root,755)
1611 %{_libdir}/libQtAssistantClient.a
1613 %files -n QtDesigner-static
1614 %defattr(644,root,root,755)
1615 %{_libdir}/libQtDesigner*.a
1617 %files -n QtUiTools-static
1618 %defattr(644,root,root,755)
1619 %{_libdir}/libQtUiTools.a
1622 %files demos -f demos.files
1623 %defattr(644,root,root,755)
1624 %files examples -f examples.files
1625 %defattr(644,root,root,755)