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
7 # - remove obsolete patches
9 %define _noautostrip '.*_debug\.so*'
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
25 %undefine with_dont_enable
27 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
31 %{!?with_sqlite3:%{!?with_sqlite:%{!?with_ibase:%{!?with_mysql:%{!?with_pgsql:%{!?with_odbc:%undefine _withsql}}}}}}
35 %define _packager djurban
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
44 Release: 1.%{_snap}.0.1
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
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/
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
75 %{?with_cups:BuildRequires: cups-devel}
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
99 Conflicts: kdelibs <= 8:3.2-0.030602.1
100 Obsoletes: qt-extensions
102 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
104 %define _noautoreqdep libGL.so.1 libGLU.so.1
106 # <begin main library 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).
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
121 This package contains the shared, multi-threaded, linux version of the
122 Qt library, the style plugins and translation files for Qt.
125 Contiene las bibliotecas compartidas necesarias para ejecutar
126 aplicaciones Qt, bien como los archivos README.
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).
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.
143 Ten pakiet zawiera wspó³dzielon±, wielow±tkow±, linuksow± wersjê
144 biblioteki Qt, wtyczki ze stylami oraz pliki t³umaczeñ Qt.
150 %description -l pt_BR
151 Contém as bibliotecas compartilhadas necessárias para rodar aplicações
152 Qt, bem como os arquivos README.
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}
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.
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.
184 Summary: Qt static library
185 Summary(pl): Biblioteka statyczna Qt
186 Group: X11/Development/Libraries
187 Requires: %{_name}-devel = %{epoch}:%{version}-%{release}
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).
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
202 This package contains the static, multi-threaded, linux version of the
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).
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.
221 Ten pakiet zawiera statyczn±, wielow±tkow±, linuksow± wersjê
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
231 Qt documentation in HTML format.
233 %description doc -l pl
234 Dokumentacja qt w formacie HTML.
237 Summary: Qt man pages
238 Summary(pl): Qt - strony man
239 Group: X11/Development/Libraries
240 Obsoletes: qt-doc-man
243 Qt documentation in man pages format.
245 %description man -l pl
246 Dokumentacja qt w formacie stron man.
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}
255 %description examples
256 Example programs bundled with Qt version.
258 %description examples -l pl
259 Æwiczenia/przyk³ady do³±czone do Qt.
261 %description examples -l pt_BR
262 Programas exemplo para o Qt versão.
264 # <end main library desc>
266 # <start multithreaded plugins desc>
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
273 Requires: %{_name} = %{epoch}:%{version}-%{release}
274 Provides: %{_name}-plugin-sql = %{epoch}:%{version}-%{release}
276 %description plugin-ibase
277 This package contains a multi-thread enabled plugin for accessing
278 Interbase/Firebird database via the QSql classes.
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.
284 %description plugin-ibase -l pt_BR
285 Plugin de suporte a InterBase/Firebird para Qt.
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
292 Requires: %{_name} = %{epoch}:%{version}-%{release}
293 Provides: %{_name}-plugin-sql = %{epoch}:%{version}-%{release}
294 Obsoletes: qt-plugins-mysql
296 %description plugin-mysql
297 This package contains a multi-thread enabled plugin for accessing
298 MySQL database via the QSql classes.
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.
304 %description plugin-mysql -l pt_BR
305 Plugin de suporte a MySQL para Qt.
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
312 Requires: %{_name} = %{epoch}:%{version}-%{release}
313 Provides: %{_name}-plugin-sql = %{epoch}:%{version}-%{release}
314 Obsoletes: qt-plugins-odbc
316 %description plugin-odbc
317 This package contains a multi-thread enabled plugin for accessing
318 unixODBC services via the QSql classes.
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.
324 %description plugin-odbc -l pt_BR
325 Plugin de suporte a ODBC para Qt.
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
332 Requires: %{_name} = %{epoch}:%{version}-%{release}
333 Provides: %{_name}-plugin-sql = %{epoch}:%{version}-%{release}
334 Obsoletes: qt-plugins-psql
336 %description plugin-psql
337 This package contains a multi-thread enabled plugin for accessing
338 PostgreSQL database via the QSql classes.
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.
345 %description plugin-psql -l es
346 Plugin de suporte a PostgreSQL para Qt.
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
353 Requires: %{_name} = %{epoch}:%{version}-%{release}
354 Provides: %{_name}-plugin-sql = %{epoch}:%{version}-%{release}
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
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.
365 %description plugin-sqlite -l pt_BR
366 Plugin de suporte a SQLite para Qt. # <end multithreaded plugins desc>
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
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
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.
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
396 %description assistant
397 Qt Assistant is a tool for browsing on-line documentation with
398 indexing, bookmarks and full-text search.
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.
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
410 %description -n qmake
411 A powerful makefile generator. It can create makefiles on any platform
412 from a simple .pro definitions file.
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.
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}
424 %description -n qtconfig
425 A tool for configuring look and behavior of Qt widgets.
427 %description -n qtconfig -l pl
428 Narzêdie do konfiguracji wygl±du i zachowania widgetów Qt.
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}
436 %description designer
437 An advanced tool used for GUI designing with Qt library.
439 %description designer -l pl
440 Zaawansowane narzêdzie s³u¿±ce do projektowania interfejsu graficznego
441 za pomoc± biblioteki Qt.
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}
449 %description designer-libs
450 Libraries used by the Qt GUI Designer.
452 %description designer-libs -l pl
453 Biblioteki wykorzystywane przez narzêdzie projektowania interfejsu
454 graficznego - Qt Designer.
456 # NEW PACKAGES (More informative descriptions are in TODO)
458 Summary: Core classes used by other modules
459 Group: X11/Development/Libraries
461 %description -n QtCore
462 Core classes used by other modules.
465 %package -n Qt3Support
466 Summary: Graphical User Interface components
467 Group: X11/Development/Libraries
468 Requires: QtCore >= %{epoch}:%{version}-%{release}
470 %description -n Qt3Support
471 Graphical User Interface components.
474 Summary: Graphical User Interface components
475 Group: X11/Development/Libraries
476 Requires: QtCore >= %{epoch}:%{version}-%{release}
478 %description -n QtGui
479 Graphical User Interface components.
481 %package -n QtNetwork
482 Summary: Classes for network programming
483 Group: X11/Development/Libraries
484 Requires: QtCore >= %{epoch}:%{version}-%{release}
486 %description -n QtNetwork
487 Classes for network programming.
490 Summary: Classes for database integration using SQL
491 Group: X11/Development/Libraries
492 Requires: QtCore >= %{epoch}:%{version}-%{release}
494 %description -n QtSql
495 Classes for database integration using SQL.
498 Summary: OpenGL support classes
499 Group: X11/Development/Libraries
500 Requires: QtCore >= %{epoch}:%{version}-%{release}
502 %description -n QtOpenGL
503 OpenGL support classes.
506 Summary: Classes for handling XML
507 Group: X11/Development/Libraries
508 Requires: QtCore >= %{epoch}:%{version}-%{release}
510 %description -n QtXml
511 Classes for handling XML.
513 %package -n QtCore-devel
514 Summary: Core classes used by other modules
515 Group: X11/Development/Libraries
516 Requires: QtCore >= %{epoch}:%{version}-%{release}
518 %description -n QtCore-devel
519 Core classes used by other modules.
521 %package -n QtGui-devel
522 Summary: Graphical User Interface components
523 Group: X11/Development/Libraries
524 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
526 %description -n QtGui-devel
527 Graphical User Interface components.
529 %package -n QtNetwork-devel
530 Summary: Classes for network programming
531 Group: X11/Development/Libraries
532 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
534 %description -n QtNetwork-devel
535 Classes for network programming.
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}
542 %description -n QtSql-devel
543 Classes for database integration using SQL.
545 %package -n QtOpenGL-devel
546 Summary: OpenGL support classes
547 Group: X11/Development/Libraries
548 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
550 %description -n QtOpenGL-devel
551 OpenGL support classes.
553 %package -n QtXml-devel
554 Summary: Classes for handling XML
555 Group: X11/Development/Libraries
556 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
558 %description -n QtXml-devel
559 Classes for handling XML.
561 %package -n Qt3Support-devel
562 Summary: Graphical User Interface components
563 Group: X11/Development/Libraries
564 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
566 %description -n Qt3Support-devel
567 Graphical User Interface components.
569 %package -n QtSql-plugin-ibase
570 Summary: QtSql ibase plugin
571 Group: X11/Development/Libraries
572 Requires: QtSql >= %{epoch}:%{version}-%{release}
574 %description -n QtSql-plugin-ibase
577 %package -n QtSql-plugin-mysql
578 Summary: QtSql mysql plugin
579 Group: X11/Development/Libraries
580 Requires: QtSql >= %{epoch}:%{version}-%{release}
582 %description -n QtSql-plugin-mysql
585 %package -n QtSql-plugin-odbc
586 Summary: QtSql odbc plugin
587 Group: X11/Development/Libraries
588 Requires: QtSql >= %{epoch}:%{version}-%{release}
590 %description -n QtSql-plugin-odbc
593 %package -n QtSql-plugin-pgsql
594 Summary: QtSql pgsql plugin
595 Group: X11/Development/Libraries
596 Requires: QtSql >= %{epoch}:%{version}-%{release}
598 %description -n QtSql-plugin-pgsql
601 %package -n QtSql-plugin-sqlite
602 Summary: QtSql sqlite plugin
603 Group: X11/Development/Libraries
604 Requires: QtSql >= %{epoch}:%{version}-%{release}
606 %description -n QtSql-plugin-sqlite
609 %package -n QtSql-plugin-sqlite3
610 Summary: QtSql sqlite3 plugin
611 Group: X11/Development/Libraries
612 Requires: QtSql >= %{epoch}:%{version}-%{release}
614 %description -n QtSql-plugin-sqlite3
615 QtSql sqlite2 plugin.
618 Summary: Qt Virtual framebuffer to run Qt/Embedded applications in XWindow
619 Group: X11/Development/Libraries
622 Qt Virtual framebuffer to run Qt/Embedded applications in XWindow.
625 Summary: Build tools for Qt4
626 Group: X11/Development/Libraries
627 Requires: QtCore >= %{epoch}:%{version}-%{release}
628 Requires: QtXml >= %{epoch}:%{version}-%{release}
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.
634 Summary: Demos of new qt4 features
635 Group: X11/Development/Libraries
636 Requires: QtCore >= %{epoch}:%{version}-%{release}
637 Requires: QtXml >= %{epoch}:%{version}-%{release}
640 Demos are spiders that fly.
643 #setup -q -n %{_name}-copy-%{_snap}
644 %setup -q -n %{_name}-copy
646 %if %{with dont_enable}
650 %patch2 -p1 -b .niedakh
651 %patch4 -p1 -b .niedakh
652 #patch7 -p1 -b .niedakh
653 %patch8 -p1 -b .niedakh
656 #cat >> patches/DISABLED <<EOF
665 # change QMAKE_CFLAGS_RELEASE to build
666 # properly optimized libs
667 plik="mkspecs/linux-g++/qmake.conf"
670 s|/usr/X11R6/lib|/usr/X11R6/%{_lib}|;
671 s|/usr/lib|%{_libdir}|;
672 s|\\(QTDIR\\)/lib|\\(QTDIR\\)/%{_lib}|;
676 |grep -v QMAKE_CFLAGS_RELEASE \
677 |grep -v QMAKE_CXXFLAGS_RELEASE \
678 |grep -v QMAKE_CFLAGS_DEBUG \
679 |grep -v QMAKE_CXXFLAGS_DEBUG \
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
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
696 export LD_LIBRARY_PATH=$QTDIR/lib
699 export QMAKESPEC=$QTDIR/mkspecs/linux-g++
701 if [ "%{_lib}" != "lib" ] ; then
705 # pass OPTFLAGS to build qmake itself with optimization
706 export OPTFLAGS="%{rpmcflags}"
708 #%{__make} -f Makefile.cvs
710 ##################################
711 # DEFAULT OPTIONS FOR ALL BUILDS #
712 ##################################
715 -DQT_CLEAN_NAMESPACE \
720 -headerdir %{_includedir}/qt4 \
721 -datadir %{_datadir}/qt4 \
722 -docdir %{_docdir}/%{name}-doc \
723 -sysconfdir %{_sysconfdir}/qt \
724 -translationdir %{_datadir}/locale/ \
726 -%{!?with_pch:no-}pch \
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} \
741 ##################################
742 # STATIC MULTI-THREAD #
743 ##################################
745 %if %{with static_libs}
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} \
762 # Do not build tutorial and examples. Provide them as sources.
763 %{__make} sub-qmake sub-src
765 # This will not remove previously compiled libraries.
769 ##################################
770 # SHARED MULTI-THREAD #
771 ##################################
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}"
784 -plugindir %{_libdir}/qt4/plugins \
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"
798 # Do not build tutorial and examples. Provide them as sources.
799 %{__make} sub-src-all-ordered
802 $QTDIR/bin/uic previewwidgetbase.ui -o ui_previewwidgetbase.h
804 %{__make} sub-tools-all-ordered sub-demos-all-ordered
806 %if %{with dont_enable}
808 cd tools/designer/designer
809 lrelease designer_de.ts
810 lrelease designer_fr.ts
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
822 rm -rf $RPM_BUILD_ROOT
824 export QTDIR=`/bin/pwd`
827 INSTALL_ROOT=$RPM_BUILD_ROOT
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}}
839 $RPM_BUILD_ROOT%{_bindir}
841 mv -f $RPM_BUILD_ROOT{%{_prefix}/qt.conf,%{_sysconfdir}/qt}
844 # # # we fix qmakespecs
845 # # # From now QMAKE_INCDIR_QT becomes %{_includedir}/qt4
849 s|(QMAKE_INCDIR_QT\\s*=\\s*\\\$\\(QTDIR\\)/include)|\$1/qt4|
850 " $RPM_BUILD_ROOT/%{_datadir}/qt4/mkspecs/linux-g++/qmake.conf
853 #tools/{msg2qm/msg2qm,mergetr/mergetr}
854 # $RPM_BUILD_ROOT%{_bindir}
858 # # # desktop dir and pixmaps
862 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
863 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
865 install tools/qtconfig/images/appicon.png \
866 $RPM_BUILD_ROOT%{_pixmapsdir}/qtconfig.png
868 install tools/linguist/linguist/images/appicon.png \
869 $RPM_BUILD_ROOT%{_pixmapsdir}/linguist.png
871 install tools/assistant/images/appicon.png \
872 $RPM_BUILD_ROOT%{_pixmapsdir}/assistant.png
875 install tools/designer/src/designer/images/designer.png \
876 $RPM_BUILD_ROOT%{_pixmapsdir}/designer.png
884 %if %{with static_libs}
885 install %{_lib}/libqt*.a $RPM_BUILD_ROOT%{_libdir}
895 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/designer.desktop
896 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
897 install bin/uic $RPM_BUILD_ROOT%{_bindir}
906 install tools/linguist/{qm2ts,lrelease,lupdate}/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
909 #install doc/man/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
910 #install doc/man/man3/*.3qt $RPM_BUILD_ROOT%{_mandir}/man3
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
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
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
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
945 # # # copying examples
949 cp -dpR examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
950 mv $RPM_BUILD_ROOT{%{_libdir}/*.prl,%{_examplesdir}/%{name}/lib}
952 for i in `find $RPM_BUILD_ROOT -name \*.svn`
957 cd $RPM_BUILD_ROOT%{_examplesdir}/%{name}
958 for i in `find ./ -name Makefile`;
961 %{__sed} -i -e "s,$RPM_BUILD_DIR,/usr,g" $i
962 %{__sed} -i -e "s,examples,src/examples/qt4/examples,g" $i
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
971 #cd $RPM_BUILD_ROOT%{_includedir}/Qt
974 #for i in `find \`find ../ -maxdepth 1 -type d | egrep -v -w 'Qt|./'\` -name \*.h|cut -c 4-`;
976 #y=`echo $i|cut -d '/' -f2-`;
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}
988 rm -rf $RPM_BUILD_ROOT
995 *******************************************************
998 * With qt 4.0.0 the single threaded version was *
1001 *******************************************************
1005 %postun -n QtCore -p /sbin/ldconfig
1007 %post designer-libs -p /sbin/ldconfig
1008 %postun designer-libs -p /sbin/ldconfig
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
1019 %defattr(644,root,root,755)
1020 %attr(755,root,root) %{_bindir}/qvfb
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
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
1048 %defattr(644,root,root,755)
1049 %attr(755,root,root) %{_bindir}/qmake
1050 %{_datadir}/qt4/mkspecs
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.*
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
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
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
1086 %defattr(644,root,root,755)
1087 %attr(755,root,root) %{_libdir}/libQtXml*.so.*
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
1097 %defattr(644,root,root,755)
1098 %attr(755,root,root) %{_libdir}/libQtNetwork*.so.*
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
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
1124 %files -n QtSql-plugin-mysql
1125 %defattr(644,root,root,755)
1126 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlmysql*.so
1130 %files -n QtSql-plugin-pgsql
1131 %defattr(644,root,root,755)
1132 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlpsql*.so
1136 %files -n QtSql-plugin-sqlite
1137 %defattr(644,root,root,755)
1138 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlite2*.so
1142 %files -n QtSql-plugin-sqlite3
1143 %defattr(644,root,root,755)
1144 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlite*.so
1148 %files -n QtSql-plugin-ibase
1149 %defattr(644,root,root,755)
1150 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlibase*.so
1154 %files -n QtSql-plugin-odbc
1155 %defattr(644,root,root,755)
1156 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlodbc*.so
1160 %defattr(644,root,root,755)
1161 %attr(755,root,root) %{_libdir}/libQtSql*.so.*
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
1171 %defattr(644,root,root,755)
1172 %attr(755,root,root) %{_libdir}/libQtOpenGL*.so.*
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
1182 %defattr(644,root,root,755)
1183 %attr(755,root,root) %{_libdir}/libQtGui*.so.*
1184 %{_libdir}/qt4/plugins/codecs/*
1185 %{_libdir}/qt4/plugins/imageformats/*
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
1195 %defattr(644,root,root,755)
1199 %defattr(644,root,root,755)
1200 %{_docdir}/%{name}-doc
1203 %defattr(644,root,root,755)
1204 %attr(755,root,root) %{_bindir}/qtconfig
1205 %{_desktopdir}/qtconfig.desktop
1206 %{_pixmapsdir}/qtconfig.png
1209 %if %{with designer}
1210 %files designer-libs
1211 %defattr(644,root,root,755)
1212 %attr(755,root,root) %{_libdir}/libQtDesigner*.so.*.*.*
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