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