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