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