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