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