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