]> git.pld-linux.org Git - packages/qt4.git/blob - qt4.spec
- kill *.debug ELFs (just debuginfo, chrpath fails on it)
[packages/qt4.git] / qt4.spec
1 #
2 # TODO:
3 #       - better descriptions
4 #       - more cleanups
5 #       - check if translations are available
6 #
7 # Conditional build:
8 %bcond_with     nas             # enable NAS audio support
9 %bcond_without  static_libs     # build static libraries
10 %bcond_without  cups            # disable CUPS support
11 %bcond_without  mysql           # don't build MySQL plugin
12 %bcond_without  odbc            # don't build unixODBC plugin
13 %bcond_without  pgsql           # don't build PostgreSQL plugin
14 %bcond_without  sqlite3         # don't build SQLite3 plugin
15 %bcond_without  sqlite          # don't build SQLite2 plugin
16 %bcond_without  ibase           # don't build ibase (InterBase/Firebird) plugin
17 %bcond_without  pch             # disable pch in qmake
18 %bcond_with     sse             # use SSE instructions in gui/painting module
19 %bcond_with     dont_enable     # blocks translations, they are not yet available
20 %bcond_with     AC              # build for AC
21
22 %undefine       with_dont_enable
23
24 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
25 %undefine       with_ibase
26 %endif
27
28 %ifarch pentium3 pentium4 %{x8664}
29 %define         with_sse        1
30 %endif
31
32 %define         _withsql        1
33 %{!?with_sqlite3:%{!?with_sqlite:%{!?with_ibase:%{!?with_mysql:%{!?with_pgsql:%{!?with_odbc:%undefine _withsql}}}}}}
34
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 # XXX: change config(?) or make install to omit installing these and don't strip ELFs
1067 find $RPM_BUILD_ROOT -name '*.debug' | xargs rm -f
1068
1069 # kill -L/inside/builddir from *.la and *.pc (bug #77152)
1070 %{__sed} -i -e "s,-L$PWD/lib,,g" $RPM_BUILD_ROOT%{_libdir}/*.{la,pc,prl}
1071
1072 #install plugins/sqldrivers/*.so $RPM_BUILD_ROOT%{_qtdir}/plugins/sqldrivers
1073
1074 # install tools
1075 install bin/findtr      $RPM_BUILD_ROOT%{_qtdir}/bin
1076 install bin/qvfb        $RPM_BUILD_ROOT%{_bindir}
1077 install bin/pixeltool   $RPM_BUILD_ROOT%{_bindir}
1078 install bin/qdbus       $RPM_BUILD_ROOT%{_bindir}
1079 install bin/qdbuscpp2xml        $RPM_BUILD_ROOT%{_bindir}
1080 install bin/qdbusxml2cpp        $RPM_BUILD_ROOT%{_bindir}
1081
1082 cd $RPM_BUILD_ROOT%{_bindir}
1083 ln -sf ../%{_lib}/qt4/bin/assistant qt4-assistant
1084 ln -sf ../%{_lib}/qt4/bin/designer qt4-designer
1085 ln -sf ../%{_lib}/qt4/bin/linguist qt4-linguist
1086 ln -sf ../%{_lib}/qt4/bin/moc qt4-moc
1087 ln -sf ../%{_lib}/qt4/bin/qmake qt4-qmake
1088 ln -sf ../%{_lib}/qt4/bin/qt3to4 .
1089 ln -sf ../%{_lib}/qt4/bin/qtconfig qt4-qtconfig
1090 ln -sf ../%{_lib}/qt4/bin/rcc .
1091 ln -sf ../%{_lib}/qt4/bin/uic qt4-uic
1092 ln -sf ../%{_lib}/qt4/bin/uic3 .
1093 cd -
1094
1095 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
1096 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
1097 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
1098
1099 install tools/qtconfig/images/appicon.png \
1100         $RPM_BUILD_ROOT%{_pixmapsdir}/qt4-qtconfig.png
1101
1102 install tools/linguist/linguist/images/appicon.png \
1103         $RPM_BUILD_ROOT%{_pixmapsdir}/qt4-linguist.png
1104
1105 install tools/assistant/images/assistant.png \
1106         $RPM_BUILD_ROOT%{_pixmapsdir}/qt4-assistant.png
1107
1108 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
1109 install tools/designer/src/designer/images/designer.png \
1110         $RPM_BUILD_ROOT%{_pixmapsdir}/qt4-designer.png
1111
1112 %if %{with static_libs}
1113 install staticlib/*.a $RPM_BUILD_ROOT%{_libdir}
1114 %endif
1115
1116 #
1117 # Locale
1118 #
1119 rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*.qm
1120 for file in translations/*.qm tools/assistant/*.qm tools/designer/designer/*.qm tools/linguist/linguist/*.qm
1121 do
1122     [ ! -f $file ] && continue
1123     LANG=`echo $file | sed -r 's:.*/[a-zA-Z]*_(.*).qm:\1:'`
1124     MOD=`echo $file | sed -r 's:.*/([a-zA-Z]*)_.*.qm:\1:'`
1125     [ "$LANG" == "iw" ] && LANG=he
1126     [ "$MOD" == "qt" ] && MOD=qt4
1127     mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/$LANG/LC_MESSAGES
1128     cp $file $RPM_BUILD_ROOT%{_datadir}/locale/$LANG/LC_MESSAGES/$MOD.qm
1129 done
1130
1131 %if %{with dont_enable}
1132 install tools/designer/designer/designer_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/designer.qm
1133 install tools/designer/designer/designer_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/designer.qm
1134
1135 install tools/assistant/assistant_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/assistant.qm
1136
1137 install tools/linguist/linguist/linguist_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/linguist.qm
1138 install tools/linguist/linguist/linguist_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/linguist.qm
1139 %endif
1140
1141 cd $RPM_BUILD_ROOT%{_includedir}/qt4/Qt
1142 for f in ../Qt{3Support,Assistant,Core,DBus,Designer,Gui,Network,OpenGL,Sql,Svg,Test,UiTools,Xml}/*
1143 do
1144         if [ ! -d $f ]; then
1145                 ln -sf $f `basename $f`
1146         fi
1147 done
1148 cd -
1149
1150 # Ship doc & qmake stuff
1151 ln -s %{_docdir}/%{name}-doc $RPM_BUILD_ROOT%{_qtdir}/doc
1152 ln -s %{_datadir}/qt4/mkspecs $RPM_BUILD_ROOT%{_qtdir}/mkspecs
1153
1154 mv $RPM_BUILD_ROOT%{_libdir}/*.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
1155 for f in $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc; do
1156         HAVEDEBUG=`echo $f | grep _debug | wc -l`
1157         MODULE=`echo $f | basename $f | cut -d. -f1 | cut -d_ -f1`
1158         MODULE2=`echo $MODULE | tr a-z A-Z | sed s:QT::`
1159         DEFS="-D_REENTRANT"
1160
1161         if [ "$MODULE2" == "3SUPPORT" ]; then
1162                 DEFS="$DEFS -DQT3_SUPPORT -DQT_QT3SUPPORT_LIB"
1163         else
1164                 DEFS="$DEFS -DQT_"$MODULE2"_LIB"
1165         fi
1166         [ "$HAVEDEBUG" -eq 0 ] && DEFS="$DEFS -DQT_NO_DEBUG"
1167
1168         sed -i -e "s:-DQT_SHARED:-DQT_SHARED $DEFS:" $f
1169 done
1170
1171 # Prepare some files list
1172 ifecho () {
1173         RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null`
1174         [ "$RESULT" == "" ] && return
1175         r=`echo $RESULT | awk '{ print $1 }'`
1176
1177         if [ -d "$r" ]; then
1178                 echo "%%dir $2" >> $1.files
1179         elif [ -x "$r" ] ; then
1180                 echo "%%attr(755,root,root) $2" >> $1.files
1181         elif [ -f "$r" ]; then
1182                 echo "$2" >> $1.files
1183         else
1184                 echo "Error generation devel files list!"
1185                 echo "$r: no such file or direcotry!"
1186                 return 1
1187         fi
1188 }
1189
1190 mkdevfl () {
1191         MODULE=$1; shift
1192         echo "%%defattr(644,root,root,755)" > $MODULE-devel.files
1193         ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.so"
1194         ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.la"
1195         ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.prl"
1196         ifecho $MODULE-devel "%{_pkgconfigdir}/$MODULE*.pc"
1197         if [ -d "$RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE" ]; then
1198                 ifecho $MODULE-devel %{_includedir}/qt4/$MODULE
1199         fi
1200         for f in `find $RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE -printf "%%P "`
1201         do
1202                 ifecho $MODULE-devel %{_includedir}/qt4/$MODULE/$f
1203                 ifecho $MODULE-devel %{_includedir}/qt4/Qt/$f
1204         done
1205         for f in $@; do ifecho $MODULE-devel $f; done
1206 }
1207
1208 mkdevfl QtCore %{_includedir}/qt4 %{_includedir}/qt4/Qt
1209 mkdevfl QtDBus %{_bindir}/qdbus %{_bindir}/qdbuscpp2xml %{_bindir}/qdbusxml2cpp
1210 mkdevfl QtGui
1211 mkdevfl QtNetwork
1212 mkdevfl QtOpenGL
1213 mkdevfl QtSql
1214 mkdevfl QtSvg
1215 mkdevfl QtTest
1216 mkdevfl QtXml
1217 mkdevfl Qt3Support
1218
1219 # without *.la *.pc etc.
1220 mkdevfl QtAssistant || /bin/true
1221 mkdevfl QtDesigner || /bin/true
1222 mkdevfl QtUiTools || /bin/true
1223
1224 echo "%defattr(644,root,root,755)" > examples.files
1225 ifecho examples %{_examplesdir}/qt4
1226 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4 -printf "%%P "`
1227 do
1228         ifecho examples %{_examplesdir}/qt4/$f
1229 done
1230
1231 echo "%defattr(644,root,root,755)" > demos.files
1232 ifecho demos "%{_examplesdir}/qt4-demos"
1233 ifecho demos "%{_qtdir}/bin/qtdemo"
1234 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4-demos -printf "%%P "`
1235 do
1236         ifecho demos %{_examplesdir}/qt4-demos/$f
1237 done
1238
1239 %clean
1240 rm -rf $RPM_BUILD_ROOT
1241
1242 %post   -n QtCore
1243 /sbin/ldconfig
1244 cat << EOF
1245  *******************************************************
1246  *                                                     *
1247  *  NOTE:                                              *
1248  *  With qt 4.0.0 the single threaded version was      *
1249  *  removed. Also the library is modular now so be     *
1250  *  sure to check that you have every module you need. *
1251  *                                                     *
1252  *******************************************************
1253 EOF
1254 %postun -n QtCore       -p /sbin/ldconfig
1255
1256 %post   -n QtDBus       -p /sbin/ldconfig
1257 %postun -n QtDBus       -p /sbin/ldconfig
1258
1259 %post   -n QtGui        -p /sbin/ldconfig
1260 %postun -n QtGui        -p /sbin/ldconfig
1261
1262 %post   -n QtNetwork    -p /sbin/ldconfig
1263 %postun -n QtNetwork    -p /sbin/ldconfig
1264
1265 %post   -n QtOpenGL     -p /sbin/ldconfig
1266 %postun -n QtOpenGL     -p /sbin/ldconfig
1267
1268 %post   -n QtSql        -p /sbin/ldconfig
1269 %postun -n QtSql        -p /sbin/ldconfig
1270
1271 %post   -n QtSvg        -p /sbin/ldconfig
1272 %postun -n QtSvg        -p /sbin/ldconfig
1273
1274 %post   -n QtTest       -p /sbin/ldconfig
1275 %postun -n QtTest       -p /sbin/ldconfig
1276
1277 %post   -n QtXml        -p /sbin/ldconfig
1278 %postun -n QtXml        -p /sbin/ldconfig
1279
1280 %post   -n Qt3Support   -p /sbin/ldconfig
1281 %postun -n Qt3Support   -p /sbin/ldconfig
1282
1283 %post   -n QtAssistant  -p /sbin/ldconfig
1284 %postun -n QtAssistant  -p /sbin/ldconfig
1285
1286 %post   -n QtDesigner   -p /sbin/ldconfig
1287 %postun -n QtDesigner   -p /sbin/ldconfig
1288
1289 %post   -n QtUiTools    -p /sbin/ldconfig
1290 %postun -n QtUiTools    -p /sbin/ldconfig
1291
1292 %files -n QtCore
1293 %defattr(644,root,root,755)
1294 %attr(755,root,root) %{_libdir}/libQtCore.so.*.*
1295 %dir %{_qtdir}
1296 %dir %{_qtdir}/bin
1297 %dir %{_qtdir}/plugins
1298 %dir %{_qtdir}/plugins/accessible
1299 #%dir %{_qtdir}/plugins/codecs
1300 %dir %{_qtdir}/plugins/crypto
1301 %dir %{_qtdir}/plugins/imageformats
1302 %dir %{_qtdir}/plugins/inputmethods
1303 %dir %{_qtdir}/plugins/network
1304 %dir %{_qtdir}/plugins/sqldrivers
1305 %dir %{_datadir}/qt4
1306 %lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/qt4.qm
1307 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt4.qm
1308 %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qt4.qm
1309 %lang(he) %{_datadir}/locale/he/LC_MESSAGES/qt4.qm
1310 %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qt4.qm
1311 %lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/qt4.qm
1312 %lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt4.qm
1313
1314 %files -n QtDBus
1315 %defattr(644,root,root,755)
1316 %attr(755,root,root) %{_libdir}/libQtDBus.so.*.*
1317
1318 %files -n QtGui
1319 %defattr(644,root,root,755)
1320 %attr(755,root,root) %{_libdir}/libQtGui.so.*.*
1321 %{_qtdir}/plugins/accessible/*.so
1322 #%{_qtdir}/plugins/codecs/*.so
1323 %{_qtdir}/plugins/imageformats/*.so
1324 %{_qtdir}/plugins/inputmethods/*.so
1325
1326 %files -n QtNetwork
1327 %defattr(644,root,root,755)
1328 %attr(755,root,root) %{_libdir}/libQtNetwork.so.*.*
1329
1330 %files -n QtOpenGL
1331 %defattr(644,root,root,755)
1332 %attr(755,root,root) %{_libdir}/libQtOpenGL.so.*.*
1333
1334 %files -n QtSql
1335 %defattr(644,root,root,755)
1336 %attr(755,root,root) %{_libdir}/libQtSql.so.*.*
1337
1338 %if %{with mysql}
1339 %files -n QtSql-mysql
1340 %defattr(644,root,root,755)
1341 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlmysql*.so
1342 %endif
1343
1344 %if %{with pgsql}
1345 %files -n QtSql-pgsql
1346 %defattr(644,root,root,755)
1347 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlpsql*.so
1348 %endif
1349
1350 %if %{with sqlite}
1351 %files -n QtSql-sqlite
1352 %defattr(644,root,root,755)
1353 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlite2*.so
1354 %endif
1355
1356 %if %{with sqlite3}
1357 %files -n QtSql-sqlite3
1358 %defattr(644,root,root,755)
1359 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlite*.so
1360 %if %{with sqlite}
1361 %exclude %{_qtdir}/plugins/sqldrivers/libqsqlite2*.so
1362 %endif
1363 %endif
1364
1365 %if %{with ibase}
1366 %files -n QtSql-ibase
1367 %defattr(644,root,root,755)
1368 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlibase*.so
1369 %endif
1370
1371 %if %{with odbc}
1372 %files -n QtSql-odbc
1373 %defattr(644,root,root,755)
1374 %attr(755,root,root) %{_qtdir}/plugins/sqldrivers/libqsqlodbc*.so
1375 %endif
1376
1377 %files -n QtSvg
1378 %defattr(644,root,root,755)
1379 %attr(755,root,root) %{_libdir}/libQtSvg.so.*.*
1380
1381 %files -n QtTest
1382 %defattr(644,root,root,755)
1383 %attr(755,root,root) %{_libdir}/libQtTest.so.*.*
1384
1385 %files -n QtXml
1386 %defattr(644,root,root,755)
1387 %attr(755,root,root) %{_libdir}/libQtXml.so.*.*
1388
1389 %files -n Qt3Support
1390 %defattr(644,root,root,755)
1391 %attr(755,root,root) %{_bindir}/uic3
1392 %attr(755,root,root) %{_qtdir}/bin/uic3
1393 %attr(755,root,root) %{_libdir}/libQt3Support.so.*.*
1394
1395 %files -n QtAssistant
1396 %defattr(644,root,root,755)
1397 %attr(755,root,root) %{_libdir}/libQtAssistantClient.so.*.*
1398
1399 %files -n QtDesigner
1400 %defattr(644,root,root,755)
1401 %attr(755,root,root) %{_libdir}/libQtDesigner*.so.*.*
1402 %dir %{_qtdir}/plugins/designer
1403 %attr(755,root,root) %{_qtdir}/plugins/designer/*.so
1404
1405 %files -n QtUiTools
1406 %defattr(644,root,root,755)
1407 %attr(755,root,root) %{_libdir}/libQtUiTools.so.*.*
1408
1409 %files assistant
1410 %defattr(644,root,root,755)
1411 %attr(755,root,root) %{_bindir}/pixeltool
1412 %attr(755,root,root) %{_bindir}/qt4-assistant
1413 %attr(755,root,root) %{_qtdir}/bin/assistant
1414 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/assistant.qm
1415 %{_desktopdir}/qt4-assistant.desktop
1416 %{_pixmapsdir}/qt4-assistant.png
1417
1418 %files build
1419 %defattr(644,root,root,755)
1420 %attr(755,root,root) %{_bindir}/rcc
1421 %attr(755,root,root) %{_bindir}/qt4-moc
1422 %attr(755,root,root) %{_bindir}/qt3to4
1423 %attr(755,root,root) %{_bindir}/qt4-uic
1424 %attr(755,root,root) %{_qtdir}/bin/rcc
1425 %attr(755,root,root) %{_qtdir}/bin/moc
1426 %attr(755,root,root) %{_qtdir}/bin/qt3to4
1427 %attr(755,root,root) %{_qtdir}/bin/uic
1428 %{_datadir}/qt4/q3porting.xml
1429
1430 %files designer
1431 %defattr(644,root,root,755)
1432 %attr(755,root,root) %{_bindir}/qt4-designer
1433 %attr(755,root,root) %{_qtdir}/bin/designer
1434 %{_desktopdir}/qt4-designer.desktop
1435 %{_pixmapsdir}/qt4-designer.png
1436
1437 %files linguist
1438 %defattr(644,root,root,755)
1439 %attr(755,root,root) %{_bindir}/qt4-linguist
1440 %attr(755,root,root) %{_qtdir}/bin/findtr
1441 %attr(755,root,root) %{_qtdir}/bin/linguist
1442 %attr(755,root,root) %{_qtdir}/bin/lrelease
1443 %attr(755,root,root) %{_qtdir}/bin/lupdate
1444 %{_datadir}/qt4/phrasebooks
1445 %{_desktopdir}/qt4-linguist.desktop
1446 %{_pixmapsdir}/qt4-linguist.png
1447
1448 %files qmake
1449 %defattr(644,root,root,755)
1450 %attr(755,root,root) %{_bindir}/qt4-qmake
1451 %attr(755,root,root) %{_qtdir}/bin/qmake
1452 %{_datadir}/qt4/mkspecs
1453 %{_qtdir}/mkspecs
1454
1455 %files qtconfig
1456 %defattr(644,root,root,755)
1457 %attr(755,root,root) %{_bindir}/qt4-qtconfig
1458 %attr(755,root,root) %{_qtdir}/bin/qtconfig
1459 %{_desktopdir}/qt4-qtconfig.desktop
1460 %{_pixmapsdir}/qt4-qtconfig.png
1461
1462 %files -n qvfb
1463 %defattr(644,root,root,755)
1464 %attr(755,root,root) %{_bindir}/qvfb
1465
1466 %files doc
1467 %defattr(644,root,root,755)
1468 %{_docdir}/%{name}-doc
1469 %{_qtdir}/doc
1470
1471 %files -n QtCore-devel -f QtCore-devel.files
1472 %files -n QtDBus-devel -f QtDBus-devel.files
1473 %files -n QtDesigner-devel -f QtDesigner-devel.files
1474 %files -n QtGui-devel -f QtGui-devel.files
1475 %files -n QtNetwork-devel -f QtNetwork-devel.files
1476 %files -n QtOpenGL-devel -f QtOpenGL-devel.files
1477 %files -n QtSql-devel -f QtSql-devel.files
1478 %files -n QtSvg-devel -f QtSvg-devel.files
1479 %files -n QtTest-devel -f QtTest-devel.files
1480 %files -n QtXml-devel -f QtXml-devel.files
1481 %files -n Qt3Support-devel -f Qt3Support-devel.files
1482 %files -n QtAssistant-devel -f QtAssistant-devel.files
1483 %files -n QtUiTools-devel -f QtUiTools-devel.files
1484
1485 %if %{with static_libs}
1486 %files -n QtCore-static
1487 %defattr(644,root,root,755)
1488 %{_libdir}/libQtCore*.a
1489
1490 # XXX: build it
1491 #%files -n QtDBus-static
1492 #%defattr(644,root,root,755)
1493 #%{_libdir}/libQtDBus*.a
1494
1495 %files -n QtGui-static
1496 %defattr(644,root,root,755)
1497 %{_libdir}/libQtGui*.a
1498
1499 %files -n QtNetwork-static
1500 %defattr(644,root,root,755)
1501 %{_libdir}/libQtNetwork*.a
1502
1503 %files -n QtOpenGL-static
1504 %defattr(644,root,root,755)
1505 %{_libdir}/libQtOpenGL*.a
1506
1507 %files -n QtSql-static
1508 %defattr(644,root,root,755)
1509 %{_libdir}/libQtSql*.a
1510
1511 %files -n QtSvg-static
1512 %defattr(644,root,root,755)
1513 %{_libdir}/libQtSvg*.a
1514
1515 %files -n QtXml-static
1516 %defattr(644,root,root,755)
1517 %{_libdir}/libQtXml*.a
1518
1519 %files -n Qt3Support-static
1520 %defattr(644,root,root,755)
1521 %{_libdir}/libQt3Support*.a
1522
1523 %files -n QtAssistant-static
1524 %defattr(644,root,root,755)
1525 %{_libdir}/libQtAssistantClient.a
1526
1527 %files -n QtDesigner-static
1528 %defattr(644,root,root,755)
1529 %{_libdir}/libQtDesigner*.a
1530
1531 %files -n QtUiTools-static
1532 %defattr(644,root,root,755)
1533 %{_libdir}/libQtUiTools.a
1534 %endif
1535
1536 %files demos -f demos.files
1537 %files examples -f examples.files
This page took 0.162301 seconds and 4 git commands to generate.