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