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