]> git.pld-linux.org Git - packages/qt.git/blame - qt.spec
- disable format-string eror checking, this antique is not worth the effort
[packages/qt.git] / qt.spec
CommitLineData
0ac25589 1# TODO: use system sqlite
7f2a2d73
JB
2#
3# Conditional build:
0ebb7751 4%bcond_with dlopen_gl # dlopen libGL.so and libXmu.so instead of direct linking (NOTE: should dlopen by soname, not *.so like it does now!)
91e76425 5%bcond_with nas # enable NAS audio support
0a5f57a5 6%bcond_with single # enable single-threaded libraries
91e76425
JB
7%bcond_without static_libs # don't build static libraries
8%bcond_without cups # disable CUPS support
5c878990
JB
9%bcond_without mysql # don't build MySQL plugin
10%bcond_without odbc # don't build unixODBC plugin
11%bcond_without pgsql # don't build PostgreSQL plugin
09680661 12%bcond_without designer # don't build designer (it takes long)
5c878990 13%bcond_without sqlite # don't build SQLite plugin
0ac25589 14%bcond_without ibase # don't build ibase (InterBase/Firebird) plugin
0a5f57a5 15%bcond_without pch # don't enable pch in qmake
09680661 16#
14f99f05 17%ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
caadae0f
JB
18%undefine with_ibase
19%endif
c247478b
ER
20%define with_sql 1
21%{!?with_sqlite:%{!?with_ibase:%{!?with_mysql:%{!?with_pgsql:%{!?with_odbc:%undefine with_sql}}}}}
0d479a26 22
66b71d49 23%define ver 3.3.8.d
aba31651 24
f299c0ae 25Summary: The Qt3 GUI application framework
e2f55516
ER
26Summary(es.UTF-8): Biblioteca para ejecutar aplicaciones GUI Qt
27Summary(pl.UTF-8): Biblioteka Qt3 do tworzenia GUI
28Summary(pt_BR.UTF-8): Estrutura para rodar aplicações GUI Qt
102afdb1 29Name: qt
175e2054 30Version: %{ver}
9c6483d3 31Release: 6
89cde098 32Epoch: 6
cdcfc119 33License: QPL v1, GPL v2 or GPL v3
102afdb1 34Group: X11/Libraries
66b71d49
AM
35Source0: http://mirror.ets.kth.se/trinity/releases/3.5.13/dependencies/qt3-%{version}.tar.gz
36# Source0-md5: 78dc675e84aed595375449818cbb589a
0deb0bc7
AM
37Source1: %{name}config.desktop
38Source2: designer.desktop
39Source3: assistant.desktop
40Source4: linguist.desktop
41Source5: designer.png
42Source6: assistant.png
43Source7: linguist.png
9433c91b
ER
44# generated using notes from kdebase-SuSE/qtkdeintegration/README
45Source8: qtkdeintegration_x11.cpp
46Source9: qtkdeintegration_x11_p.h
78fc78c5 47Patch1: %{name}-FHS.patch
48Patch2: %{name}-qmake-nostatic.patch
49Patch3: %{name}-disable_tutorials.patch
50Patch4: %{name}-locale.patch
51Patch5: %{name}-make_use_of_locale.patch
f67b43ac 52Patch6: %{name}-qmake-opt.patch
8038d6dc 53Patch7: %{name}-locale-charmap.patch
f67b43ac 54Patch8: %{name}-gcc34.patch
5a0b0a25 55Patch9: %{name}-support-cflags-with-commas.patch
83a6337a 56# for troll only
f67b43ac 57Patch10: %{name}-antialias.patch
66b71d49
AM
58Patch11: %{name}-x11-free-quiet.patch
59Patch12: %{name}-fvisibility.patch
60Patch13: qt-buildkey-fixed.patch
61Patch14: %{name}-odbc.patch
62Patch15: qt-3.3.8.d-libpng15-1.patch
4648f688 63URL: http://www.trolltech.com/products/qt/
095cd2e6 64%{?with_ibase:BuildRequires: Firebird-devel >= 1.5.0}
ebcb871a 65BuildRequires: OpenGL-GLU-devel
c8ea7660 66%{?with_cups:BuildRequires: cups-devel}
1a041547 67BuildRequires: flex
2cec2206 68BuildRequires: freetype-devel >= 1:2.0.0
96a64d31 69%{?with_pch:BuildRequires: gcc >= 5:3.4.0}
05f3458e 70BuildRequires: giflib-devel
193cb4cc 71BuildRequires: libjpeg-devel
6b400510 72BuildRequires: libmng-devel >= 1.0.0
175e2054 73BuildRequires: libpng-devel >= 2:1.0.8
91908b4c 74BuildRequires: libstdc++-devel
c8ea7660 75%{?with_mysql:BuildRequires: mysql-devel}
c65780d7
JB
76%{?with_nas:BuildRequires: nas-devel}
77BuildRequires: perl-base
c8ea7660
JB
78%{?with_pgsql:BuildRequires: postgresql-backend-devel}
79%{?with_pgsql:BuildRequires: postgresql-devel}
14f99f05 80BuildRequires: rpmbuild(macros) >= 1.213
80f0ee98 81BuildRequires: sed >= 4.0
d2ce5e27 82%{?with_sqlite:BuildRequires: sqlite-devel}
b18bc3b8 83%{?with_odbc:BuildRequires: unixODBC-devel}
ebcb871a
JB
84BuildRequires: xorg-lib-libSM-devel
85BuildRequires: xorg-lib-libXcursor-devel
86BuildRequires: xorg-lib-libXext-devel
ebcb871a 87BuildRequires: xorg-lib-libXft-devel
f97fa28a 88BuildRequires: xorg-lib-libXinerama-devel
ebcb871a
JB
89BuildRequires: xorg-lib-libXmu-devel
90BuildRequires: xorg-lib-libXrandr-devel
91BuildRequires: xorg-lib-libXrender-devel
12740484 92BuildRequires: zlib-devel
2cec2206 93Requires: freetype >= 1:2.0.0
095cd2e6 94Requires: libmng >= 1.0.0
e70c6d7b 95Obsoletes: qt-extensions
34cf9981 96Obsoletes: qt-utils
095cd2e6
JB
97Conflicts: kdelibs <= 8:3.2-0.030602.1
98BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
96a64d31 99
2bc76f46
JR
100%define Werror_cflags %{nil}
101
6ca8111c 102%define _noautoreqdep libGL.so.1 libGLU.so.1
396080ef 103%define specflags -fno-strict-aliasing
658932ff 104
6625eb4f 105# <begin main library description>
106
4814077d 107%description
6625eb4f 108Qt is a complete C++ application development framework, which includes
109a class library and tools for multiplatform development and
110internationalization. Using Qt, a single source code tree can build
111applications that run natively on different platforms (Windows,
112Unix/Linux, Mac OS X, embedded Linux).
113
114Qt has a rich set of standard widgets, and lets you write custom
115controls. It encapsulates four different platform-specific APIs, and
116the APIs for file-handling, networking, process-handling, threading,
c977a8cf 117database access, etc. Qt now also has Motif migration support and
118Netscape LiveConnect plugin.
23786777 119
c977a8cf 120This package contains the shared, multi-threaded, Linux version of the
121Qt library, the style plugins and translation files for Qt. Please
122install qt-st if you need the single-threaded version of this library
123(which isn't usually necessary).
4814077d 124
a0529e0f 125%description -l es.UTF-8
c977a8cf 126Qt es un completo framework de desarrollo de aplicaciones en C++, el
127que incluye una biblioteca de clases y unas herramientas para el
128desarrollo multiplataforma e internacionalizado. Usando Qt, un
a0529e0f 129genérico árbol de código fuente se puede usar para construir
c977a8cf 130aplicaciones que puedan ejecutarse nativamente en varias plataformas
131(Windows, Unix/Linux, Mac OS X, Linux embebido).
132
a0529e0f 133Qt provee un rico conjunto de componentes estándares y le permite
c977a8cf 134escribir unos propios. Encapsula cuatro APIs diferentes dependientes
a0529e0f
JR
135de la plataforma y también APIs para el manejo de ficheros, la red, el
136manejo de los procesos e hilos, acceso a bases de datos, etc. También
137está incluido soporte de migración de Motif y un plugin para Netscape
c977a8cf 138LiveConnect.
139
a0529e0f
JR
140Este paquete contiene la versión compartida multi-hilvanada de la
141biblioteca Qt, los plugin de estilo y ficheros de traducción para Qt.
142Instálese qt-st si necesita la versión mono-hilvanada de esta
c977a8cf 143biblioteca (lo cual normalmente no es necesario).
23786777 144
a0529e0f 145%description -l pl.UTF-8
6625eb4f 146Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w
a0529e0f
JR
147języku C++, w którego skład wchodzi biblioteka z klasami oraz
148wieloplatformowymi narzędziami do rozwijania i tłumaczenia aplikacji.
149Z pomocą Qt jeden kod źródłowy może być natywnie uruchamiany na
150różnych platformach (Windows, Unix/Linux, Mac OS X).
151
152Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale
153pozwala również na pisanie własnych elementów. Łączy w sposób
154niewidoczny dla programisty interfejsy programowania różnych systemów,
155tworząc w ten sposób jeden interfejs dla obsługi plików, sieci,
156procesów, wątków, baz danych itp. Umożliwia także łatwe przenoszenie
157na Qt aplikacji korzystających z Motif oraz pisanie wtyczek z
6625eb4f 158wykorzystaniem Netscape LiveConnect.
159
a0529e0f
JR
160Ten pakiet zawiera współdzieloną, wielowątkową, linuksową wersję
161biblioteki Qt, wtyczki ze stylami oraz pliki tłumaczeń Qt. Zainstaluj
162qt-st jeśli potrzebujesz wersji jednowątkowej tej biblioteki (co
c977a8cf 163zwykle nie jest konieczne).
4cd84ab1 164
a0529e0f
JR
165%description -l pt_BR.UTF-8
166Contém as bibliotecas compartilhadas necessárias para rodar aplicações
cbd58aa3 167Qt, bem como os arquivos README.
23786777 168
4814077d 169%package devel
6625eb4f 170Summary: Development files for the Qt GUI toolkit
e2f55516
ER
171Summary(es.UTF-8): Archivos de inclusión necesaria para compilar aplicaciones Qt
172Summary(pl.UTF-8): Pliki nagłówkowe, przykłady i dokumentacja do biblioteki
173Summary(pt_BR.UTF-8): Arquivos de inclusão necessária para compilar aplicações Qt
fe876ed3 174Group: X11/Development/Libraries
19aacacc 175Requires: %{name} = %{epoch}:%{version}-%{release}
0ebb7751 176%{!?with_dlopen_gl:Requires: OpenGL-devel}
2cec2206 177Requires: freetype-devel >= 1:2.0.0
cc8d0e63 178Requires: libjpeg-devel
095cd2e6 179Requires: libmng-devel >= 1.0.0
cc8d0e63 180Requires: libpng-devel
3c6c9d4b 181Requires: libstdc++-devel
ebcb871a
JB
182Requires: xorg-lib-libSM-devel
183Requires: xorg-lib-libXcursor-devel
184Requires: xorg-lib-libXext-devel
ebcb871a 185Requires: xorg-lib-libXft-devel
f97fa28a 186Requires: xorg-lib-libXinerama-devel
ebcb871a
JB
187Requires: xorg-lib-libXmu-devel
188Requires: xorg-lib-libXrandr-devel
189Requires: xorg-lib-libXrender-devel
f4f4a0ff 190Requires: zlib-devel
f586349c 191Conflicts: qt2-devel
4814077d 192
193%description devel
6625eb4f 194This package contains the Qt development tools: the metaobjects
195compiler (moc) and the user interface compiler (uic); Qt include
196files, pkgconfig helpers and tools for preserving compatibility
197between versions of Qt.
198
a0529e0f
JR
199%description devel -l pl.UTF-8
200Ten pakiet zawiera narzędzia programistyczne Qt: kompilator
201metaobiektów (moc), kompilator interfejsu użytkownika (uic); pliki
202nagłówkowe, wsparcie dla pkgconfig oraz narzędzia ułatwiające
203zachowanie kompatybilności niezależnie od wersji Qt.
4cd84ab1 204
f299c0ae 205%package static
c65780d7 206Summary: Qt static library
e2f55516 207Summary(pl.UTF-8): Biblioteka statyczna Qt
f299c0ae 208Group: X11/Development/Libraries
bdfce653 209Requires: %{name}-devel = %{epoch}:%{version}-%{release}
f299c0ae
AM
210
211%description static
6625eb4f 212Qt is a complete C++ application development framework, which includes
213a class library and tools for multiplatform development and
214internationalization. Using Qt, a single source code tree can build
215applications that run natively on different platforms (Windows,
216Unix/Linux, Mac OS X, embedded Linux).
217
218Qt has a rich set of standard widgets, and lets you write custom
219controls. It encapsulates four different platform-specific APIs, and
220the APIs for file-handling, networking, process-handling, threading,
221database access, etc. Qt now also has Motif migration oraz Netscape
222LiveConnect plugin.
223
224This package contains the static, multi-threaded, linux version of the
225Qt library.
226
a0529e0f 227%description static -l pl.UTF-8
6625eb4f 228Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w
a0529e0f
JR
229języku C++, w którego skład wchodzi biblioteka z klasami oraz
230wieloplatformowymi narzędziami do rozwijania i tłumaczenia aplikacji.
231Z pomocą Qt jeden kod źródłowy może być natywnie uruchamiany na
232różnych platformach (Windows, Unix/Linux, Mac OS X).
233
234Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale
235pozwala również na pisanie własnych elementów. Łączy w sposób
236niewidoczny dla programisty interfejsy programowania różnych systemów,
237tworząc w ten sposób jeden interfejs dla obsługi plików, sieci,
238procesów, wątków, baz danych itp. Umożliwia także łatwe przenoszenie
239na Qt aplikacji korzystających z Motif oraz pisanie wtyczek z
6625eb4f 240wykorzystaniem Netscape LiveConnect.
241
a0529e0f 242Ten pakiet zawiera statyczną, wielowątkową, linuksową wersję
6625eb4f 243biblioteki Qt.
f299c0ae 244
bdfce653 245%package doc
19aacacc 246Summary: Qt Documentation in HTML format
e2f55516 247Summary(pl.UTF-8): Dokumentacja Qt w formacie HTML
0c4d432d 248Group: X11/Development/Libraries
d7184201 249Obsoletes: qt-doc-html
0c4d432d 250
bdfce653 251%description doc
0c4d432d 252Qt documentation in HTML format.
253
a0529e0f 254%description doc -l pl.UTF-8
0c4d432d 255Dokumentacja qt w formacie HTML.
256
bdfce653 257%package man
19aacacc 258Summary: Qt man pages
e2f55516 259Summary(pl.UTF-8): Qt - strony man
bdfce653 260Group: X11/Development/Libraries
d7184201 261Obsoletes: qt-doc-man
bdfce653 262
263%description man
264Qt documentation in man pages format.
265
a0529e0f 266%description man -l pl.UTF-8
19aacacc 267Dokumentacja Qt w formacie stron man.
bdfce653 268
a201f985 269%package examples
6625eb4f 270Summary: Example programs bundled with Qt
e2f55516
ER
271Summary(pl.UTF-8): Ćwiczenia i przykłady do Qt
272Summary(pt_BR.UTF-8): Programas exemplo desenvolvidos com o Qt
a201f985 273Group: X11/Development/Libraries
bdfce653 274Requires: %{name}-devel = %{epoch}:%{version}-%{release}
831bc245 275
a201f985 276%description examples
6625eb4f 277Example programs bundled with Qt version.
831bc245 278
a0529e0f
JR
279%description examples -l pl.UTF-8
280Ćwiczenia/przykłady dołączone do Qt.
831bc245 281
a0529e0f
JR
282%description examples -l pt_BR.UTF-8
283Programas exemplo para o Qt versão.
6625eb4f 284
285# <end main library desc>
286
287# <start multithreaded plugins desc>
23786777 288
5c878990 289%package plugin-ibase
805d7290 290Summary: Database plugin for InterBase/Firebird Qt support
e2f55516
ER
291Summary(pl.UTF-8): Wtyczka InterBase/Firebird do Qt
292Summary(pt_BR.UTF-8): Plugin de suporte a InterBase/Firebird para Qt
805d7290 293Group: X11/Libraries
294Requires: %{name} = %{epoch}:%{version}-%{release}
095cd2e6 295Requires: Firebird-lib >= 1.5.0
caadae0f 296Provides: %{name}-plugin-sql = %{epoch}:%{version}-%{release}
5c878990
JB
297
298%description plugin-ibase
6625eb4f 299This package contains a multi-thread enabled plugin for accessing
300Interbase/Firebird database via the QSql classes.
5c878990 301
a0529e0f
JR
302%description plugin-ibase -l pl.UTF-8
303Ten pakiet zawiera wielowątkową wersję wtyczki do Qt umożliwiającej
6625eb4f 304korzystanie z baz danych Interbase/Firebird poprzez klasy QSql.
5c878990 305
a0529e0f 306%description plugin-ibase -l pt_BR.UTF-8
5c878990
JB
307Plugin de suporte a InterBase/Firebird para Qt.
308
bdfce653 309%package plugin-mysql
c65780d7 310Summary: Database plugin for MySQL Qt support
e2f55516
ER
311Summary(pl.UTF-8): Wtyczka MySQL do Qt
312Summary(pt_BR.UTF-8): Plugin de suporte a MySQL para Qt
50f34d85 313Group: X11/Libraries
bdfce653 314Requires: %{name} = %{epoch}:%{version}-%{release}
caadae0f 315Provides: %{name}-plugin-sql = %{epoch}:%{version}-%{release}
d7184201 316Obsoletes: qt-plugins-mysql
50f34d85 317
bdfce653 318%description plugin-mysql
6625eb4f 319This package contains a multi-thread enabled plugin for accessing
320MySQL database via the QSql classes.
50f34d85 321
a0529e0f
JR
322%description plugin-mysql -l pl.UTF-8
323Ten pakiet zawiera wielowątkową wersję wtyczki do Qt umożliwiającej
6625eb4f 324korzystanie z baz danych MySQL poprzez klasy QSql.
23786777 325
a0529e0f 326%description plugin-mysql -l pt_BR.UTF-8
c65780d7 327Plugin de suporte a MySQL para Qt.
50f34d85 328
5c878990
JB
329%package plugin-odbc
330Summary: Database plugin for ODBC Qt support
e2f55516
ER
331Summary(pl.UTF-8): Wtyczka ODBC do Qt
332Summary(pt_BR.UTF-8): Plugin de suporte a ODBC para Qt
5c878990
JB
333Group: X11/Libraries
334Requires: %{name} = %{epoch}:%{version}-%{release}
caadae0f 335Provides: %{name}-plugin-sql = %{epoch}:%{version}-%{release}
5c878990
JB
336Obsoletes: qt-plugins-odbc
337
338%description plugin-odbc
6625eb4f 339This package contains a multi-thread enabled plugin for accessing
340unixODBC services via the QSql classes.
5c878990 341
a0529e0f
JR
342%description plugin-odbc -l pl.UTF-8
343Ten pakiet zawiera wielowątkową wersję wtyczki do Qt umożliwiającej
344korzystanie z usług unixODBC poprzez klasy QSql.
5c878990 345
a0529e0f 346%description plugin-odbc -l pt_BR.UTF-8
5c878990
JB
347Plugin de suporte a ODBC para Qt.
348
bdfce653 349%package plugin-psql
c65780d7 350Summary: Database plugin for PostgreSQL Qt support
e2f55516
ER
351Summary(pl.UTF-8): Wtyczka PostgreSQL do Qt
352Summary(pt_BR.UTF-8): Plugin de suporte a PostgreSQL para Qt
50f34d85 353Group: X11/Libraries
bdfce653 354Requires: %{name} = %{epoch}:%{version}-%{release}
caadae0f 355Provides: %{name}-plugin-sql = %{epoch}:%{version}-%{release}
d7184201 356Obsoletes: qt-plugins-psql
50f34d85 357
bdfce653 358%description plugin-psql
6625eb4f 359This package contains a multi-thread enabled plugin for accessing
360PostgreSQL database via the QSql classes.
361
a0529e0f 362%description plugin-psql -l es.UTF-8
7356c944 363Plugin de suporte a PostgreSQL para Qt.
50f34d85 364
a0529e0f
JR
365%description plugin-psql -l pl.UTF-8
366Ten pakiet zawiera wielowątkową wersję wtyczki do Qt umożliwiającej
6625eb4f 367korzystanie z baz danych PostgreSQL poprzez klasy QSql.
23786777 368
d2ce5e27 369%package plugin-sqlite
805d7290 370Summary: Database plugin for SQLite Qt support
e2f55516
ER
371Summary(pl.UTF-8): Wtyczka SQLite do Qt
372Summary(pt_BR.UTF-8): Plugin de suporte a SQLite para Qt
805d7290 373Group: X11/Libraries
374Requires: %{name} = %{epoch}:%{version}-%{release}
caadae0f 375Provides: %{name}-plugin-sql = %{epoch}:%{version}-%{release}
d2ce5e27 376
377%description plugin-sqlite
6625eb4f 378This package contains a multi-thread enabled plugin for using the
379SQLite library (which allows to acces virtually any SQL database) via
380the QSql classes.
d2ce5e27 381
a0529e0f
JR
382%description plugin-sqlite -l pl.UTF-8
383Ten pakiet zawiera wielowątkową wersję wtyczki do Qt umożliwiającej
6625eb4f 384korzystanie z baz danych PostgreSQL poprzez klasy QSql.
d2ce5e27 385
a0529e0f 386%description plugin-sqlite -l pt_BR.UTF-8
19aacacc 387Plugin de suporte a SQLite para Qt.
6625eb4f 388
19aacacc 389# <end multithreaded plugins desc>
6625eb4f 390
391# <begin single threaded desc>
d2ce5e27 392
c65780d7
JB
393%package st
394Summary: Single-threaded Qt library
e2f55516 395Summary(pl.UTF-8): Jednowątkowa wersja biblioteki Qt
c65780d7
JB
396Group: X11/Libraries
397Requires: %{name} = %{epoch}:%{version}-%{release}
398
399%description st
6625eb4f 400Qt is a complete C++ application development framework, which includes
401a class library and tools for multiplatform development and
402internationalization. Using Qt, a single source code tree can build
403applications that run natively on different platforms (Windows,
404Unix/Linux, Mac OS X, embedded Linux).
405
406Qt has a rich set of standard widgets, and lets you write custom
407controls. It encapsulates four different platform-specific APIs, and
408the APIs for file-handling, networking, process-handling, threading,
409database access, etc. Qt now also has Motif migration oraz Netscape
410LiveConnect plugin.
411
412This package contains the shared, single-threaded, linux version of
413the Qt library and single-threaded styles for Qt. This version is
414deprecated, please do not install it unless you explicitly need to.
c65780d7 415
a0529e0f 416%description st -l pl.UTF-8
6625eb4f 417Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w
a0529e0f
JR
418języku C++, w którego skład wchodzi biblioteka z klasami oraz
419wieloplatformowymi narzędziami do rozwijania i tłumaczenia aplikacji.
420Z pomocą Qt jeden kod źródłowy może być natywnie uruchamiany na
421różnych platformach (Windows, Unix/Linux, Mac OS X).
422
423Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale
424pozwala również na pisanie własnych elementów. Łączy w sposób
425niewidoczny dla programisty interfejsy programowania różnych systemów,
426tworząc w ten sposób jeden interfejs dla obsługi plików, sieci,
427procesów, wątków, baz danych itp. Umożliwia także łatwe przenoszenie
428na Qt aplikacji korzystających z Motif oraz pisanie wtyczek z
6625eb4f 429wykorzystaniem Netscape LiveConnect.
430
a0529e0f
JR
431Ten pakiet zawiera współdzieloną, jednowątkową, linuksową wersję
432biblioteki Qt oraz jednowątkowe wtyczki ze stylami. Ta wersja nie jest
433już wspierana i nie zaleca się jej instalowania bez wyraźnej potrzeby.
c65780d7
JB
434
435%package st-devel
436Summary: Development files for single-threaded Qt library
e2f55516 437Summary(pl.UTF-8): Pliki programistyczne dla jednowątkowej biblioteki Qt
c65780d7
JB
438Group: X11/Development/Libraries
439Requires: %{name}-devel = %{epoch}:%{version}-%{release}
440Requires: %{name}-st = %{epoch}:%{version}-%{release}
441
442%description st-devel
6625eb4f 443This package contains the single threaded
c65780d7 444
a0529e0f
JR
445%description st-devel -l pl.UTF-8
446Pliki programistyczne dla jednowątkowej biblioteki Qt.
c65780d7
JB
447
448%package st-static
449Summary: Single-threaded Qt static libraries
e2f55516 450Summary(pl.UTF-8): Jednowątkowa statyczna biblioteka Qt
c65780d7
JB
451Group: X11/Development/Libraries
452Requires: %{name}-st-devel = %{epoch}:%{version}-%{release}
453
454%description st-static
6625eb4f 455Qt is a complete C++ application development framework, which includes
456a class library and tools for multiplatform development and
457internationalization. Using Qt, a single source code tree can build
458applications that run natively on different platforms (Windows,
459Unix/Linux, Mac OS X, embedded Linux).
460
461Qt has a rich set of standard widgets, and lets you write custom
462controls. It encapsulates four different platform-specific APIs, and
463the APIs for file-handling, networking, process-handling, threading,
464database access, etc. Qt now also has Motif migration oraz Netscape
465LiveConnect plugin.
466
467This package contains the static, single-threaded, linux version of
468the Qt library and single-threaded styles for Qt. This version is
469deprecated, please do not install it unless you explicitly need to.
c65780d7 470
a0529e0f 471%description st-static -l pl.UTF-8
6625eb4f 472Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w
a0529e0f
JR
473języku C++, w którego skład wchodzi biblioteka z klasami oraz
474wieloplatformowymi narzędziami do rozwijania i tłumaczenia aplikacji.
475Z pomocą Qt jeden kod źródłowy może być natywnie uruchamiany na
476różnych platformach (Windows, Unix/Linux, Mac OS X).
477
478Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale
479pozwala również na pisanie własnych elementów. Łączy w sposób
480niewidoczny dla programisty interfejsy programowania różnych systemów,
481tworząc w ten sposób jeden interfejs dla obsługi plików, sieci,
482procesów, wątków, baz danych itp. Umożliwia także łatwe przenoszenie
483na Qt aplikacji korzystających z Motif oraz pisanie wtyczek z
6625eb4f 484wykorzystaniem Netscape LiveConnect.
485
a0529e0f
JR
486Ten pakiet zawiera współdzieloną, jednowątkową, linuksową wersję
487biblioteki Qt oraz jednowątkowe wtyczki ze stylami. Ta wersja nie jest
488już wspierana i nie zaleca się jej instalowania bez wyraźnej potrzeby.
c65780d7 489
5c878990 490%package st-plugin-ibase
805d7290 491Summary: Database plugin for InterBase/Firebird support in single-threaded Qt
e2f55516 492Summary(pl.UTF-8): Wtyczka InterBase/Firebird do jednowątkowej wersji Qt
805d7290 493Group: X11/Libraries
494Requires: %{name}-st = %{epoch}:%{version}-%{release}
095cd2e6 495Requires: Firebird-lib >= 1.5.0
805d7290 496Provides: %{name}-st-plugin-sql = %{epoch}:%{version}-%{release}
5c878990
JB
497
498%description st-plugin-ibase
6625eb4f 499This package contains a single-thread plugin for accessing
500InterBase/Firebird database via the QSql classes.
5c878990 501
a0529e0f
JR
502%description st-plugin-ibase -l pl.UTF-8
503Ten pakiet zawiera jednowątkową wersję wtyczki do Qt umożliwiającej
6625eb4f 504korzystanie z baz danych InterBase/Firebird poprzez klasy QSql.
5c878990 505
c65780d7
JB
506%package st-plugin-mysql
507Summary: Database plugin for MySQL support in single-threaded Qt
e2f55516 508Summary(pl.UTF-8): Wtyczka MySQL do jednowątkowej wersji Qt
c65780d7
JB
509Group: X11/Libraries
510Requires: %{name}-st = %{epoch}:%{version}-%{release}
511Provides: %{name}-st-plugin-sql = %{epoch}:%{version}-%{release}
512
513%description st-plugin-mysql
6625eb4f 514This package contains a single-thread plugin for accessing MySQL
515database via the QSql classes.
c65780d7 516
a0529e0f
JR
517%description st-plugin-mysql -l pl.UTF-8
518Ten pakiet zawiera jednowątkową wersję wtyczki do Qt umożliwiającej
6625eb4f 519korzystanie z baz danych MySQL poprzez klasy QSql.
c65780d7 520
5c878990
JB
521%package st-plugin-odbc
522Summary: Database plugin for ODBC support in single-threaded Qt
e2f55516 523Summary(pl.UTF-8): Wtyczka ODBC do jednowątkowej wersji Qt
5c878990
JB
524Group: X11/Libraries
525Requires: %{name}-st = %{epoch}:%{version}-%{release}
526Provides: %{name}-st-plugin-sql = %{epoch}:%{version}-%{release}
d2ce5e27 527
5c878990 528%description st-plugin-odbc
6625eb4f 529This package contains a single-thread enabled plugin for accessing
530unixODBC services via the QSql classes.
d2ce5e27 531
a0529e0f
JR
532%description st-plugin-odbc -l pl.UTF-8
533Ten pakiet zawiera jednowątkową wersję wtyczki do Qt umożliwiającej
534korzystanie z usług unixODBC poprzez klasy QSql.
d2ce5e27 535
c65780d7
JB
536%package st-plugin-psql
537Summary: Database plugin for PostgreSQL support in single-threaded Qt
e2f55516
ER
538Summary(pl.UTF-8): Wtyczka PostgreSQL do jednowątkowej wersji Qt
539Summary(pt_BR.UTF-8): Plugin de suporte a PostgreSQL para Qt
c65780d7
JB
540Group: X11/Libraries
541Requires: %{name}-st = %{epoch}:%{version}-%{release}
542Provides: %{name}-st-plugin-sql = %{epoch}:%{version}-%{release}
543
544%description st-plugin-psql
6625eb4f 545This package contains a single-thread plugin for accessing PostgreSQL
546database via the QSql classes.
c65780d7 547
a0529e0f
JR
548%description st-plugin-psql -l pl.UTF-8
549Ten pakiet zawiera jednowątkową wersję wtyczki do Qt umożliwiającej
6625eb4f 550korzystanie z baz danych PostgreSQL poprzez klasy QSql.
c65780d7 551
d2ce5e27 552%package st-plugin-sqlite
805d7290 553Summary: Database plugin for SQLite support in single-threaded Qt
e2f55516 554Summary(pl.UTF-8): Wtyczka SQLite do jednowątkowej wersji Qt
805d7290 555Group: X11/Libraries
556Requires: %{name}-st = %{epoch}:%{version}-%{release}
557Provides: %{name}-st-plugin-sql = %{epoch}:%{version}-%{release}
d2ce5e27 558
559%description st-plugin-sqlite
6625eb4f 560This package contains a single-thread plugin for using the SQLite
561library (which allows to acces virtually any SQL database)
d2ce5e27 562
a0529e0f
JR
563%description st-plugin-sqlite -l pl.UTF-8
564Ten pakiet zawiera jednowątkową wersję wtyczki do Qt umożliwiającej
6625eb4f 565korzystanie z baz danych PostgreSQL poprzez klasy QSql.
155beaf2 566
6625eb4f 567%package linguist
568Summary: Translation helper for Qt
e2f55516 569Summary(pl.UTF-8): Aplikacja ułatwiająca tłumaczenie aplikacji oparty o Qt
6625eb4f 570Group: X11/Development/Tools
19aacacc
JB
571Requires: %{name} = %{epoch}:%{version}-%{release}
572Conflicts: qt-devel < 6:3.3.2-3
6625eb4f 573
574%description linguist
575This program provides an interface that shortens and helps systematize
576the process of translating GUIs. Qt Linguist takes all of the text of
577a UI that will be shown to the user, and presents it to a human
578translator in a simple window. When one UI text is translated, the
579program automatically progresses to the next, until they are all
580completed.
581
a0529e0f
JR
582%description linguist -l pl.UTF-8
583Ten program oferuje interfejs znacznie przyśpieszający proces
584tłumaczenia interfejsu użytkownika. Zbiera wszystkie teksty
585przeznaczone do tłumaczenia i przedstawia w łatwym w obsłudze oknie.
586Gdy jeden z nich jest już przetłumaczony, automatycznie przechodzi do
587następnego, aż wszystkie będą przetłumaczone.
6625eb4f 588
589%package assistant
590Summary: Qt documentation browser
e2f55516 591Summary(pl.UTF-8): Przeglądarka dokumentacji Qt
6625eb4f 592Group: X11/Development/Tools
ecdb1693 593Requires: %{name} = %{epoch}:%{version}-%{release}
2cec2206 594Requires: %{name}-doc
19aacacc 595Conflicts: qt-devel < 6:3.3.2-3
155beaf2 596
6625eb4f 597%description assistant
598Qt Assistant is a tool for browsing on-line documentation with
599indexing, bookmarks and full-text search.
155beaf2 600
a0529e0f
JR
601%description assistant -l pl.UTF-8
602Qt Assistant to narzędzie do przeglądania dokumentacji z możliwością
603indeksowania, dodawania zakładek i pełnotekstowego wyszukiwania.
155beaf2 604
6625eb4f 605%package -n qmake
606Summary: Qt makefile generator
e2f55516 607Summary(pl.UTF-8): Generator plików makefile dla aplikacji Qt
0c4d432d 608Group: X11/Development/Tools
19aacacc 609Conflicts: qt-devel < 6:3.3.2-3
0c4d432d 610
6625eb4f 611%description -n qmake
612A powerful makefile generator. It can create makefiles on any platform
613from a simple .pro definitions file.
0c4d432d 614
a0529e0f
JR
615%description -n qmake -l pl.UTF-8
616Rozbudowany generator plików makefile. Potrafi tworzyć pliki makefile
617na każdej platformie na podstawie łatwego w przygotowaniu pliku .pro.
0c4d432d 618
13980c2c 619%package -n qtconfig
19aacacc 620Summary: Qt widgets configuration tool
e2f55516 621Summary(pl.UTF-8): Narzędzie do konfigurowania widgetów Qt
13980c2c 622Group: X11/Applications
623Requires: %{name} = %{epoch}:%{version}-%{release}
624
625%description -n qtconfig
19aacacc 626A tool for configuring look and behavior of Qt widgets.
13980c2c 627
a0529e0f
JR
628%description -n qtconfig -l pl.UTF-8
629Narzędie do konfiguracji wyglądu i zachowania widgetów Qt.
13980c2c 630
9c0c174c 631%package designer
19aacacc 632Summary: IDE used for GUI designing with Qt library
e2f55516 633Summary(pl.UTF-8): IDE służące do projektowania GUI za pomocą biblioteki Qt
805d7290 634Group: X11/Applications
635Requires: %{name}-designer-libs = %{epoch}:%{version}-%{release}
9c0c174c 636
637%description designer
19aacacc 638An advanced tool used for GUI designing with Qt library.
9c0c174c 639
a0529e0f
JR
640%description designer -l pl.UTF-8
641Zaawansowane narzędzie służące do projektowania interfejsu graficznego
642za pomocą biblioteki Qt.
9c0c174c 643
644%package designer-libs
19aacacc 645Summary: Libraries IDE used for GUI designing with Qt library
e2f55516 646Summary(pl.UTF-8): Biblioteki do IDE służącego do projektowania GUI za pomocą biblioteki Qt
805d7290 647Group: X11/Applications
19aacacc 648Requires: %{name} = %{epoch}:%{version}-%{release}
9c0c174c 649
650%description designer-libs
6625eb4f 651Libraries used by the Qt GUI Designer.
9c0c174c 652
a0529e0f
JR
653%description designer-libs -l pl.UTF-8
654Biblioteki wykorzystywane przez narzędzie projektowania interfejsu
6625eb4f 655graficznego - Qt Designer.
9c0c174c 656
3c43cb43 657%prep
66b71d49 658%setup -q -n qt3
78fc78c5 659%patch1 -p1
660%patch2 -p1
ada87089 661%patch3 -p1
050c8a71 662%patch4 -p1
0d479a26 663%patch5 -p1
7d0b5851 664%patch6 -p1
8038d6dc 665%patch7 -p1
61cd571b 666%patch8 -p1
5a0b0a25 667%patch9 -p1
f67b43ac 668%patch10 -p1
66b71d49
AM
669%patch11 -p1
670%patch12 -p0
671%patch13 -p1
672%patch14 -p1
673%patch15 -p1
9433c91b
ER
674
675# copy qt kde integration files
676cp %{SOURCE8} %{SOURCE9} src/kernel
677cp %{SOURCE9} include/private
072f7228 678
bdfce653 679# change QMAKE_CFLAGS_RELEASE to build
680# properly optimized libs
6dce9c26
ER
681cp mkspecs/linux-g++/qmake.conf{,.orig}
682%{__sed} -i -e '
59d140fb 683 s|/usr/lib|%{_libdir}|;
ebcb871a
JB
684 s|/usr/X11R6/lib|/usr/%{_lib}|;
685 s|/usr/X11R6/include|/usr/include|;
9ac4d467 686 s|(QTDIR)/lib|(QTDIR)/%{_lib}|;
6dce9c26
ER
687 s|QMAKE_RPATH\s*=.*|QMAKE_RPATH =|
688 s|QMAKE_STRIP\s*=.*|QMAKE_STRIP =|
689 s|QMAKE_STRIPFLAGS_LIB\s*+=.*|QMAKE_STRIPFLAGS_LIB =|
690 s|QMAKE_LINK\s*=.*g++|QMAKE_LINK = %{__cxx}|
691 s|QMAKE_LINK_SHLIB\s*=.*g++|QMAKE_LINK_SHLIB = %{__cxx}|
692 s|QMAKE_CC\s*=.*gcc|QMAKE_CC = %{__cc}|
693 s|QMAKE_CXX\s*=.*g++|QMAKE_CXX = %{__cxx}|
694 s|QMAKE_CFLAGS\s*=.*-pipe|QMAKE_CFLAGS\t=\t%{rpmcflags} -pipe|
695 s|QMAKE_CFLAGS_RELEASE\s*=.*|QMAKE_CFLAGS_RELEASE\t=\t%{rpmcflags}|
696 s|QMAKE_CFLAGS_DEBUG\s*=.*|QMAKE_CFLAGS_DEBUG\t=\t%{debugcflags}|
697 s|QMAKE_CXXFLAGS_RELEASE\s*=.*|QMAKE_CXXFLAGS_RELEASE\t=\t%{rpmcxxflags}|
698 s|QMAKE_CXXFLAGS_DEBUG\s*=.*|QMAKE_CXXFLAGS_DEBUG\t=\t%{debugcflags}|
699 s|QMAKE_LFLAGS_RELEASE\s*=.*|QMAKE_LFLAGS_RELEASE\t=\t%{rpmldflags}|
700 s|QMAKE_LFLAGS_DEBUG\s*=.*|QMAKE_LFLAGS_DEBUG\t=\t%{rpmldflags}|
701 ' mkspecs/linux-g++/qmake.conf
399dcb05 702
0ac25589
JB
703# default ODBC headers are used (from unixODBC), not iodbc ones; so link with unixODBC not libiodbc
704%{__sed} -i -e 's/-liodbc/-lodbc/' src/sql/qt_sql.pri
705%{__sed} -i -e 's/-liodbc/-lodbc/' plugins/src/sqldrivers/odbc/odbc.pro
706
072f7228 707%build
6dce9c26 708export QTDIR=$(pwd)
072f7228 709export PATH=$QTDIR/bin:$PATH
58e78d5b 710export LD_LIBRARY_PATH=$QTDIR/%{_lib}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
bdfce653 711
c247478b 712%if "%{_lib}" != "lib"
b31d224d 713 ln -sf lib "%{_lib}"
c247478b 714%endif
7f1f092b 715
b2356d61 716# pass OPTFLAGS to build qmake itself with optimization
d0a8a2ad 717export OPTFLAGS="%{rpmcxxflags}"
bdfce653 718
719##################################
720# DEFAULT OPTIONS FOR ALL BUILDS #
721##################################
722
723DEFAULTOPT=" \
9433c91b
ER
724%if "%{_lib}" != "lib"
725 -DUSE_LIB64_PATHES \
726%endif
2f7c8673 727 -DQT_CLEAN_NAMESPACE \
af60b6f1
ER
728 -release \
729 -buildkey pld-linux \
7f1f092b 730 -verbose \
bdfce653 731 -prefix %{_prefix} \
59d140fb 732 -libdir %{_libdir} \
b31d224d 733 -L%{_libdir} \
96a64d31 734 -headerdir %{_includedir}/qt \
bdfce653 735 -datadir %{_datadir}/qt \
736 -docdir %{_docdir}/%{name}-doc \
2d96e6ce 737 -sysconfdir %{_sysconfdir}/qt \
383f28b1 738 -translationdir %{_datadir}/locale/ \
ecb2e88f 739 -fast \
bdfce653 740 -qt-gif \
741 -system-libjpeg \
742 -system-libmng \
743 -system-libpng \
744 -system-zlib \
745 -no-exceptions \
13980c2c 746 -ipv6 \
96a64d31 747 -I%{_includedir}/postgresql/server \
748 -I%{_includedir}/mysql \
b31d224d 749 %{!?with_cups:-no}-cups \
c8ea7660 750 %{?with_nas:-system-nas-sound} \
0ebb7751 751 %{?with_dlopen_gl:-dlopen-opengl} \
21bdf306 752 %{?with_pch:-pch} \
bdfce653 753 %{?debug:-debug}"
754
7f1f092b 755##################################
756# OPTIONS FOR STATIC-{ST,MT} #
757##################################
bdfce653 758
91e76425 759%if %{with static_libs}
bdfce653 760STATICOPT=" \
90dfad28 761 -qt-imgfmt-jpeg \
762 -qt-imgfmt-mng \
bdfce653 763 -qt-imgfmt-png \
0ac25589 764 %{?with_ibase:-qt-sql-ibase} \
c8ea7660
JB
765 %{?with_mysql:-qt-sql-mysql} \
766 %{?with_odbc:-qt-sql-odbc} \
767 %{?with_pgsql:-qt-sql-psql} \
d2ce5e27 768 %{?with_sqlite:-qt-sql-sqlite} \
bdfce653 769 -static"
770%endif
771
7f1f092b 772##################################
0ac25589 773# STATIC SINGLE-THREAD #
7f1f092b 774##################################
bdfce653 775
91e76425 776%if %{with static_libs} && %{with single}
bdfce653 777./configure \
778 $DEFAULTOPT \
779 $STATICOPT \
90dfad28 780 <<_EOF_
f299c0ae
AM
781yes
782_EOF_
bdfce653 783# Do not build tutorial and examples. Provide them as sources.
90dfad28 784%{__make} symlinks src-qmake src-moc sub-src
f299c0ae 785
90dfad28 786# This will not remove previously compiled libraries.
787%{__make} clean
bdfce653 788%endif
f299c0ae 789
7f1f092b 790##################################
0ac25589 791# STATIC MULTI-THREAD #
7f1f092b 792##################################
bdfce653 793
91e76425 794%if %{with static_libs}
59637552 795./configure \
f299c0ae 796 $DEFAULTOPT \
bdfce653 797 $STATICOPT \
5c1641dd 798 -thread \
90dfad28 799 <<_EOF_
a201f985 800yes
801_EOF_
dc644c89 802
bdfce653 803# Do not build tutorial and examples. Provide them as sources.
fe9924a7 804%{__make} symlinks src-qmake src-moc sub-src
25722d9b 805
90dfad28 806# This will not remove previously compiled libraries.
bdfce653 807%{__make} clean
808%endif
90dfad28 809
7f1f092b 810##################################
811# OPTIONS FOR SHARED-{ST,MT} #
812##################################
113d2b94 813
bdfce653 814SHAREDOPT=" \
90dfad28 815 -plugin-imgfmt-jpeg \
816 -plugin-imgfmt-mng \
bdfce653 817 -plugin-imgfmt-png \
c8ea7660
JB
818 %{?with_mysql:-plugin-sql-mysql} \
819 %{?with_odbc:-plugin-sql-odbc} \
820 %{?with_pgsql:-plugin-sql-psql} \
d2ce5e27 821 %{?with_sqlite:-plugin-sql-sqlite} \
822 %{?with_ibase:-plugin-sql-ibase} \
bdfce653 823 -plugin-style-cde \
824 -plugin-style-compact \
825 -plugin-style-motif \
826 -plugin-style-motifplus \
827 -plugin-style-platinum \
828 -plugin-style-sgi \
829 -plugin-style-windows"
e2b120b3 830
7f1f092b 831##################################
f97fa28a 832# SHARED SINGLE-THREAD #
7f1f092b 833##################################
bdfce653 834
c8ea7660 835%if %{with single}
bdfce653 836# workaround for some nasty bug to avoid
837# linking plugins statically with -lqt-mt
59d140fb 838rm -f %{_lib}/libqt-mt.prl
bdfce653 839
840./configure \
841 $DEFAULTOPT \
842 $SHAREDOPT \
843 -plugindir %{_libdir}/qt/plugins-st \
90dfad28 844 <<_EOF_
f299c0ae
AM
845yes
846_EOF_
847
bdfce653 848# Do not build tutorial and examples. Provide them as sources.
fe9924a7 849%{__make} symlinks src-qmake src-moc sub-src
89cde098 850
b5276b5b 851# Do not make tools, only plugins.
072f7228 852%{__make} -C plugins/src sub-imageformats sub-sqldrivers sub-styles
6ca8111c 853
ada87089 854# This will not remove previously compiled libraries. But WILL remove
855# plugins. And even if they weren't removed, they would be overwritten
856# by next compilation. So they must be backed up.
89cde098 857rm -rf plugins-st
ada87089 858mkdir plugins-st
ecb2e88f 859cp -R plugins/{imageformats,styles} plugins-st
c247478b 860%{?with_sql:cp -R plugins/sqldrivers plugins-st}
bdfce653 861%{__make} clean
ecb2e88f 862%endif
863
7f1f092b 864##################################
f97fa28a 865# SHARED MULTI-THREAD #
7f1f092b 866##################################
dc644c89 867
90dfad28 868./configure \
869 $DEFAULTOPT \
bdfce653 870 $SHAREDOPT \
5c1641dd 871 -thread \
bdfce653 872 -plugindir %{_libdir}/qt/plugins-mt \
90dfad28 873 <<_EOF_
874yes
875_EOF_
4814077d 876
648721c1 877%if %{without designer}
13980c2c 878grep -v designer tools/tools.pro > tools/tools.pro.1
879mv tools/tools.pro{.1,}
9c0c174c 880%{__make} -C tools/designer/uic \
fd7cc1f6 881 UIC="LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 $QTDIR/bin/uic -L $QTDIR/plugins"
13980c2c 882%endif
883
90dfad28 884# Do not build tutorial and examples. Provide them as sources.
bdfce653 885#%%{__make} symlinks src-qmake src-moc sub-src sub-tools
848a71fb
SS
886# with __make -jN we can got (making qmake_image_collection.o):
887# cc1plus: error: designercore: No such file or directory
888# cc1plus: error: one or more PCH files were found, but they were invalid
889# cc1plus: error: use -Winvalid-pch for more information
f82ecf8d 890%{__make} -j1 sub-tools \
fd7cc1f6 891 UIC="LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 $QTDIR/bin/uic -L $QTDIR/plugins"
bdfce653 892
13980c2c 893%if %{with designer}
c65780d7 894cd tools/designer/designer
b5276b5b 895LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease designer_de.ts
896LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease designer_fr.ts
13980c2c 897%endif
b5276b5b 898cd $QTDIR/tools/assistant
899LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease assistant_de.ts
900LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease assistant_fr.ts
901cd $QTDIR/tools/linguist/linguist
902LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease linguist_de.ts
903LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease linguist_fr.ts
9718c442 904cd $QTDIR/translations/
0f3c951c 905for i in *.ts; do
b935b421 906 LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 lrelease ${i}
9718c442 907done
908cd -
4814077d 909
7f1f092b 910##make -C extensions/nsplugin/src
911
90dfad28 912%install
913rm -rf $RPM_BUILD_ROOT
dc644c89 914
b984108e 915export QTDIR=$(pwd)
f299c0ae 916
5c1641dd
PG
917%{__make} install \
918 INSTALL_ROOT=$RPM_BUILD_ROOT
c8ea7660 919
bdfce653 920install -d \
2d96e6ce 921 $RPM_BUILD_ROOT%{_sysconfdir}/qt \
f67b43ac 922 $RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt/{crypto,network} \
c8ea7660 923 %{?with_single:$RPM_BUILD_ROOT%{_libdir}/qt/plugins-st/network} \
bdfce653 924 $RPM_BUILD_ROOT%{_examplesdir}/%{name}/lib \
925 $RPM_BUILD_ROOT%{_mandir}/man{1,3} \
13980c2c 926 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
e2b120b3 927
b984108e 928install -p bin/{findtr,qt20fix,qtrename140} \
bdfce653 929 tools/{msg2qm/msg2qm,mergetr/mergetr} \
89cde098 930 $RPM_BUILD_ROOT%{_bindir}
82d42c9f 931
91e76425 932%if %{with static_libs}
b984108e 933cp -a %{_lib}/libqt*.a $RPM_BUILD_ROOT%{_libdir}
d530c414 934%endif
90dfad28 935
c8ea7660 936%if %{with single}
b984108e
ER
937install -p %{_lib}/libqt.so.*.*.* $RPM_BUILD_ROOT%{_libdir}
938ln -sf libqt.so.%{ver} $RPM_BUILD_ROOT%{_libdir}/libqt.so
939cp -a %{_lib}/qt.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
c8ea7660 940cp -R plugins-st/* $RPM_BUILD_ROOT%{_libdir}/qt/plugins-st
bdfce653 941%endif
ada87089 942
b984108e 943cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
9d8dcc22 944
13980c2c 945%if %{with designer}
0deb0bc7
AM
946install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/designer.desktop
947install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir}
13980c2c 948%endif
9d8dcc22 949
0deb0bc7 950install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
caadae0f 951install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
f67b43ac 952
0deb0bc7 953install %{SOURCE6} %{SOURCE7} $RPM_BUILD_ROOT%{_pixmapsdir}
242b6743 954
b984108e 955cp -a tools/qtconfig/images/appicon.png \
242b6743 956 $RPM_BUILD_ROOT%{_pixmapsdir}/qtconfig.png
957
b984108e
ER
958%if %{without designer}
959install -p bin/uic $RPM_BUILD_ROOT%{_bindir}
d2ce5e27 960%endif
961
e3737ad6 962# Because trolltech fails to think.
b935b421 963rm -rf $RPM_BUILD_ROOT%{_bindir}/qmake
b984108e 964install -p qmake/qmake $RPM_BUILD_ROOT%{_bindir}/qmake
242b6743 965
b984108e
ER
966cp -a doc/man/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
967cp -a doc/man/man3/*.3qt $RPM_BUILD_ROOT%{_mandir}/man3
ada87089 968
bdfce653 969cp -dpR examples tutorial $RPM_BUILD_ROOT%{_examplesdir}/%{name}
cbd58aa3 970
89cde098 971mv $RPM_BUILD_ROOT{%{_libdir}/*.prl,%{_examplesdir}/%{name}/lib}
ada87089 972
af60b6f1
ER
973%{__sed} -i -e '
974 # From now QMAKE_INCDIR_QT becomes %{_includedir}/qt
975 s|\(QMAKE_INCDIR_QT\s*=\s*\$(QTDIR)/include\)|\1/qt|
976 # Remove ccache if any
977 /QMAKE_\(CC\|CXX\|LINK\)/s|ccache ||;
978' $RPM_BUILD_ROOT%{_datadir}/qt/mkspecs/linux-g++/qmake.conf
979rm $RPM_BUILD_ROOT%{_datadir}/qt/mkspecs/linux-g++/qmake.conf.orig
bdfce653 980
47f3c2af 981# We provide qt style classes as plugins,
982# so make corresponding changes to the qconfig.h.
771a1d24 983chmod u+w $RPM_BUILD_ROOT%{_includedir}/qt/qconfig.h
33067f1c 984
96a64d31 985cat >> $RPM_BUILD_ROOT%{_includedir}/qt/qconfig.h << EOF
47f3c2af 986
987/* All of these style classes we provide as plugins */
988#define QT_NO_STYLE_CDE
989#define QT_NO_STYLE_COMPACT
990#define QT_NO_STYLE_MOTIF
991#define QT_NO_STYLE_MOTIFPLUS
992#define QT_NO_STYLE_PLATINUM
993#define QT_NO_STYLE_SGI
994#define QT_NO_STYLE_WINDOWS
bdfce653 995
47f3c2af 996EOF
997
0f3c951c
ER
998install -d $RPM_BUILD_ROOT%{_datadir}/locale/{ar,ca,cs,de,es,fr,he,it,ja,nb,pt,pt_BR,ru,sk,zh_CN,zh_TW}/LC_MESSAGES
999mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_ar.qm,ar/LC_MESSAGES/qt.qm}
1000mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_ca.qm,ca/LC_MESSAGES/qt.qm}
1001mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_cs.qm,cs/LC_MESSAGES/qt.qm}
1002mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_de.qm,de/LC_MESSAGES/qt.qm}
1003mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_es.qm,es/LC_MESSAGES/qt.qm}
1004mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_fr.qm,fr/LC_MESSAGES/qt.qm}
1005mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_he.qm,he/LC_MESSAGES/qt.qm}
1006mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_it.qm,it/LC_MESSAGES/qt.qm}
1007mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_ja.qm,ja/LC_MESSAGES/qt.qm}
1008mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_nb.qm,nb/LC_MESSAGES/qt.qm}
1009mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_pt-br.qm,pt_BR/LC_MESSAGES/qt.qm}
1010mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_ru.qm,ru/LC_MESSAGES/qt.qm}
1011mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_sk.qm,sk/LC_MESSAGES/qt.qm}
1012mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_zh-cn.qm,zh_CN/LC_MESSAGES/qt.qm}
1013mv $RPM_BUILD_ROOT%{_datadir}/locale/{qt_zh-tw.qm,zh_TW/LC_MESSAGES/qt.qm}
13980c2c 1014
13980c2c 1015%if %{with designer}
b984108e
ER
1016cp -a tools/designer/designer/designer_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/designer.qm
1017cp -a tools/designer/designer/designer_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/designer.qm
13980c2c 1018%endif
bdfce653 1019
0f3c951c 1020mv $RPM_BUILD_ROOT%{_datadir}/locale/{assistant_de.qm,de/LC_MESSAGES/assistant.qm}
b984108e 1021cp -a tools/assistant/assistant_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/assistant.qm
bdfce653 1022
b984108e
ER
1023cp -a tools/linguist/linguist/linguist_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/linguist.qm
1024cp -a tools/linguist/linguist/linguist_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/linguist.qm
bdfce653 1025
b984108e 1026cp -a tools/linguist/qm2ts/qm2ts.1 $RPM_BUILD_ROOT%{_mandir}/man1
7f1f092b 1027
b984108e 1028find $RPM_BUILD_ROOT -name CVS | xargs rm -rf
5569f2af 1029
1030cd $RPM_BUILD_ROOT%{_examplesdir}/%{name}/examples
b984108e
ER
1031for i in $(find -name Makefile); do
1032 %{__sed} -i -e "s,$RPM_BUILD_DIR,/usr,g" $i
1033 %{__sed} -i -e "s,examples,src/examples/qt/examples,g" $i
5569f2af 1034done
1035
1036cd $RPM_BUILD_ROOT%{_examplesdir}/%{name}/tutorial
b984108e
ER
1037for i in $(find -name Makefile); do
1038 %{__sed} -i -e "s,$RPM_BUILD_DIR,/usr,g" $i
1039 %{__sed} -i -e "s,examples,src/examples/qt/tutorial,g" $i
5569f2af 1040done
1041
a5732372 1042# drop some bad symlink
b0a094da 1043rm -f $RPM_BUILD_ROOT%{_datadir}/qt/mkspecs/linux-g++/linux-g++
5569f2af 1044
b984108e
ER
1045# unwanted symlinks
1046rm $RPM_BUILD_ROOT%{_libdir}/libdesignercore.so.1.0
1047rm $RPM_BUILD_ROOT%{_libdir}/libeditor.so.1.0
1048rm $RPM_BUILD_ROOT%{_libdir}/libqassistantclient.so.1.0
1049rm $RPM_BUILD_ROOT%{_libdir}/libqt-mt.so.3.3
1050rm $RPM_BUILD_ROOT%{_libdir}/libqui.so.1.0
1051
4814077d 1052%clean
1da927df 1053rm -rf $RPM_BUILD_ROOT
4814077d 1054
c977a8cf 1055%post -p /sbin/ldconfig
7f1f092b 1056%postun -p /sbin/ldconfig
1057
1058%post st -p /sbin/ldconfig
1059%postun st -p /sbin/ldconfig
fe9924a7 1060
5c878990
JB
1061%post designer-libs -p /sbin/ldconfig
1062%postun designer-libs -p /sbin/ldconfig
1063
4814077d 1064%files
fe876ed3 1065%defattr(644,root,root,755)
1da927df 1066%doc FAQ LICENSE.* README* changes*
7f1f092b 1067%dir %{_sysconfdir}/qt
0a12e6e0 1068%attr(755,root,root) %{_libdir}/libqassistantclient.so.*.*.*
b984108e 1069%attr(755,root,root) %ghost %{_libdir}/libqassistantclient.so.1
c65780d7 1070%attr(755,root,root) %{_libdir}/libqt-mt.so.*.*.*
b984108e 1071%attr(755,root,root) %ghost %{_libdir}/libqt-mt.so.3
f299c0ae 1072%dir %{_libdir}/%{name}
c65780d7 1073%dir %{_libdir}/%{name}/plugins-mt
0ac0c0a4 1074%dir %{_libdir}/%{name}/plugins-mt/crypto
1075%dir %{_libdir}/%{name}/plugins-mt/imageformats
1076%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/imageformats/*.so
66b71d49
AM
1077%dir %{_libdir}/%{name}/plugins-mt/inputmethods
1078%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/inputmethods/libqimsw-multi.so
1079%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/inputmethods/libqimsw-none.so
1080%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/inputmethods/libqsimple.so
1081%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/inputmethods/libqxim.so
c65780d7 1082%dir %{_libdir}/%{name}/plugins-mt/network
c247478b 1083%{?with_sql:%dir %{_libdir}/%{name}/plugins-mt/sqldrivers}
c65780d7
JB
1084%dir %{_libdir}/%{name}/plugins-mt/styles
1085%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/styles/*.so
841dfb75 1086%dir %{_datadir}/qt
bdfce653 1087%lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/qt.qm
0f3c951c 1088%lang(ca) %{_datadir}/locale/ca/LC_MESSAGES/qt.qm
c1b6ab69 1089%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/qt.qm
bdfce653 1090%lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt.qm
c1b6ab69 1091%lang(es) %{_datadir}/locale/es/LC_MESSAGES/qt.qm
bdfce653 1092%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qt.qm
1093%lang(he) %{_datadir}/locale/he/LC_MESSAGES/qt.qm
0f3c951c
ER
1094%lang(it) %{_datadir}/locale/it/LC_MESSAGES/qt.qm
1095%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/qt.qm
1096%lang(nb) %{_datadir}/locale/nb/LC_MESSAGES/qt.qm
1097%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/qt.qm
bdfce653 1098%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qt.qm
13980c2c 1099%lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/qt.qm
0f3c951c
ER
1100%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt.qm
1101%lang(zh_TW) %{_datadir}/locale/zh_TW/LC_MESSAGES/qt.qm
bdfce653 1102
4814077d 1103%files devel
c80c8131 1104%defattr(644,root,root,755)
dd1952de 1105%attr(755,root,root) %{_bindir}/makeqpf
13980c2c 1106%attr(755,root,root) %{_bindir}/moc
dd1952de 1107%attr(755,root,root) %{_bindir}/qembed
13980c2c 1108%attr(755,root,root) %{_bindir}/qt20fix
1109#%attr(755,root,root) %{_bindir}/qt32castcompat
1110%attr(755,root,root) %{_bindir}/qtrename140
1111%attr(755,root,root) %{_bindir}/uic
96a64d31 1112%{_includedir}/qt
be291500 1113%{_libdir}/libqassistantclient.so
c2cfa9d4 1114%{_libdir}/libqt-mt.la
c65780d7 1115%{_libdir}/libqt-mt.so
6625eb4f 1116%{_mandir}/man1/moc*
1117%{_mandir}/man1/uic*
c65780d7 1118%{_pkgconfigdir}/qt-mt.pc
383f28b1 1119
6625eb4f 1120%files -n qmake
1121%defattr(644,root,root,755)
1122%attr(755,root,root) %{_bindir}/qmake
1123%{_datadir}/qt/mkspecs
1124
91e76425 1125%if %{with static_libs}
f299c0ae
AM
1126%files static
1127%defattr(644,root,root,755)
c65780d7 1128%{_libdir}/libqt-mt.a
89cde098 1129%endif
a201f985 1130
bdfce653 1131%files doc
0c4d432d 1132%defattr(644,root,root,755)
bdfce653 1133%{_docdir}/%{name}-doc
0c4d432d 1134
a201f985 1135%files examples
1136%defattr(644,root,root,755)
1da927df 1137%{_examplesdir}/%{name}
50f34d85 1138
bdfce653 1139%files man
1140%defattr(644,root,root,755)
0ac25589
JB
1141%{_mandir}/man3/Q*.3qt*
1142%{_mandir}/man3/q*.3qt*
bdfce653 1143
c8ea7660 1144%if %{with mysql}
bdfce653 1145%files plugin-mysql
50f34d85 1146%defattr(644,root,root,755)
0ac25589 1147%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/sqldrivers/libqsqlmysql.so
ea3ab35d 1148%endif
50f34d85 1149
c8ea7660 1150%if %{with pgsql}
bdfce653 1151%files plugin-psql
50f34d85 1152%defattr(644,root,root,755)
0ac25589 1153%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/sqldrivers/libqsqlpsql.so
ea3ab35d 1154%endif
50f34d85 1155
c8ea7660 1156%if %{with odbc}
bdfce653 1157%files plugin-odbc
50f34d85 1158%defattr(644,root,root,755)
0ac25589 1159%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/sqldrivers/libqsqlodbc.so
c65780d7
JB
1160%endif
1161
d2ce5e27 1162%if %{with sqlite}
1163%files plugin-sqlite
1164%defattr(644,root,root,755)
0ac25589 1165%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/sqldrivers/libqsqlite.so
d2ce5e27 1166%endif
1167
1168%if %{with ibase}
1169%files plugin-ibase
1170%defattr(644,root,root,755)
0ac25589 1171%attr(755,root,root) %{_libdir}/%{name}/plugins-mt/sqldrivers/libqsqlibase.so
d2ce5e27 1172%endif
1173
c65780d7
JB
1174%if %{with single}
1175%files st
1176%defattr(644,root,root,755)
1177%attr(755,root,root) %{_libdir}/libqt.so.*.*.*
1178%dir %{_libdir}/%{name}/plugins-st
1179%dir %{_libdir}/%{name}/plugins-st/network
c247478b 1180%{?with_sql:%dir %{_libdir}/%{name}/plugins-st/sqldrivers}
c65780d7
JB
1181%dir %{_libdir}/%{name}/plugins-st/imageformats
1182%attr(755,root,root) %{_libdir}/%{name}/plugins-st/imageformats/*.so
1183%dir %{_libdir}/%{name}/plugins-st/styles
1184%attr(755,root,root) %{_libdir}/%{name}/plugins-st/styles/*.so
1185
1186%files st-devel
1187%defattr(644,root,root,755)
1188%attr(755,root,root) %{_libdir}/libqt.so
1189%{_pkgconfigdir}/qt.pc
1190
91e76425 1191%if %{with static_libs}
c65780d7
JB
1192%files st-static
1193%defattr(644,root,root,755)
1194%{_libdir}/libqt.a
1195%endif
1196
1197%if %{with mysql}
1198%files st-plugin-mysql
1199%defattr(644,root,root,755)
0ac25589 1200%attr(755,root,root) %{_libdir}/%{name}/plugins-st/sqldrivers/libqsqlmysql.so
c65780d7
JB
1201%endif
1202
1203%if %{with pgsql}
1204%files st-plugin-psql
1205%defattr(644,root,root,755)
0ac25589 1206%attr(755,root,root) %{_libdir}/%{name}/plugins-st/sqldrivers/libqsqlpsql.so
c65780d7
JB
1207%endif
1208
1209%if %{with odbc}
1210%files st-plugin-odbc
1211%defattr(644,root,root,755)
0ac25589 1212%attr(755,root,root) %{_libdir}/%{name}/plugins-st/sqldrivers/libqsqlodbc.so
c65780d7 1213%endif
d2ce5e27 1214
1215%if %{with sqlite}
1216%files st-plugin-sqlite
1217%defattr(644,root,root,755)
0ac25589 1218%attr(755,root,root) %{_libdir}/%{name}/plugins-st/sqldrivers/libqsqlite.so
d2ce5e27 1219%endif
1220
1221%if %{with ibase}
1222%files st-plugin-ibase
1223%defattr(644,root,root,755)
0ac25589 1224%attr(755,root,root) %{_libdir}/%{name}/plugins-st/sqldrivers/libqsqlibase.so
d2ce5e27 1225%endif
ea3ab35d 1226%endif
0c4d432d 1227
13980c2c 1228%if %{with designer}
9c0c174c 1229%files designer-libs
1230%defattr(644,root,root,755)
1231%attr(755,root,root) %{_libdir}/libdesignercore.so.*.*.*
b984108e 1232%attr(755,root,root) %ghost %{_libdir}/libdesignercore.so.1
9c0c174c 1233%attr(755,root,root) %{_libdir}/libeditor.so.*.*.*
b984108e 1234%attr(755,root,root) %ghost %{_libdir}/libeditor.so.1
9c0c174c 1235%attr(755,root,root) %{_libdir}/libqui.so.*.*.*
b984108e 1236%attr(755,root,root) %ghost %{_libdir}/libqui.so.1
5c878990
JB
1237%attr(755,root,root) %{_libdir}/libdesignercore.so
1238%attr(755,root,root) %{_libdir}/libeditor.so
1239%attr(755,root,root) %{_libdir}/libqui.so
9c0c174c 1240
1241%files designer
1242%defattr(644,root,root,755)
66b71d49 1243%attr(755,root,root) %{_bindir}/createcw
13980c2c 1244%attr(755,root,root) %{_bindir}/designer
bdfce653 1245%attr(755,root,root) %{_libdir}/%{name}/plugins-?t/designer/*.so
859ad9f2 1246%dir %{_libdir}/%{name}/plugins-?t/designer
0c4d432d 1247%{_datadir}/qt/designer
bdfce653 1248%lang(de) %{_datadir}/locale/de/LC_MESSAGES/designer.qm
1249%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/designer.qm
859ad9f2 1250%{_desktopdir}/designer.desktop
1251%{_pixmapsdir}/designer.png
13980c2c 1252%endif
9c0c174c 1253
6625eb4f 1254%files assistant
9c0c174c 1255%defattr(644,root,root,755)
1256%attr(755,root,root) %{_bindir}/assistant
9c0c174c 1257%lang(de) %{_datadir}/locale/de/LC_MESSAGES/assistant.qm
1258%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/assistant.qm
6625eb4f 1259%{_desktopdir}/assistant.desktop
242b6743 1260%{_pixmapsdir}/assistant.png
6625eb4f 1261
1262%files linguist
1263%defattr(644,root,root,755)
1264%attr(755,root,root) %{_bindir}/linguist
1265%attr(755,root,root) %{_bindir}/findtr
1266%attr(755,root,root) %{_bindir}/lrelease
1267%attr(755,root,root) %{_bindir}/lupdate
1268%attr(755,root,root) %{_bindir}/mergetr
1269%attr(755,root,root) %{_bindir}/qm2ts
1270%attr(755,root,root) %{_bindir}/msg2qm
bdfce653 1271%lang(de) %{_datadir}/locale/de/LC_MESSAGES/linguist.qm
1272%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/linguist.qm
6625eb4f 1273%{_datadir}/qt/phrasebooks
242b6743 1274%{_desktopdir}/linguist.desktop
1275%{_pixmapsdir}/linguist.png
6625eb4f 1276%{_mandir}/man1/l*
1277%{_mandir}/man1/*qm*
1278
13980c2c 1279%files -n qtconfig
1280%defattr(644,root,root,755)
1281%attr(755,root,root) %{_bindir}/qtconfig
1282%{_desktopdir}/qtconfig.desktop
1283%{_pixmapsdir}/qtconfig.png
This page took 0.449361 seconds and 4 git commands to generate.