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