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