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