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