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