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