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