3 # - better descriptions
5 # - check if translations are avilable
8 %bcond_with nas # enable NAS audio support
9 # static libs disabled for now
10 %bcond_with static_libs # don't 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 # build ibase (InterBase/Firebird) plugin
19 %bcond_without pch # enable pch in qmake
20 %bcond_with dont_enable # blocks translations, they are not yet available
22 %undefine with_dont_enable
24 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
28 %{!?with_sqlite3:%{!?with_sqlite:%{!?with_ibase:%{!?with_mysql:%{!?with_pgsql:%{!?with_odbc:%undefine _withsql}}}}}}
32 %define _packager djurban
34 Summary: The Qt GUI application framework
35 Summary(es): Biblioteca para ejecutar aplicaciones GUI Qt
36 Summary(pl): Biblioteka Qt do tworzenia GUI
37 Summary(pt_BR): Estrutura para rodar aplicações GUI Qt
40 #Release: 1.%{_snap}.0.1
44 #Source0: http://ep09.pld-linux.org/~%{_packager}/kde/qt-copy-%{_snap}.tar.bz2
45 #Source0: http://wftp.tu-chemnitz.de/pub/Qt/source//%{_name}-x11-opensource-%{version}-b1.tar.bz2
46 Source0: ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-desktop-%{version}-rc1.tar.bz2
47 # Source0-md5: f7f48c9f7de7fd93a414e45ef691ebea
48 #Source1: http://ep09.pld-linux.org/~%{_packager}/kde/%{_name}-copy-patches-040531.tar.bz2
49 #Source1-md5 2e38e44b6ef26bfb8a7f3b6900ee53c0
50 Source2: qtconfig.desktop
51 Source3: designer.desktop
52 Source4: assistant.desktop
53 Source5: linguist.desktop
54 Patch0: %{name}-tools.patch
55 %if %{with dont_enable}
58 Patch3: qt-disable_tutorials.patch
60 Patch2: %{name}-buildsystem.patch
61 Patch4: %{name}-locale.patch
62 Patch8: %{name}-antialias.patch
63 Patch9: %{name}rc1-build.patch
64 URL: http://www.trolltech.com/products/qt/
66 %{?with_ibase:BuildRequires: Firebird-devel}
67 %{?with_sqlite3:BuildRequires: sqlite3-devel}
68 BuildRequires: OpenGL-devel
69 # incompatible with bison
71 %{?with_cups:BuildRequires: cups-devel}
73 BuildRequires: freetype-devel >= 2.0.0
74 %{?with_pch:BuildRequires: gcc >= 5:3.4.0}
75 BuildRequires: libjpeg-devel
76 BuildRequires: libmng-devel >= 1.0.0
77 BuildRequires: libpng-devel >= 1.0.8
78 BuildRequires: libstdc++-devel
79 BuildRequires: libungif-devel
80 %{?with_mysql:BuildRequires: mysql-devel}
81 %{?with_nas:BuildRequires: nas-devel}
82 BuildRequires: perl-base
83 %{?with_pgsql:BuildRequires: postgresql-backend-devel}
84 %{?with_pgsql:BuildRequires: postgresql-devel}
85 # uncomment this in rel. 1 - no time to upgrade rpm
86 #BuildRequires: rpmbuild(macros) >= 1.213
87 BuildRequires: sed >= 4.0
88 %{?with_odbc:BuildRequires: unixODBC-devel}
89 %{?with_sqlite:BuildRequires: sqlite-devel}
90 BuildRequires: xcursor-devel
91 BuildRequires: xft-devel
92 BuildRequires: xrender-devel
93 BuildRequires: zlib-devel
95 Conflicts: kdelibs <= 8:3.2-0.030602.1
96 Obsoletes: qt-extensions
98 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
100 %define _noautoreqdep libGL.so.1 libGLU.so.1
101 %define _noautostrip '.*_debug\\.so*'
104 Qt is a complete C++ application development framework, which includes
105 a class library and tools for multiplatform development and
106 internationalization. Using Qt, a single source code tree can build
107 applications that run natively on different platforms (Windows,
108 Unix/Linux, Mac OS X, embedded Linux).
110 Qt has a rich set of standard widgets, and lets you write custom
111 controls. It encapsulates four different platform-specific APIs, and
112 the APIs for file-handling, networking, process-handling, threading,
113 database access, etc. Qt now also has Motif migration oraz Netscape
117 Contiene las bibliotecas compartidas necesarias para ejecutar
118 aplicaciones Qt, bien como los archivos README.
121 Qt oferuje kompletny system do tworzenia i rozwijania aplikacji w
122 jêzyku C++, w którego sk³ad wchodzi biblioteka z klasami oraz
123 wieloplatformowymi narzêdziami do rozwijania i t³umaczenia aplikacji.
124 Z pomoc± Qt jeden kod ¼ród³owy mo¿e byæ natywnie uruchamiany na
125 ró¿nych platformach (Windows, Unix/Linux, Mac OS X).
127 Qt ma bogaty zbiór standardowych elementów interfejsu graficznego, ale
128 pozwala równie¿ na pisanie w³asnych elementów. £±czy w sposób
129 niewidoczny dla programisty interfejsy programowania ró¿nych systemów,
130 tworz±c w ten sposób jeden interfejs dla obs³ugi plików, sieci,
131 procesów, w±tków, baz danych itp. Umo¿liwia tak¿e ³atwe przenoszenie
132 na Qt aplikacji korzystaj±cych z Motif oraz pisanie wtyczek z
133 wykorzystaniem Netscape LiveConnect.
136 Summary: Core classes used by other modules
137 Group: X11/Development/Libraries
139 %description -n QtCore
140 Core classes used by other modules.
142 %package -n QtCore-devel
143 Summary: Core classes used by other modules
144 Group: X11/Development/Libraries
145 Requires: QtCore >= %{epoch}:%{version}-%{release}
147 %description -n QtCore-devel
148 Core classes used by other modules.
151 Summary: Graphical User Interface components
152 Group: X11/Development/Libraries
153 Requires: QtCore >= %{epoch}:%{version}-%{release}
155 %description -n QtGui
156 Graphical User Interface components.
158 %package -n QtGui-devel
159 Summary: Graphical User Interface components
160 Group: X11/Development/Libraries
161 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
163 %description -n QtGui-devel
164 Graphical User Interface components.
166 %package -n QtNetwork
167 Summary: Classes for network programming
168 Group: X11/Development/Libraries
169 Requires: QtCore >= %{epoch}:%{version}-%{release}
171 %description -n QtNetwork
172 Classes for network programming.
174 %package -n QtNetwork-devel
175 Summary: Classes for network programming
176 Group: X11/Development/Libraries
177 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
179 %description -n QtNetwork-devel
180 Classes for network programming.
183 Summary: OpenGL support classes
184 Group: X11/Development/Libraries
185 Requires: QtCore >= %{epoch}:%{version}-%{release}
187 %description -n QtOpenGL
188 OpenGL support classes.
190 %package -n QtOpenGL-devel
191 Summary: OpenGL support classes
192 Group: X11/Development/Libraries
193 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
195 %description -n QtOpenGL-devel
196 OpenGL support classes.
199 Summary: Classes for database integration using SQL
200 Group: X11/Development/Libraries
201 Requires: QtCore >= %{epoch}:%{version}-%{release}
203 %description -n QtSql
204 Classes for database integration using SQL.
206 %package -n QtSql-devel
207 Summary: Classes for database integration using SQL
208 Group: X11/Development/Libraries
209 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
211 %description -n QtSql-devel
212 Classes for database integration using SQL.
214 %package -n QtSql-ibase
215 Summary: Database plugin for InterBase/Firebird Qt support
216 Summary(pl): Wtyczka InterBase/Firebird do Qt
217 Summary(pt_BR): Plugin de suporte a InterBase/Firebird para Qt
218 Group: X11/Development/Libraries
219 Provides: QtSql-backend = %{epoch}:%{version}-%{release}
220 Requires: QtSql >= %{epoch}:%{version}-%{release}
222 %description -n QtSql-ibase
223 This package contains a plugin for accessing Interbase/Firebird
224 database via the QSql classes.
226 %description -n QtSql-ibase -l pl
227 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
228 danych Interbase/Firebird poprzez klasy QSql.
230 %description -n QtSql-ibase -l pt_BR
231 Plugin de suporte a InterBase/Firebird para Qt.
233 %package -n QtSql-mysql
234 Summary: Database plugin for MySQL Qt support
235 Summary(pl): Wtyczka MySQL do Qt
236 Summary(pt_BR): Plugin de suporte a MySQL para Qt
237 Group: X11/Development/Libraries
238 Provides: QtSql-backend = %{epoch}:%{version}-%{release}
239 Requires: QtSql >= %{epoch}:%{version}-%{release}
241 %description -n QtSql-mysql
242 This package contains a plugin for accessing MySQL database via the
245 %description -n QtSql-mysql -l pl
246 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
247 danych MySQL poprzez klasy QSql.
249 %description -n QtSql-mysql -l pt_BR
250 Plugin de suporte a MySQL para Qt.
252 %package -n QtSql-odbc
253 Summary: Database plugin for ODBC Qt support
254 Summary(pl): Wtyczka ODBC do Qt
255 Summary(pt_BR): Plugin de suporte a ODBC para Qt
256 Group: X11/Development/Libraries
257 Provides: QtSql-backend = %{epoch}:%{version}-%{release}
258 Requires: QtSql >= %{epoch}:%{version}-%{release}
260 %description -n QtSql-odbc
261 This package contains a plugin for accessing unixODBC services via the
264 %description -n QtSql-odbc -l pl
265 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z us³ug
266 unixODBC poprzez klasy QSql.
268 %description -n QtSql-odbc -l pt_BR
269 Plugin de suporte a ODBC para Qt.
271 %package -n QtSql-pgsql
272 Summary: Database plugin for PostgreSQL Qt support
273 Summary(pl): Wtyczka PostgreSQL do Qt
274 Summary(pt_BR): Plugin de suporte a PostgreSQL para Qt
275 Group: X11/Development/Libraries
276 Provides: QtSql-backend = %{epoch}:%{version}-%{release}
277 Requires: QtSql >= %{epoch}:%{version}-%{release}
279 %description -n QtSql-pgsql
280 This package contains a plugin for accessing PostgreSQL database via
283 %description -n QtSql-pgsql -l pl
284 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
285 danych PostgreSQL poprzez klasy QSql.
287 %description -n QtSql-pgsql -l es
288 Plugin de suporte a PostgreSQL para Qt.
290 %package -n QtSql-sqlite
291 Summary: QtSql sqlite plugin
292 Summary: Database plugin for SQLite Qt support
293 Summary(pl): Wtyczka SQLite do Qt
294 Summary(pt_BR): Plugin de suporte a SQLite para Qt
295 Group: X11/Development/Libraries
296 Provides: QtSql-backend = %{epoch}:%{version}-%{release}
297 Requires: QtSql >= %{epoch}:%{version}-%{release}
299 %description -n QtSql-sqlite
300 This package contains a plugin for using the SQLite library (which
301 allows to acces virtually any SQL database) via the QSql classes.
303 %description -n QtSql-sqlite -l pl
304 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
305 danych SQLite poprzez klasy QSql.
307 %description -n QtSql-sqlite -l pt_BR
308 Plugin de suporte a SQLite para Qt.
310 %package -n QtSql-sqlite3
311 Summary: Database plugin for SQLite3 Qt support
312 Summary(pl): Wtyczka SQLite3 do Qt
313 Summary(pt_BR): Plugin de suporte a SQLite3 para Qt
314 Group: X11/Development/Libraries
315 Provides: QtSql-backend = %{epoch}:%{version}-%{release}
316 Requires: QtSql >= %{epoch}:%{version}-%{release}
318 %description -n QtSql-sqlite3
319 This package contains a plugin for using the SQLite3 library (which
320 allows to acces virtually any SQL database) via the QSql classes.
322 %description -n QtSql-sqlite3 -l pl
323 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
324 danych SQLite3 poprzez klasy QSql.
326 %description -n QtSql-sqlite3 -l pt_BR
327 Plugin de suporte a SQLite3 para Qt.
330 Summary: Classes for handling XML
331 Group: X11/Development/Libraries
332 Requires: QtCore >= %{epoch}:%{version}-%{release}
334 %description -n QtXml
335 Classes for handling XML.
337 %package -n QtXml-devel
338 Summary: Classes for handling XML
339 Group: X11/Development/Libraries
340 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
342 %description -n QtXml-devel
343 Classes for handling XML.
345 %package -n Qt3Support
346 Summary: Qt3 compat library
347 Group: X11/Development/Libraries
348 Requires: QtCore >= %{epoch}:%{version}-%{release}
350 %description -n Qt3Support
353 %package -n Qt3Support-devel
354 Summary: Qt3 compat library
355 Group: X11/Development/Libraries
356 Requires: QtCore-devel >= %{epoch}:%{version}-%{release}
358 %description -n Qt3Support-devel
362 Summary: Qt documentation browser
363 Summary(pl): Przegl±darka dokumentacji Qt
364 Group: X11/Development/Tools
365 Requires: %{name}-doc
367 %description assistant
368 Qt Assistant is a tool for browsing on-line documentation with
369 indexing, bookmarks and full-text search.
371 %description assistant -l pl
372 Qt Assistant to narzêdzie do przegl±dania dokumentacji z mo¿liwo¶ci±
373 indeksowania, dodawania zak³adek i pe³notekstowego wyszukiwania.
376 Summary: Build tools for Qt4
377 Group: X11/Development/Libraries
378 Requires: QtCore >= %{epoch}:%{version}-%{release}
379 Requires: QtXml >= %{epoch}:%{version}-%{release}
382 This package includes the Qt resource compiler (rcc), meta objects
383 compiler (moc), user interface compiler (uic) and qt3to4 include names
387 Summary: IDE used for GUI designing with Qt library
388 Summary(pl): IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt
389 Group: X11/Applications
390 Requires: %{name}-designer-libs = %{epoch}:%{version}-%{release}
392 %description designer
393 An advanced tool used for GUI designing with Qt library.
395 %description designer -l pl
396 Zaawansowane narzêdzie s³u¿±ce do projektowania interfejsu graficznego
397 za pomoc± biblioteki Qt.
399 %package designer-libs
400 Summary: Libraries IDE used for GUI designing with Qt library
401 Summary(pl): Biblioteki do IDE s³u¿±cego do projektowania GUI za pomoc± biblioteki Qt
402 Group: X11/Applications
404 %description designer-libs
405 Libraries used by the Qt GUI Designer.
407 %description designer-libs -l pl
408 Biblioteki wykorzystywane przez narzêdzie projektowania interfejsu
409 graficznego - Qt Designer.
412 Summary: Translation helper for Qt
413 Summary(pl): Aplikacja u³atwiaj±ca t³umaczenie aplikacji oparty o Qt
414 Group: X11/Development/Tools
416 %description linguist
417 This program provides an interface that shortens and helps systematize
418 the process of translating GUIs. Qt Linguist takes all of the text of
419 a UI that will be shown to the user, and presents it to a human
420 translator in a simple window. When one UI text is translated, the
421 program automatically progresses to the next, until they are all
424 %description linguist -l pl
425 Ten program oferuje interfejs znacznie przy¶pieszaj±cy proces
426 t³umaczenia interfejsu u¿ytkownika. Zbiera wszystkie teksty
427 przeznaczone do t³umaczenia i przedstawia w ³atwym w obs³udze oknie.
428 Gdy jeden z nich jest ju¿ przet³umaczony, automatycznie przechodzi do
429 nastêpnego, a¿ wszystkie bêd± przet³umaczone.
432 Summary: Qt makefile generator
433 Summary(pl): Generator plików makefile dla aplikacji Qt
434 Group: X11/Development/Tools
436 %description -n qmake
437 A powerful makefile generator. It can create makefiles on any platform
438 from a simple .pro definitions file.
440 %description -n qmake -l pl
441 Rozbudowany generator plików makefile. Potrafi tworzyæ pliki makefile
442 na ka¿dej platformi na podstawie ³atwego w przygotowaniu pliku .pro.
445 Summary: Qt widgets configuration tool
446 Summary(pl): Narzêdzie do konfigurowania widgetów Qt
447 Group: X11/Applications
449 %description -n qtconfig
450 A tool for configuring look and behavior of Qt widgets.
452 %description -n qtconfig -l pl
453 Narzêdie do konfiguracji wygl±du i zachowania widgetów Qt.
456 Summary: Qt Virtual framebuffer
457 Group: X11/Development/Libraries
460 Qt Virtual framebuffer alllows you to run Qt/Embedded applications in
464 Summary: Demos of new qt4 features
465 Group: X11/Development/Libraries
466 Requires: QtCore >= %{epoch}:%{version}-%{release}
467 Requires: QtXml >= %{epoch}:%{version}-%{release}
470 Demos are spiders that fly.
473 Summary: Qt Documentation in HTML format
474 Summary(pl): Dokumentacja Qt w formacie HTML
475 Group: X11/Development/Libraries
478 Qt documentation in HTML format.
480 %description doc -l pl
481 Dokumentacja qt w formacie HTML.
484 Summary: Qt man pages
485 Summary(pl): Qt - strony man
486 Group: X11/Development/Libraries
489 Qt documentation in man pages format.
491 %description man -l pl
492 Dokumentacja qt w formacie stron man.
495 Summary: Example programs bundled with Qt
496 Summary(pl): Æwiczenia i przyk³ady do Qt
497 Summary(pt_BR): Programas exemplo desenvolvidos com o Qt
498 Group: X11/Development/Libraries
499 # no it does not , we cant be sure the user wants to compile them right?
500 # he might just want to take a look, anwyay no single devel package now
501 #Requires: %{name}-devel = %{epoch}:%{version}-%{release}
503 %description examples
504 Example programs bundled with Qt version.
506 %description examples -l pl
507 Æwiczenia/przyk³ady do³±czone do Qt.
509 %description examples -l pt_BR
510 Programas exemplo para o Qt versão.
513 #setup -q -n %{_name}-copy-%{_snap}
514 %setup -q -n qt-x11-opensource-desktop-%{version}-rc1
516 %if %{with dont_enable}
520 %patch2 -p1 -b .niedakh
521 %patch4 -p1 -b .niedakh
522 %patch8 -p1 -b .niedakh
525 #cat >> patches/DISABLED <<EOF
534 # change QMAKE_CFLAGS_RELEASE to build
535 # properly optimized libs
536 plik="mkspecs/linux-g++/qmake.conf"
539 s|/usr/X11R6/lib|/usr/X11R6/%{_lib}|;
540 s|/usr/lib|%{_libdir}|;
541 s|\\(QTDIR\\)/lib|\\(QTDIR\\)/%{_lib}|;
545 |grep -v QMAKE_CFLAGS_RELEASE \
546 |grep -v QMAKE_CXXFLAGS_RELEASE \
547 |grep -v QMAKE_CFLAGS_DEBUG \
548 |grep -v QMAKE_CXXFLAGS_DEBUG \
553 echo -e "QMAKE_CFLAGS_RELEASE\t=\t%{rpmcflags}" >> $plik
554 echo -e "QMAKE_CXXFLAGS_RELEASE\t=\t%{rpmcxxflags}" >> $plik
555 echo -e "QMAKE_CFLAGS_DEBUG\t=\t%{debugcflags}" >> $plik
556 echo -e "QMAKE_CXXFLAGS_DEBUG\t=\t%{debugcflags}" >> $plik
561 if test -n "$LD_LIBRARY_PATH"; then
562 LD_LIBRARY_PATH=$QTDIR/%{_lib}:$LD_LIBRARY_PATH
564 LD_LIBRARY_PATH=$QTDIR/lib
567 if [ "%{_lib}" != "lib" ] ; then
571 # pass OPTFLAGS to build qmake itself with optimization
572 OPTFLAGS="%{rpmcflags}"
573 PATH=$QTDIR/bin:$PATH
574 QMAKESPEC=$QTDIR/mkspecs/linux-g++
577 export QTDIR YACC PATH LD_LIBRARY_PATH QMAKESPEC OPTFLAGS
580 # $1 - aditional params
582 ##################################
583 # DEFAULT OPTIONS FOR ALL BUILDS #
584 ##################################
587 -DQT_CLEAN_NAMESPACE \
591 -docdir %{_docdir}/%{name}-doc \
592 -headerdir %{_includedir}/qt4 \
595 -plugindir %{_libdir}/qt4/plugins \
596 -datadir %{_datadir}/qt4 \
597 -translationdir %{_datadir}/locale/ \
598 -sysconfdir %{_sysconfdir}/qt4 \
599 -examplesdir %{_examplesdir}/qt4 \
600 -demosdir %{_examplesdir}/qt4-demos \
602 -%{!?with_pch:no-}pch \
608 -I%{_includedir}/postgresql/server \
609 -I%{_includedir}/mysql \
610 %{!?with_cups:-no-cups} \
611 %{?with_nas:-system-nas-sound} \
612 %{?with_nvidia:-dlopen-opengl} \
630 %{__make} sub-src-all-ordered
634 ##################################
635 # STATIC MULTI-THREAD #
636 ##################################
638 %if %{with static_libs}
640 %{?with_mysql:-qt-sql-mysql} \
641 %{?with_odbc:-qt-sql-odbc} \
642 %{?with_pgsql:-qt-sql-psql} \
643 %{?with_sqlite3:-qt-sql-sqlite} \
644 %{?with_sqlite:-qt-sql-sqlite2} \
645 %{?with_ibase:-qt-sql-ibase} \
651 ##################################
652 # SHARED MULTI-THREAD #
653 ##################################
656 %{?with_mysql:-plugin-sql-mysql} \
657 %{?with_odbc:-plugin-sql-odbc} \
658 %{?with_pgsql:-plugin-sql-psql} \
659 %{?with_sqlite3:-plugin-sql-sqlite} \
660 %{?with_sqlite:-plugin-sql-sqlite2} \
661 %{?with_ibase:-plugin-sql-ibase}"
665 sub-tools-all-ordered \
666 sub-demos-all-ordered \
667 sub-examples-all-ordered
671 # Check for "with" conditions befor build
673 # Find out why and fix the reason of building only mysql sqldriver
674 # (it is not installed either)
676 for dir in src/plugins/sqldrivers/{ibase,odbc,psql,sqlite,sqlite2}
683 %if %{with dont_enable}
685 cd tools/designer/designer
686 lrelease designer_de.ts
687 lrelease designer_fr.ts
689 cd $QTDIR/tools/assistant
690 lrelease assistant_de.ts
691 lrelease assistant_fr.ts
692 cd $QTDIR/tools/linguist/linguist
693 lrelease linguist_de.ts
694 lrelease linguist_fr.ts
699 rm -rf $RPM_BUILD_ROOT
705 INSTALL_ROOT=$RPM_BUILD_ROOT
708 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
709 $RPM_BUILD_ROOT%{_libdir}/qt4/plugins/{crypto,network}
711 install plugins/sqldrivers/* $RPM_BUILD_ROOT%{_libdir}/qt4/plugins/sqldrivers
712 install bin/findtr tools/qvfb/qvfb $RPM_BUILD_ROOT%{_bindir}
714 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
715 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
717 install tools/qtconfig/images/appicon.png \
718 $RPM_BUILD_ROOT%{_pixmapsdir}/qtconfig.png
720 install tools/linguist/linguist/images/appicon.png \
721 $RPM_BUILD_ROOT%{_pixmapsdir}/linguist.png
723 install tools/assistant/images/assistant.png \
724 $RPM_BUILD_ROOT%{_pixmapsdir}/assistant.png
727 install tools/designer/src/designer/images/designer.png \
728 $RPM_BUILD_ROOT%{_pixmapsdir}/designer.png
731 %if %{with static_libs}
732 install %{_lib}/*Qt*.a $RPM_BUILD_ROOT%{_libdir}
736 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/designer.desktop
737 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
740 %if %{with dont_enable}
741 install -d $RPM_BUILD_ROOT%{_datadir}/locale/{ar,de,fr,ru,he,cs,sk}/LC_MESSAGES
742 install translations/qt_ar.qm $RPM_BUILD_ROOT%{_datadir}/locale/ar/LC_MESSAGES/qt.qm
743 install translations/qt_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/qt.qm
744 install translations/qt_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/qt.qm
745 install translations/qt_ru.qm $RPM_BUILD_ROOT%{_datadir}/locale/ru/LC_MESSAGES/qt.qm
746 install translations/qt_iw.qm $RPM_BUILD_ROOT%{_datadir}/locale/he/LC_MESSAGES/qt.qm
747 install translations/qt_cs.qm $RPM_BUILD_ROOT%{_datadir}/locale/cs/LC_MESSAGES/qt.qm
748 install translations/qt_sk.qm $RPM_BUILD_ROOT%{_datadir}/locale/sk/LC_MESSAGES/qt.qm
751 install tools/designer/designer/designer_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/designer.qm
752 install tools/designer/designer/designer_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/designer.qm
755 install tools/assistant/assistant_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/assistant.qm
756 install tools/assistant/assistant_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/assistant.qm
758 install tools/linguist/linguist/linguist_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/linguist.qm
759 install tools/linguist/linguist/linguist_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/linguist.qm
762 cd $RPM_BUILD_ROOT%{_includedir}/qt4/Qt
763 for f in ../Qt{3Support,Core,Gui,Network,OpenGL,Sql,Xml}/*
766 ln -sf $f `basename $f`
769 ln -sf ../../QtCore/arch/qatomic.h arch/qatomic.h
772 # Prepare some files list
774 RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null`
775 [ "$RESULT" == "" ] && return
776 r=`echo $RESULT | awk '{ print $1 }'`
779 echo "%%dir $2" >> $1.files
780 elif [ -x "$r" ] ; then
781 echo "%%attr(755,root,root) $2" >> $1.files
782 elif [ -f "$r" ]; then
783 echo "$2" >> $1.files
785 echo "Error generation devel files list!"
786 echo "$r: no such file or direcotry!"
793 echo "%%defattr(644,root,root,755)" > $MODULE-devel.files
794 ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.so"
795 ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.la"
796 ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.prl"
797 ifecho $MODULE-devel "%{_pkgconfigdir}/$MODULE*.pc"
798 for f in `find $RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE -printf "%%P "`
800 ifecho $MODULE-devel %{_includedir}/qt4/$MODULE/$f
801 ifecho $MODULE-devel %{_includedir}/qt4/Qt/$f
803 for f in $@; do ifecho $MODULE-devel $f; done
806 mkdevfl QtCore %{_includedir}/qt4 %{_includedir}/qt4/Qt \
807 %{_libdir}/libQtAssistantClient{.prl,_debug.prl} \
808 %{_libdir}/libQtDesigner{.prl,_debug.prl,Components{.prl,_debug.prl}}
816 echo "%defattr(644,root,root,755)" > examples.files
817 ifecho examples %{_examplesdir}/qt4
818 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4 -printf "%%P "`
820 ifecho examples %{_examplesdir}/qt4/$f
823 echo "%defattr(644,root,root,755)" > demos.files
824 ifecho demos "%{_examplesdir}/qt4-demos"
825 ifecho demos "%{_bindir}/qtdemo" >> demos.files
826 for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4-demos -printf "%%P "`
828 ifecho demos %{_examplesdir}/qt4-demos/$f
832 rm -rf $RPM_BUILD_ROOT
837 *******************************************************
840 * With qt 4.0.0 the single threaded version was *
841 * removed. Also the library is modular now so be *
842 * sure to check that you have every module you need. *
844 *******************************************************
846 %postun -n QtCore -p /sbin/ldconfig
848 %post -n QtGui -p /sbin/ldconfig
849 %postun -n QtGui -p /sbin/ldconfig
851 %post -n QtNetwork -p /sbin/ldconfig
852 %postun -n QtNetwork -p /sbin/ldconfig
854 %post -n QtOpenGL -p /sbin/ldconfig
855 %postun -n QtOpenGL -p /sbin/ldconfig
857 %post -n QtSql -p /sbin/ldconfig
858 %postun -n QtSql -p /sbin/ldconfig
860 %post -n QtXml -p /sbin/ldconfig
861 %postun -n QtXml -p /sbin/ldconfig
863 %post -n Qt3Support -p /sbin/ldconfig
864 %postun -n Qt3Support -p /sbin/ldconfig
866 %post assistant -p /sbin/ldconfig
867 %postun assistant -p /sbin/ldconfig
869 %post designer-libs -p /sbin/ldconfig
870 %postun designer-libs -p /sbin/ldconfig
873 %defattr(644,root,root,755)
874 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size)
875 %attr(755,root,root) %{_libdir}/libQtCore*.so.*
876 %dir %{_libdir}/qt4/plugins
877 %dir %{_libdir}/qt4/plugins/codecs
878 %dir %{_libdir}/qt4/plugins/crypto
879 %dir %{_libdir}/qt4/plugins/imageformats
880 %dir %{_libdir}/qt4/plugins/network
881 %dir %{_libdir}/qt4/plugins/sqldrivers
885 %defattr(644,root,root,755)
886 %attr(755,root,root) %{_libdir}/libQtGui*.so.*
887 %{_libdir}/qt4/plugins/codecs/*
888 %{_libdir}/qt4/plugins/imageformats/*
891 %defattr(644,root,root,755)
892 %attr(755,root,root) %{_libdir}/libQtNetwork*.so.*
895 %defattr(644,root,root,755)
896 %attr(755,root,root) %{_libdir}/libQtOpenGL*.so.*
899 %defattr(644,root,root,755)
900 %attr(755,root,root) %{_libdir}/libQtSql*.so.*
903 %files -n QtSql-mysql
904 %defattr(644,root,root,755)
905 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlmysql*.so
909 %files -n QtSql-pgsql
910 %defattr(644,root,root,755)
911 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlpsql*.so
915 %files -n QtSql-sqlite
916 %defattr(644,root,root,755)
917 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlite2*.so
921 %files -n QtSql-sqlite3
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlite*.so
927 %files -n QtSql-ibase
928 %defattr(644,root,root,755)
929 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlibase*.so
934 %defattr(644,root,root,755)
935 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlodbc*.so
939 %defattr(644,root,root,755)
940 %attr(755,root,root) %{_libdir}/libQtXml*.so.*
944 %defattr(644,root,root,755)
945 %attr(755,root,root) %{_bindir}/uic3
946 %attr(755,root,root) %{_libdir}/libQt3Support*.so.*
949 %defattr(644,root,root,755)
950 %attr(755,root,root) %{_bindir}/assistant
951 %attr(755,root,root) %{_libdir}/libQtAssistantClient*.so*
952 #%lang(de) %{_datadir}/locale/de/LC_MESSAGES/assistant.qm
953 #%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/assistant.qm
954 %{_desktopdir}/assistant.desktop
955 %{_pixmapsdir}/assistant.png
958 %defattr(644,root,root,755)
959 %attr(755,root,root) %{_bindir}/rcc
960 %attr(755,root,root) %{_bindir}/moc
961 %attr(755,root,root) %{_bindir}/qt3to4
962 %attr(755,root,root) %{_bindir}/uic
963 %{_datadir}/qt4/q3porting.xml
967 %defattr(644,root,root,755)
968 %attr(755,root,root) %{_libdir}/libQtDesigner*.so.*.*.*
969 %attr(755,root,root) %{_libdir}/qt4/plugins/designer/*.so
972 %defattr(644,root,root,755)
973 %attr(755,root,root) %{_bindir}/designer
974 #%dir %{_libdir}/%{name}/plugins-?t/designer
975 #%lang(de) %{_datadir}/locale/de/LC_MESSAGES/designer.qm
976 #%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/designer.qm
977 %{_desktopdir}/designer.desktop
978 %{_pixmapsdir}/designer.png
982 %defattr(644,root,root,755)
983 %attr(755,root,root) %{_bindir}/linguist
984 %attr(755,root,root) %{_bindir}/findtr
985 %attr(755,root,root) %{_bindir}/lrelease
986 %attr(755,root,root) %{_bindir}/lupdate
987 %attr(755,root,root) %{_bindir}/qm2ts
988 #%lang(de) %{_datadir}/locale/de/LC_MESSAGES/linguist.qm
989 #%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/linguist.qm
990 #%{_mandir}/man1/qm2ts.1*
991 #%{_mandir}/man1/lupdate*.1*
992 #%{_mandir}/man1/lrelease*.1*
993 %{_datadir}/qt4/phrasebooks
994 %{_desktopdir}/linguist.desktop
995 %{_pixmapsdir}/linguist.png
998 %defattr(644,root,root,755)
999 %attr(755,root,root) %{_bindir}/qmake
1000 %{_datadir}/qt4/mkspecs
1003 %defattr(644,root,root,755)
1004 %attr(755,root,root) %{_bindir}/qtconfig
1005 %{_desktopdir}/qtconfig.desktop
1006 %{_pixmapsdir}/qtconfig.png
1009 %defattr(644,root,root,755)
1010 %attr(755,root,root) %{_bindir}/qvfb
1013 %defattr(644,root,root,755)
1014 %{_docdir}/%{name}-doc
1016 %files -n QtCore-devel -f QtCore-devel.files
1017 %files -n QtGui-devel -f QtGui-devel.files
1018 %files -n QtNetwork-devel -f QtNetwork-devel.files
1019 %files -n QtOpenGL-devel -f QtOpenGL-devel.files
1020 %files -n QtSql-devel -f QtSql-devel.files
1021 %files -n QtXml-devel -f QtXml-devel.files
1022 %files -n Qt3Support-devel -f Qt3Support-devel.files
1024 %files demos -f demos.files
1025 %files examples -f examples.files