]> git.pld-linux.org Git - packages/qt4.git/blobdiff - qt4.spec
- removed obsolete deps
[packages/qt4.git] / qt4.spec
index 2b3890cef4e8812bb9126ac2eced5e3a62b258b9..c202420083102de3f0e1c54c9ec51c53db0229d2 100644 (file)
--- a/qt4.spec
+++ b/qt4.spec
@@ -1,11 +1,15 @@
 #
 # TODO:
-#              - better descriptions
+#      - QtUiTools to subpackage
+#         (headers in %{_includedir}/qt4/QtUiTools, but (static-only) lib is not installed)
+#       - qt4-designer-libs vs QtDesigner-{devel,static} naming inconsistency 
+#      - better descriptions
+#      - more cleanups
+#      - check if translations are available
 #
 # Conditional build:
 %bcond_with    nas             # enable NAS audio support
-# static libs disabled for now
-%bcond_with    static_libs     # don't build static libraries
+%bcond_without static_libs     # build static libraries
 %bcond_without cups            # disable CUPS support
 %bcond_without mysql           # don't build MySQL plugin
 %bcond_without odbc            # don't build unixODBC plugin
 %bcond_without designer        # don't build designer (it takes long)
 %bcond_without sqlite3         # don't build SQLite3 plugin
 %bcond_without sqlite          # don't build SQLite2 plugin
-%bcond_without ibase           # build ibase (InterBase/Firebird) plugin
-%bcond_without pch             # enable pch in qmake
-%bcond_with    dont_enable     # blocks translations, they are not yeat available
+%bcond_without ibase           # don't build ibase (InterBase/Firebird) plugin
+%bcond_without pch             # disable pch in qmake
+%bcond_with    sse             # use SSE instructions in gui/painting module
+%bcond_with    dont_enable     # blocks translations, they are not yet available
 
 %undefine      with_dont_enable
 
 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
 %undefine      with_ibase
 %endif
+
+%ifarch pentium3 pentium4 %{x8664}
+%define                with_sse        1
+%endif
+
 %define                _withsql        1
 %{!?with_sqlite3:%{!?with_sqlite:%{!?with_ibase:%{!?with_mysql:%{!?with_pgsql:%{!?with_odbc:%undefine _withsql}}}}}}
 
-%define                _snap           050513
-%define                _ver            4.0.0
-%define                _packager       djurban
-
 Summary:       The Qt GUI application framework
 Summary(es):   Biblioteca para ejecutar aplicaciones GUI Qt
 Summary(pl):   Biblioteka Qt do tworzenia GUI
 Summary(pt_BR):        Estrutura para rodar aplicações GUI Qt
 Name:          qt4
-Version:       %{_ver}
-Release:       1.%{_snap}.0.1
+Version:       4.1.0
+Release:       1.9
 License:       GPL/QPL
 Group:         X11/Libraries
-Source0:       http://ep09.pld-linux.org/~%{_packager}/kde/qt-copy-%{_snap}.tar.bz2
-#Source0:      http://wftp.tu-chemnitz.de/pub/Qt/source//%{_name}-x11-opensource-%{version}-b1.tar.bz2
-# Source0-md5: df41290b627b28dc00991bf1e0f7a440
-#Source1:      http://ep09.pld-linux.org/~%{_packager}/kde/%{_name}-copy-patches-040531.tar.bz2
-#Source1-md5   2e38e44b6ef26bfb8a7f3b6900ee53c0
+Source0:       ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-%{version}.tar.gz
+# Source0-md5: 0e3982a54f56b6420d3062b20524410a
 Source2:       qtconfig.desktop
 Source3:       designer.desktop
 Source4:       assistant.desktop
 Source5:       linguist.desktop
 Patch0:                %{name}-tools.patch
+Patch1:                %{name}-alpha.patch
+Patch2:                %{name}-buildsystem.patch
+Patch3:                %{name}-locale.patch
+Patch4:                %{name}-debug-and-release.patch
+Patch5:                %{name}-sse.patch
+Patch6:                %{name}-antialias.patch
+Patch7:                %{name}-support-cflags-with-commas.patch
+Patch8:                %{name}-build-lib-static.patch
 %if %{with dont_enable}
-Patch1:                qt-FHS.patch
+Patch9:                qt-FHS.patch
 # no tutorials exist
-Patch3:                qt-disable_tutorials.patch
+Patch10:       qt-disable_tutorials.patch
 %endif
-Patch2:                %{name}-buildsystem.patch
-Patch4:                %{name}-locale.patch
-Patch8:                %{name}-antialias.patch
 URL:           http://www.trolltech.com/products/qt/
-Icon:          qt.xpm
 %{?with_ibase:BuildRequires:   Firebird-devel}
+BuildRequires: OpenGL-GLU-devel
 %{?with_sqlite3:BuildRequires: sqlite3-devel}
-BuildRequires: OpenGL-devel
 # incompatible with bison
-BuildRequires: byacc
 %{?with_cups:BuildRequires:    cups-devel}
-BuildRequires: flex
-BuildRequires: freetype-devel >= 2.0.0
+BuildRequires: fontconfig-devel
+BuildRequires: freetype-devel >= 1:2.0.0
 %{?with_pch:BuildRequires:     gcc >= 5:3.4.0}
 BuildRequires: libjpeg-devel
 BuildRequires: libmng-devel >= 1.0.0
-BuildRequires: libpng-devel >= 1.0.8
+BuildRequires: libpng-devel >= 2:1.0.8
 BuildRequires: libstdc++-devel
 BuildRequires: libungif-devel
 %{?with_mysql:BuildRequires:   mysql-devel}
@@ -77,23 +83,27 @@ BuildRequires:      libungif-devel
 BuildRequires: perl-base
 %{?with_pgsql:BuildRequires:   postgresql-backend-devel}
 %{?with_pgsql:BuildRequires:   postgresql-devel}
-# uncomment this in rel. 1 - no time to upgrade rpm
-#BuildRequires:        rpmbuild(macros) >= 1.213
+BuildRequires: rpmbuild(macros) >= 1.213
 BuildRequires: sed >= 4.0
-%{?with_odbc:BuildRequires:    unixODBC-devel}
 %{?with_sqlite:BuildRequires:  sqlite-devel}
-BuildRequires: xcursor-devel
-BuildRequires: xft-devel
-BuildRequires: xrender-devel
+%{?with_odbc:BuildRequires:    unixODBC-devel}
+BuildRequires: xorg-lib-libSM-devel
+BuildRequires: xorg-lib-libXcursor-devel
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXi-devel
+BuildRequires: xorg-lib-libXinerama-devel
+BuildRequires: xorg-lib-libXrandr-devel
+BuildRequires: xorg-lib-libXrender-devel
 BuildRequires: zlib-devel
-Requires:      OpenGL
-Conflicts:     kdelibs <= 8:3.2-0.030602.1
 Obsoletes:     qt-extensions
 Obsoletes:     qt-utils
+Conflicts:     kdelibs <= 8:3.2-0.030602.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _noautoreqdep   libGL.so.1 libGLU.so.1
-%define         _noautostrip    '.*_debug\.so*'
+%define         _noautostrip    '.*_debug\\.so*'
+
+%define                specflags       -fno-strict-aliasing
 
 %description
 Qt is a complete C++ application development framework, which includes
@@ -129,90 +139,212 @@ wykorzystaniem Netscape LiveConnect.
 
 %package -n QtCore
 Summary:       Core classes used by other modules
-Group:         X11/Development/Libraries
+Summary(pl):   Podstawowe klasy u¿ywane przez inne modu³y
+Group:         X11/Libraries
 
 %description -n QtCore
 Core classes used by other modules.
 
+%description -n QtCore -l pl
+Podstawowe klasy u¿ywane przez inne modu³y.
+
 %package -n QtCore-devel
-Summary:       Core classes used by other modules
+Summary:       Core classes used by other modules - development files
+Summary(pl):   Podstawowe klasy u¿ywane przez inne modu³y - pliki programistyczne
 Group:         X11/Development/Libraries
-Requires:      QtCore >= %{epoch}:%{version}-%{release}
+Requires:      QtCore = %{version}-%{release}
+Requires:      libstdc++-devel
+Requires:      zlib-devel
 
 %description -n QtCore-devel
-Core classes used by other modules.
+Core classes used by other modules - development files.
+
+%description -n QtCore-devel -l pl
+Podstawowe klasy u¿ywane przez inne modu³y - pliki programistyczne.
+
+%package -n QtCore-static
+Summary:       Core classes used by other modules - static libraries
+Summary(pl):   Podstawowe klasy u¿ywane przez inne modu³y - biblioteki statyczne
+Group:         X11/Development/Libraries
+Requires:      QtCore-devel = %{version}-%{release}
+
+%description -n QtCore-static
+Core classes used by other modules - static libraries.
+
+%description -n QtCore-static -l pl
+Podstawowe klasy u¿ywane przez inne modu³y - biblioteki statyczne.
 
 %package -n QtGui
 Summary:       Graphical User Interface components
-Group:         X11/Development/Libraries
-Requires:      QtCore >= %{epoch}:%{version}-%{release}
+Summary(pl):   Komponenty graficznego interfejsu u¿ytkownika
+Group:         X11/Libraries
+Requires:      QtCore = %{version}-%{release}
+# two following because of some plugins
+Requires:      Qt3Support = %{version}-%{release}
+Requires:      QtSql = %{version}-%{release}
 
 %description -n QtGui
 Graphical User Interface components.
 
+%description -n QtGui -l pl
+Komponenty graficznego interfejsu u¿ytkownika.
+
 %package -n QtGui-devel
-Summary:       Graphical User Interface components
+Summary:       Graphical User Interface components - development files
+Summary(pl):   Komponenty graficznego interfejsu u¿ytkownika - pliki programistyczne
 Group:         X11/Development/Libraries
-Requires:      QtCore-devel >= %{epoch}:%{version}-%{release}
+Requires:      QtCore-devel = %{version}-%{release}
+Requires:      QtGui = %{version}-%{release}
+Requires:      freetype-devel >= 1:2.0.0
+Requires:      fontconfig-devel
+Requires:      libpng-devel >= 2:1.0.8
+Requires:      xorg-lib-libSM-devel
+Requires:      xorg-lib-libXcursor-devel
+Requires:      xorg-lib-libXext-devel
+Requires:      xorg-lib-libXi-devel
+Requires:      xorg-lib-libXinerama-devel
+Requires:      xorg-lib-libXrandr-devel
+Requires:      xorg-lib-libXrender-devel
 
 %description -n QtGui-devel
-Graphical User Interface components.
+Graphical User Interface components - development files.
+
+%description -n QtGui-devel -l pl
+Komponenty graficznego interfejsu u¿ytkownika - pliki programistyczne.
+
+%package -n QtGui-static
+Summary:       Graphical User Interface components - static libraries
+Summary(pl):   Komponenty graficznego interfejsu u¿ytkownika - biblioteki statyczne
+Group:         X11/Development/Libraries
+Requires:      QtGui-devel = %{version}-%{release}
+
+%description -n QtGui-static
+Graphical User Interface components - static libraries.
+
+%description -n QtGui-static -l pl
+Komponenty graficznego interfejsu u¿ytkownika - biblioteki statyczne.
 
 %package -n QtNetwork
 Summary:       Classes for network programming
-Group:         X11/Development/Libraries
-Requires:      QtCore >= %{epoch}:%{version}-%{release}
+Summary(pl):   Klasy do programowania sieciowego
+Group:         X11/Libraries
+Requires:      QtCore = %{version}-%{release}
 
 %description -n QtNetwork
 Classes for network programming.
 
+%description -n QtNetwork -l pl
+Klasy do programowania sieciowego.
+
 %package -n QtNetwork-devel
-Summary:       Classes for network programming
+Summary:       Classes for network programming - development files
+Summary(pl):   Klasy do programowania sieciowego - pliki programistyczne
 Group:         X11/Development/Libraries
-Requires:      QtCore-devel >= %{epoch}:%{version}-%{release}
+Requires:      QtCore-devel = %{version}-%{release}
+Requires:      QtNetwork = %{version}-%{release}
 
 %description -n QtNetwork-devel
-Classes for network programming.
+Classes for network programming - development files.
+
+%description -n QtNetwork-devel -l pl
+Klasy do programowania sieciowego - pliki programistyczne.
+
+%package -n QtNetwork-static
+Summary:       Classes for network programming - static libraries
+Summary(pl):   Klasy do programowania sieciowego - biblioteki statyczne
+Group:         X11/Development/Libraries
+Requires:      QtNetwork-devel = %{version}-%{release}
+
+%description -n QtNetwork-static
+Classes for network programming - static libraries.
+
+%description -n QtNetwork-static -l pl
+Klasy do programowania sieciowego - biblioteki statyczne.
 
 %package -n QtOpenGL
 Summary:       OpenGL support classes
-Group:         X11/Development/Libraries
-Requires:      QtCore >= %{epoch}:%{version}-%{release}
+Summary(pl):   Klasy wspomagaj±ce OpenGL
+Group:         X11/Libraries
+Requires:      QtCore = %{version}-%{release}
 
 %description -n QtOpenGL
 OpenGL support classes.
 
+%description -n QtOpenGL -l pl
+Klasy wspomagaj±ce OpenGL.
+
 %package -n QtOpenGL-devel
-Summary:       OpenGL support classes
+Summary:       OpenGL support classes - development files
+Summary(pl):   Klasy wspomagaj±ce OpenGL - pliki programistyczne
 Group:         X11/Development/Libraries
-Requires:      QtCore-devel >= %{epoch}:%{version}-%{release}
+Requires:      OpenGL-GLU-devel
+Requires:      QtCore-devel = %{version}-%{release}
+Requires:      QtOpenGL = %{version}-%{release}
 
 %description -n QtOpenGL-devel
-OpenGL support classes.
+OpenGL support classes - development files.
+
+%description -n QtOpenGL-devel -l pl
+Klasy wspomagaj±ce OpenGL - pliki programistyczne.
+
+%package -n QtOpenGL-static
+Summary:       OpenGL support classes - static libraries
+Summary(pl):   Klasy wspomagaj±ce OpenGL - biblioteki statyczne
+Group:         X11/Development/Libraries
+Requires:      QtOpenGL-devel = %{version}-%{release}
+
+%description -n QtOpenGL-static
+OpenGL support classes - static libraries.
+
+%description -n QtOpenGL-devel -l pl
+Klasy wspomagaj±ce OpenGL - biblioteki statyczne.
 
 %package -n QtSql
 Summary:       Classes for database integration using SQL
-Group:         X11/Development/Libraries
-Requires:      QtCore >= %{epoch}:%{version}-%{release}
+Summary(pl):   Klasy do integracji z bazami danych przy u¿yciu SQL
+Group:         X11/Libraries
+Requires:      QtCore = %{version}-%{release}
 
 %description -n QtSql
 Classes for database integration using SQL.
 
+%description -n QtSql -l pl
+Klasy do integracji z bazami danych przy u¿yciu SQL.
+
 %package -n QtSql-devel
-Summary:       Classes for database integration using SQL
+Summary:       Classes for database integration using SQL - development files
+Summary(pl):   Klasy do integracji z bazami danych przy u¿yciu SQL - pliki programistyczne
 Group:         X11/Development/Libraries
-Requires:      QtCore-devel >= %{epoch}:%{version}-%{release}
+Requires:      QtCore-devel = %{version}-%{release}
+Requires:      QtSql = %{version}-%{release}
 
 %description -n QtSql-devel
-Classes for database integration using SQL.
+Classes for database integration using SQL - development files.
+
+%description -n QtSql-devel -l pl
+Klasy do integracji z bazami danych przy u¿yciu SQL - pliki
+programistyczne.
+
+%package -n QtSql-static
+Summary:       Classes for database integration using SQL - static libraries
+Summary(pl):   Klasy do integracji z bazami danych przy u¿yciu SQL - biblioteki statyczne
+Group:         X11/Development/Libraries
+Requires:      QtSql-devel = %{version}-%{release}
+
+%description -n QtSql-static
+Classes for database integration using SQL - static libraries.
+
+%description -n QtSql-static -l pl
+Klasy do integracji z bazami danych przy u¿yciu SQL - biblioteki
+statyczne. programistyczne.
 
 %package -n QtSql-ibase
 Summary:       Database plugin for InterBase/Firebird Qt support
 Summary(pl):   Wtyczka InterBase/Firebird do Qt
 Summary(pt_BR):        Plugin de suporte a InterBase/Firebird para Qt
-Group:         X11/Development/Libraries
-Provides:      QtSql-backend = %{epoch}:%{version}-%{release}
-Requires:      QtSql >= %{epoch}:%{version}-%{release}
+Group:         X11/Libraries
+Requires:      QtSql = %{version}-%{release}
+Provides:      QtSql-backend = %{version}-%{release}
 
 %description -n QtSql-ibase
 This package contains a plugin for accessing Interbase/Firebird
@@ -229,9 +361,9 @@ Plugin de suporte a InterBase/Firebird para Qt.
 Summary:       Database plugin for MySQL Qt support
 Summary(pl):   Wtyczka MySQL do Qt
 Summary(pt_BR):        Plugin de suporte a MySQL para Qt
-Group:         X11/Development/Libraries
-Provides:      QtSql-backend = %{epoch}:%{version}-%{release}
-Requires:      QtSql >= %{epoch}:%{version}-%{release}
+Group:         X11/Libraries
+Requires:      QtSql = %{version}-%{release}
+Provides:      QtSql-backend = %{version}-%{release}
 
 %description -n QtSql-mysql
 This package contains a plugin for accessing MySQL database via the
@@ -248,9 +380,9 @@ Plugin de suporte a MySQL para Qt.
 Summary:       Database plugin for ODBC Qt support
 Summary(pl):   Wtyczka ODBC do Qt
 Summary(pt_BR):        Plugin de suporte a ODBC para Qt
-Group:         X11/Development/Libraries
-Provides:      QtSql-backend = %{epoch}:%{version}-%{release}
-Requires:      QtSql >= %{epoch}:%{version}-%{release}
+Group:         X11/Libraries
+Requires:      QtSql = %{version}-%{release}
+Provides:      QtSql-backend = %{version}-%{release}
 
 %description -n QtSql-odbc
 This package contains a plugin for accessing unixODBC services via the
@@ -267,9 +399,9 @@ Plugin de suporte a ODBC para Qt.
 Summary:       Database plugin for PostgreSQL Qt support
 Summary(pl):   Wtyczka PostgreSQL do Qt
 Summary(pt_BR):        Plugin de suporte a PostgreSQL para Qt
-Group:         X11/Development/Libraries
-Provides:      QtSql-backend = %{epoch}:%{version}-%{release}
-Requires:      QtSql >= %{epoch}:%{version}-%{release}
+Group:         X11/Libraries
+Requires:      QtSql = %{version}-%{release}
+Provides:      QtSql-backend = %{version}-%{release}
 
 %description -n QtSql-pgsql
 This package contains a plugin for accessing PostgreSQL database via
@@ -283,32 +415,31 @@ danych PostgreSQL poprzez klasy QSql.
 Plugin de suporte a PostgreSQL para Qt.
 
 %package -n QtSql-sqlite
-Summary:       QtSql sqlite plugin
-Summary:       Database plugin for SQLite Qt support
-Summary(pl):   Wtyczka SQLite do Qt
-Summary(pt_BR):        Plugin de suporte a SQLite para Qt
-Group:         X11/Development/Libraries
-Provides:      QtSql-backend = %{epoch}:%{version}-%{release}
-Requires:      QtSql >= %{epoch}:%{version}-%{release}
+Summary:       Database plugin for SQLite 2.x Qt support
+Summary(pl):   Wtyczka SQLite 2.x do Qt
+Summary(pt_BR):        Plugin de suporte a SQLite 2.x para Qt
+Group:         X11/Libraries
+Requires:      QtSql = %{version}-%{release}
+Provides:      QtSql-backend = %{version}-%{release}
 
 %description -n QtSql-sqlite
-This package contains a plugin for using the SQLite library (which
+This package contains a plugin for using the SQLite 2.x library (which
 allows to acces virtually any SQL database) via the QSql classes.
 
 %description -n QtSql-sqlite -l pl
 Ten pakiet zawiera wtyczki do Qt umo¿liwiaj±ce korzystanie z baz
-danych SQLite poprzez klasy QSql.
+danych SQLite 2.x poprzez klasy QSql.
 
 %description -n QtSql-sqlite -l pt_BR
-Plugin de suporte a SQLite para Qt.
+Plugin de suporte a SQLite 2.x para Qt.
 
 %package -n QtSql-sqlite3
 Summary:       Database plugin for SQLite3 Qt support
 Summary(pl):   Wtyczka SQLite3 do Qt
 Summary(pt_BR):        Plugin de suporte a SQLite3 para Qt
-Group:         X11/Development/Libraries
-Provides:      QtSql-backend = %{epoch}:%{version}-%{release}
-Requires:      QtSql >= %{epoch}:%{version}-%{release}
+Group:         X11/Libraries
+Requires:      QtSql = %{version}-%{release}
+Provides:      QtSql-backend = %{version}-%{release}
 
 %description -n QtSql-sqlite3
 This package contains a plugin for using the SQLite3 library (which
@@ -321,37 +452,178 @@ danych SQLite3 poprzez klasy QSql.
 %description -n QtSql-sqlite3 -l pt_BR
 Plugin de suporte a SQLite3 para Qt.
 
+%package -n QtSvg
+Summary:       SVG support
+Summary(pl):   Wsparcie dla SVG
+Group:         X11/Libraries
+Requires:      QtCore = %{version}-%{release}
+
+%description -n QtSvg
+SVG support.
+
+%description -n QtSvg -l pl
+Wsparcie dla SVG.
+
+%package -n QtSvg-devel
+Summary:       SVG support - development files
+Summary(pl):   Wsparcie dla SVG - pliki programistyczne
+Group:         X11/Development/Libraries
+Requires:      QtCore-devel = %{version}-%{release}
+Requires:      QtSvg = %{version}-%{release}
+
+%description -n QtSvg-devel
+SVG support - development files.
+
+%description -n QtSvg-devel -l pl
+Wsparcie dla SVG - pliki programistyczne.
+
+%package -n QtSvg-static
+Summary:       SVG support - static libraries
+Summary(pl):   Wsparcie dla SVG - biblioteki statyczne
+Group:         X11/Development/Libraries
+Requires:      QtSvg-devel = %{version}-%{release}
+
+%description -n QtSvg-static
+SVG support - static libraries.
+
+%description -n QtSvg-static -l pl
+Wsparcie dla SVG - biblioteki statyczne.
+
+%package -n QtTest
+Summary:       Test framework
+Summary(pl):   Szkielet testów
+Group:         X11/Libraries
+Requires:      QtCore = %{version}-%{release}
+
+%description -n QtTest
+Test framework.
+
+%description -n QtTest -l pl
+Szkielet testów.
+
+%package -n QtTest-devel
+Summary:       Test framework - development files
+Summary(pl):   Szkielet testów - pliki programistyczne
+Group:         X11/Development/Libraries
+Requires:      QtCore-devel = %{version}-%{release}
+Requires:      QtTest = %{version}-%{release}
+
+%description -n QtTest-devel
+Test framework - development files.
+
+%description -n QtTest-devel -l pl
+Szkielet testów - pliki programistyczne.
+
 %package -n QtXml
 Summary:       Classes for handling XML
-Group:         X11/Development/Libraries
-Requires:      QtCore >= %{epoch}:%{version}-%{release}
+Summary(pl):   Klasy do obs³ugi XML-a
+Group:         X11/Libraries
+Requires:      QtCore = %{version}-%{release}
 
 %description -n QtXml
 Classes for handling XML.
 
+%description -n QtXml -l pl
+Klasy do obs³ugi XML-a.
+
 %package -n QtXml-devel
-Summary:       Classes for handling XML
+Summary:       Classes for handling XML - development files
+Summary(pl):   Klasy do obs³ugi XML-a - pliki programistyczne
 Group:         X11/Development/Libraries
-Requires:      QtCore-devel >= %{epoch}:%{version}-%{release}
+Requires:      QtCore-devel = %{version}-%{release}
+Requires:      QtXml = %{version}-%{release}
 
 %description -n QtXml-devel
-Classes for handling XML.
+Classes for handling XML - development files.
 
-%package -n Qt3Support
-Summary:       Qt3 compat library
+%description -n QtXml-devel -l pl
+Klasy do obs³ugi XML-a - pliki programistyczne.
+
+%package -n QtXml-static
+Summary:       Classes for handling XML - static libraries
+Summary(pl):   Klasy do obs³ugi XML-a - biblioteki statyczne
 Group:         X11/Development/Libraries
-Requires:      QtCore >= %{epoch}:%{version}-%{release}
+Requires:      QtXml-devel = %{version}-%{release}
+
+%description -n QtXml-static
+Classes for handling XML - static libraries.
+
+%description -n QtXml-static -l pl
+Klasy do obs³ugi XML-a - biblioteki statyczne.
+
+%package -n Qt3Support
+Summary:       Qt3 compatibility library
+Summary(pl):   Biblioteka kompatybilno¶ci z Qt3
+Group:         X11/Libraries
+Requires:      QtCore = %{version}-%{release}
 
 %description -n Qt3Support
-Qt3 compat library.
+Qt3 compatibility library.
+
+%description -n Qt3Support -l pl
+Biblioteka kompatybilno¶ci z Qt3.
 
 %package -n Qt3Support-devel
-Summary:       Qt3 compat library
+Summary:       Qt3 compatibility library - development files
+Summary(pl):   Biblioteka kompatybilno¶ci z Qt3 - pliki programistyczne
 Group:         X11/Development/Libraries
-Requires:      QtCore-devel >= %{epoch}:%{version}-%{release}
+Requires:      Qt3Support = %{version}-%{release}
+Requires:      QtCore-devel = %{version}-%{release}
 
 %description -n Qt3Support-devel
-Qt3 compat library.
+Qt3 compatibility library - development files.
+
+%description -n Qt3Support-devel -l pl
+Biblioteka kompatybilno¶ci z Qt3 - pliki programistyczne.
+
+%package -n Qt3Support-static
+Summary:       Qt3 compatibility library - static libraries
+Summary(pl):   Biblioteka kompatybilno¶ci z Qt3 - biblioteki statyczne
+Group:         X11/Development/Libraries
+Requires:      Qt3Support-devel = %{version}-%{release}
+
+%description -n Qt3Support-static
+Qt3 compatibility library - static libraries.
+
+%description -n Qt3Support-static -l pl
+Biblioteka kompatybilno¶ci z Qt3 - biblioteki statyczne.
+
+%package -n QtAssistant
+Summary:       Qt Assistant client library
+Summary(pl):   Biblioteka kliencka Qt Assistant
+Group:         X11/Development/Libraries
+
+%description -n QtAssistant
+This library allows to use Qt Assistant as an application's help tool.
+
+%description -n QtAssistant -l pl
+Ta biblioteka umo¿liwia wykorzystanie Qt Assistanta jako narzêdzie
+pomocy w aplikacjach.
+
+%package -n QtAssistant-devel
+Summary:       Qt Assistant client library - development files
+Summary(pl):   Biblioteka kliencka Qt Assistant - pliki programistyczne
+Group:         X11/Development/Libraries
+Requires:      QtAssistant = %{version}-%{release}
+Requires:      QtNetwork-devel = %{version}-%{release}
+
+%description -n QtAssistant-devel
+Development files for Qt Assistant client library.
+
+%description -n QtAssistant-devel -l pl
+Pliki programistyczne biblioteki klienckiej Qt Assistant.
+
+%package -n QtAssistant-static
+Summary:       Static Qt Assistant client library
+Summary(pl):   Statyczna biblioteka kliencka Qt Assistant
+Group:         X11/Development/Libraries
+Requires:      QtAssistant-devel = %{version}-%{release}
+
+%description -n QtAssistant-static
+Static Qt Assistant client library.
+
+%description -n QtAssistant-static -l pl
+Statyczna biblioteka kliencka Qt Assistant.
 
 %package assistant
 Summary:       Qt documentation browser
@@ -369,20 +641,26 @@ indeksowania, dodawania zak
 
 %package build
 Summary:       Build tools for Qt4
-Group:         X11/Development/Libraries
-Requires:      QtCore >= %{epoch}:%{version}-%{release}
-Requires:      QtXml >= %{epoch}:%{version}-%{release}
+Summary(pl):   Narzêdzia do budowania dla Qt4
+Group:         X11/Development/Tools
+Requires:      QtCore = %{version}-%{release}
+Requires:      QtXml = %{version}-%{release}
 
 %description build
 This package includes the Qt resource compiler (rcc), meta objects
 compiler (moc), user interface compiler (uic) and qt3to4 include names
 converter.
 
+%description build -l pl
+Ten pakiet zawiera kompilator zasobów Qt (rcc), kompilator
+metaobiektów (moc), kompilator interfejsów u¿ytkownika (uic) oraz
+konwerter nazw plików nag³ówkowych qt3to4.
+
 %package designer
 Summary:       IDE used for GUI designing with Qt library
 Summary(pl):   IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt
 Group:         X11/Applications
-Requires:      %{name}-designer-libs = %{epoch}:%{version}-%{release}
+Requires:      %{name}-designer-libs = %{version}-%{release}
 
 %description designer
 An advanced tool used for GUI designing with Qt library.
@@ -403,6 +681,33 @@ Libraries used by the Qt GUI Designer.
 Biblioteki wykorzystywane przez narzêdzie projektowania interfejsu
 graficznego - Qt Designer.
 
+%package -n QtDesigner-devel
+Summary:       IDE used for GUI designing with Qt library - development files
+Summary(pl):   IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt - pliki programistyczne
+Group:         X11/Development/Libraries
+Requires:      %{name}-designer-libs = %{version}-%{release}
+Requires:      QtCore-devel = %{version}-%{release}
+
+%description -n QtDesigner-devel
+IDE used for GUI designing with Qt library - development files.
+
+%description -n QtDesigner-devel -l pl
+IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt - pliki
+programistyczne.
+
+%package -n QtDesigner-static
+Summary:       IDE used for GUI designing with Qt library - static libraries
+Summary(pl):   IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt - biblioteki statyczne
+Group:         X11/Development/Libraries
+Requires:      QtDesigner-devel = %{version}-%{release}
+
+%description -n QtDesigner-static
+IDE used for GUI designing with Qt library - static libraries.
+
+%description -n QtDesigner-static -l pl
+IDE s³u¿±ce do projektowania GUI za pomoc± biblioteki Qt - biblioteki
+statyczne.
+
 %package linguist
 Summary:       Translation helper for Qt
 Summary(pl):   Aplikacja u³atwiaj±ca t³umaczenie aplikacji oparty o Qt
@@ -423,47 +728,58 @@ przeznaczone do t
 Gdy jeden z nich jest ju¿ przet³umaczony, automatycznie przechodzi do
 nastêpnego, a¿ wszystkie bêd± przet³umaczone.
 
-%package -n qmake
+%package qmake
 Summary:       Qt makefile generator
 Summary(pl):   Generator plików makefile dla aplikacji Qt
 Group:         X11/Development/Tools
+Obsoletes:     qmake
 
-%description -n qmake
+%description qmake
 A powerful makefile generator. It can create makefiles on any platform
 from a simple .pro definitions file.
 
-%description -n qmake -l pl
+%description qmake -l pl
 Rozbudowany generator plików makefile. Potrafi tworzyæ pliki makefile
 na ka¿dej platformi na podstawie ³atwego w przygotowaniu pliku .pro.
 
-%package -n qtconfig
+%package qtconfig
 Summary:       Qt widgets configuration tool
 Summary(pl):   Narzêdzie do konfigurowania widgetów Qt
 Group:         X11/Applications
+Obsoletes:     qtconfig
 
-%description -n qtconfig
+%description qtconfig
 A tool for configuring look and behavior of Qt widgets.
 
-%description -n qtconfig -l pl
+%description qtconfig -l pl
 Narzêdie do konfiguracji wygl±du i zachowania widgetów Qt.
 
 %package -n qvfb
 Summary:       Qt Virtual framebuffer
+Summary(pl):   Wirtualny framebuffer dla Qt
 Group:         X11/Development/Libraries
 
 %description -n qvfb
-Qt Virtual framebuffer alllows you to run Qt/Embedded applications in
-XWindow.
+Qt Virtual framebuffer allows you to run Qt/Embedded applications in X
+window.
+
+%description -n qvfb -l pl
+Qt Virtual framebuffer pozwala na uruchamianie aplikacji Qt/Embedded w
+okienku X.
 
 %package demos
-Summary:       Demos of new qt4 features
+Summary:       Demos of new Qt4 features
+Summary(pl):   Programy demonstruj±ce nowe mo¿liwo¶ci Qt4
 Group:         X11/Development/Libraries
-Requires:      QtCore >= %{epoch}:%{version}-%{release}
-Requires:      QtXml >= %{epoch}:%{version}-%{release}
+Requires:      QtCore %{version}-%{release}
+Requires:      QtXml %{version}-%{release}
 
 %description demos
 Demos are spiders that fly.
 
+%description demos -l pl
+Dema to lataj±ce paj±ki.
+
 %package doc
 Summary:       Qt Documentation in HTML format
 Summary(pl):   Dokumentacja Qt w formacie HTML
@@ -484,7 +800,7 @@ Group:              X11/Development/Libraries
 Qt documentation in man pages format.
 
 %description man -l pl
-Dokumentacja qt w formacie stron man.
+Dokumentacja Qt w formacie stron man.
 
 %package examples
 Summary:       Example programs bundled with Qt
@@ -493,7 +809,7 @@ Summary(pt_BR):     Programas exemplo desenvolvidos com o Qt
 Group:         X11/Development/Libraries
 # no it does not , we cant be sure the user wants to compile them right?
 # he might just want to take a look, anwyay no single devel package now
-#Requires:     %{name}-devel = %{epoch}:%{version}-%{release}
+#Requires:     %{name}-devel = %{version}-%{release}
 
 %description examples
 Example programs bundled with Qt version.
@@ -505,89 +821,81 @@ Example programs bundled with Qt version.
 Programas exemplo para o Qt versão.
 
 %prep
-#setup -q -n %{_name}-copy-%{_snap}
-%setup -q -n qt-copy
+%setup -q -n qt-x11-opensource-src-%{version}
 %patch0 -p1
-%if %{with dont_enable}
 %patch1 -p1
+%patch2 -p1
 %patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%if %{with dont_enable}
+%patch9 -p1
+%patch10 -p1
 %endif
-%patch2 -p1 -b .niedakh
-%patch4 -p1 -b .niedakh
-#patch7 -p1 -b .niedakh
-%patch8 -p1 -b .niedakh
-
-#cat >> patches/DISABLED <<EOF
-#0005
-#0039
-#0042
-#0043
-#0047
-#EOF
-#./apply_patches
+
+sed -i -e 's,usr/X11R6/,usr/,' mkspecs/linux-g*/qmake.conf
 
 # change QMAKE_CFLAGS_RELEASE to build
 # properly optimized libs
-plik="mkspecs/linux-g++/qmake.conf"
 
-perl -pi -e "
-       s|/usr/X11R6/lib|/usr/X11R6/%{_lib}|;
-       s|/usr/lib|%{_libdir}|;
-       s|\\(QTDIR\\)/lib|\\(QTDIR\\)/%{_lib}|;
-       " $plik
+if [ "%{_lib}" != "lib" ] ; then
+       cfgf="mkspecs/linux-g++-64/qmake.conf"
+else
+       cfgf="mkspecs/linux-g++/qmake.conf"
+fi
 
-cat $plik \
+perl -pi -e "
+       s|QMAKE_CC.*=.*gcc|QMAKE_CC = %{__cc}|;
+       s|QMAKE_CXX.*=.*g\+\+|QMAKE_CXX = %{__cxx}|;
+       s|QMAKE_LINK.*=.*g\+\+|QMAKE_LINK = %{__cxx}|;
+       s|QMAKE_LINK_SHLIB.*=.*g\+\+|QMAKE_LINK_SHLIB = %{__cxx}|;
+       s|QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT\t\t= %{_includedir}/qt4|;
+       " $cfgf
+
+cat $cfgf \
        |grep -v QMAKE_CFLAGS_RELEASE \
        |grep -v QMAKE_CXXFLAGS_RELEASE \
        |grep -v QMAKE_CFLAGS_DEBUG \
        |grep -v QMAKE_CXXFLAGS_DEBUG \
-       > $plik.1
+       > $cfgf.1
 
-mv $plik.1 $plik
-echo >> $plik
-echo -e "QMAKE_CFLAGS_RELEASE\t=\t%{rpmcflags}" >> $plik
-echo -e "QMAKE_CXXFLAGS_RELEASE\t=\t%{rpmcflags}" >> $plik
-echo -e "QMAKE_CFLAGS_DEBUG\t=\t%{debugcflags}" >> $plik
-echo -e "QMAKE_CXXFLAGS_DEBUG\t=\t%{debugcflags}" >> $plik
+mv $cfgf.1 $cfgf
+echo >> $cfgf
+echo -e "QMAKE_CFLAGS_RELEASE\t= %{rpmcflags}" >> $cfgf
+echo -e "QMAKE_CXXFLAGS_RELEASE\t= %{rpmcxxflags}" >> $cfgf
+echo -e "QMAKE_CFLAGS_DEBUG\t= %{debugcflags}" >> $cfgf
+echo -e "QMAKE_CXXFLAGS_DEBUG\t= %{debugcflags}" >> $cfgf
 
 %build
-export QTDIR=`/bin/pwd`
-export YACC='byacc -d'
-export PATH=$QTDIR/bin:$PATH
-if test -n "$LD_LIBRARY_PATH"; then
-export LD_LIBRARY_PATH=$QTDIR/%{_lib}:$LD_LIBRARY_PATH
-else
-export LD_LIBRARY_PATH=$QTDIR/lib
-fi
-
-export QMAKESPEC=$QTDIR/mkspecs/linux-g++
-
-if [ "%{_lib}" != "lib" ] ; then
-       ln -s lib "%{_lib}"
-fi
-
 # pass OPTFLAGS to build qmake itself with optimization
 export OPTFLAGS="%{rpmcflags}"
-
-#%{__make} -f Makefile.cvs
+export PATH=$PWD/bin:$PATH
 
 ##################################
 # DEFAULT OPTIONS FOR ALL BUILDS #
 ##################################
 
-DEFAULTOPT=" \
+COMMONOPT=" \
        -DQT_CLEAN_NAMESPACE \
-       -DQT_COMPAT \
        -verbose \
        -prefix %{_prefix} \
-       -libdir %{_libdir} \
-       -headerdir %{_includedir}/qt \
-       -datadir %{_datadir}/qt \
        -docdir %{_docdir}/%{name}-doc \
-       -sysconfdir %{_sysconfdir}/qt \
+       -headerdir %{_includedir}/qt4 \
+       -libdir %{_libdir} \
+       -L%{_libdir} \
+       -bindir %{_bindir} \
+       -plugindir %{_libdir}/qt4/plugins \
+       -datadir %{_datadir}/qt4 \
        -translationdir %{_datadir}/locale/ \
+       -sysconfdir %{_sysconfdir}/qt4 \
+       -examplesdir %{_examplesdir}/qt4 \
+       -demosdir %{_examplesdir}/qt4-demos \
        -fast \
        -%{!?with_pch:no-}pch \
+       -%{!?with_sse:no-}sse \
        -qt-gif \
        -system-libjpeg \
        -system-libpng \
@@ -595,25 +903,26 @@ DEFAULTOPT=" \
        -no-exceptions \
        -I%{_includedir}/postgresql/server \
        -I%{_includedir}/mysql \
-       %{!?with_cups:-no-cups} \
+       %{?with_cups:-cups} \
        %{?with_nas:-system-nas-sound} \
-       %{?with_nvidia:-dlopen-opengl} \
-       %{?with_pch:-pch} \
        %{?debug:-debug} \
-       -xcursor \
-       -xshape \
-       -xrender \
+       %{!?debug:-release} \
+       -qt3support \
        -fontconfig \
-       -xkb \
+       -nis \
        -sm \
-       -nis"
+       -tablet \
+       -xcursor \
+       -xkb \
+       -xrender \
+       -xshape"
 
 ##################################
 #      STATIC MULTI-THREAD       #
 ##################################
 
 %if %{with static_libs}
-STATICOPT=" \
+OPT=" \
        %{?with_mysql:-qt-sql-mysql} \
        %{?with_odbc:-qt-sql-odbc} \
        %{?with_pgsql:-qt-sql-psql} \
@@ -622,25 +931,23 @@ STATICOPT=" \
        %{?with_ibase:-qt-sql-ibase} \
        -static"
 
-./configure \
-       $DEFAULTOPT \
-       $STATICOPT \
-       <<_EOF_
-yes
-_EOF_
-
-# Do not build tutorial and examples. Provide them as sources.
-%{__make} sub-qmake sub-src
+echo "yes" | ./configure $COMMONOPT $OPT
 
-# This will not remove previously compiled libraries.
-%{__make} clean
+%{__make} -C src
+%{__make} -C tools/assistant/lib
+%{__make} -C tools/designer/src/lib
+if [ ! -d staticlib ]; then
+       mkdir staticlib
+       cp -a lib/*.a staticlib
+fi
+%{__make} confclean
 %endif
 
 ##################################
 #      SHARED MULTI-THREAD       #
 ##################################
 
-SHAREDOPT=" \
+OPT=" \
        %{?with_mysql:-plugin-sql-mysql} \
        %{?with_odbc:-plugin-sql-odbc} \
        %{?with_pgsql:-plugin-sql-psql} \
@@ -648,78 +955,51 @@ SHAREDOPT=" \
        %{?with_sqlite:-plugin-sql-sqlite2} \
        %{?with_ibase:-plugin-sql-ibase}"
 
-./configure \
-       $DEFAULTOPT \
-       $SHAREDOPT \
-       -plugindir %{_libdir}/qt4/plugins \
-       <<_EOF_
-yes
-_EOF_
-
-%if 0
-%if %{with dont_enable}
-%if %{without designer}
-grep -v designer tools/tools.pro > tools/tools.pro.1
-mv tools/tools.pro{.1,}
-%{__make} -C tools/designer/uic \
-       UIC="LD_PRELOAD=$QTDIR/%{_lib}/libqt-mt.so.3 $QTDIR/bin/uic -L $QTDIR/plugins"
-%endif
-%endif
+echo "yes" | ./configure $COMMONOPT $OPT
 
-# Do not build tutorial and examples. Provide them as sources.
-%{__make} sub-src-all-ordered
+%{__make}
+%{__make} \
+       sub-tools-all-ordered \
+       sub-demos-all-ordered \
+       sub-examples-all-ordered
 
-cd tools/qtconfig
-$QTDIR/bin/uic previewwidgetbase.ui -o ui_previewwidgetbase.h
-cd -
-%{__make} sub-tools-all-ordered sub-demos-all-ordered
-%endif
 %if %{with dont_enable}
 %if %{with designer}
 cd tools/designer/designer
 lrelease designer_de.ts
 lrelease designer_fr.ts
+cd -
 %endif
-cd $QTDIR/tools/assistant
+cd tools/assistant
 lrelease assistant_de.ts
 lrelease assistant_fr.ts
-cd $QTDIR/tools/linguist/linguist
+cd -
+cd tools/linguist/linguist
 lrelease linguist_de.ts
 lrelease linguist_fr.ts
-cd $QTDIR
+cd -
 %endif
 
+# kill -L/inside/builddir from *.la and *.pc (bug #77152)
+%{__sed} -i -e "s,-L$PWD/lib,,g" lib/*.{la,pc,prl}
+
 %install
 rm -rf $RPM_BUILD_ROOT
-
-export QTDIR=`/bin/pwd`
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
 
 %{__make} install \
        INSTALL_ROOT=$RPM_BUILD_ROOT
 
 install -d \
-       $RPM_BUILD_ROOT%{_sysconfdir}/qt \
-       $RPM_BUILD_ROOT%{_libdir}/qt4/plugins/{crypto,network} \
-       $RPM_BUILD_ROOT%{_examplesdir}/%{name}/lib \
-       $RPM_BUILD_ROOT%{_mandir}/man{1,3} \
-       $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
-
-install bin/findtr \
-       tools/qvfb/qvfb \
-       $RPM_BUILD_ROOT%{_bindir}
-
-mv -f $RPM_BUILD_ROOT{%{_prefix}/qt.conf,%{_sysconfdir}/qt}
-
-# we fix qmakespecs. from now QMAKE_INCDIR_QT becomes %{_includedir}/qt4
-perl -pi -e "
-       s|(QMAKE_INCDIR_QT\\s*=\\s*\\\$\\(QTDIR\\)/include)|\$1/qt4|
-       " $RPM_BUILD_ROOT/%{_datadir}/qt4/mkspecs/linux-g++/qmake.conf
+       $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
+       $RPM_BUILD_ROOT%{_libdir}/qt4/plugins/{crypto,network}
 
-#tools/{msg2qm/msg2qm,mergetr/mergetr}
-#      $RPM_BUILD_ROOT%{_bindir}
+install plugins/sqldrivers/* $RPM_BUILD_ROOT%{_libdir}/qt4/plugins/sqldrivers
+install bin/findtr tools/qvfb/qvfb $RPM_BUILD_ROOT%{_bindir}
 
 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
 
 install tools/qtconfig/images/appicon.png \
        $RPM_BUILD_ROOT%{_pixmapsdir}/qtconfig.png
@@ -727,88 +1007,133 @@ install tools/qtconfig/images/appicon.png \
 install tools/linguist/linguist/images/appicon.png \
        $RPM_BUILD_ROOT%{_pixmapsdir}/linguist.png
 
-install tools/assistant/images/appicon.png \
+install tools/assistant/images/assistant.png \
        $RPM_BUILD_ROOT%{_pixmapsdir}/assistant.png
 
 %if %{with designer}
+install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
 install tools/designer/src/designer/images/designer.png \
-$RPM_BUILD_ROOT%{_pixmapsdir}/designer.png
+       $RPM_BUILD_ROOT%{_pixmapsdir}/designer.png
 %endif
 
 %if %{with static_libs}
-install %{_lib}/libqt*.a $RPM_BUILD_ROOT%{_libdir}
+install staticlib/*.a $RPM_BUILD_ROOT%{_libdir}
 %endif
 
-%if %{with designer}
-install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/designer.desktop
-install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
-install bin/uic $RPM_BUILD_ROOT%{_bindir}
-%endif
-
-install tools/linguist/{qm2ts,lrelease,lupdate}/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
-
-# not yet available
-#install doc/man/man1/*.1      $RPM_BUILD_ROOT%{_mandir}/man1
-#install doc/man/man3/*.3qt    $RPM_BUILD_ROOT%{_mandir}/man3
-
-%if %{with dont_enable}
-install -d $RPM_BUILD_ROOT%{_datadir}/locale/{ar,de,fr,ru,he,cs,sk}/LC_MESSAGES
+install -d $RPM_BUILD_ROOT%{_datadir}/locale/{ar,cs,de,fr,ru,sk}/LC_MESSAGES
 install translations/qt_ar.qm $RPM_BUILD_ROOT%{_datadir}/locale/ar/LC_MESSAGES/qt.qm
+install translations/qt_cs.qm $RPM_BUILD_ROOT%{_datadir}/locale/cs/LC_MESSAGES/qt.qm
 install translations/qt_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/qt.qm
 install translations/qt_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/qt.qm
 install translations/qt_ru.qm $RPM_BUILD_ROOT%{_datadir}/locale/ru/LC_MESSAGES/qt.qm
-install translations/qt_iw.qm $RPM_BUILD_ROOT%{_datadir}/locale/he/LC_MESSAGES/qt.qm
-install translations/qt_cs.qm $RPM_BUILD_ROOT%{_datadir}/locale/cs/LC_MESSAGES/qt.qm
 install translations/qt_sk.qm $RPM_BUILD_ROOT%{_datadir}/locale/sk/LC_MESSAGES/qt.qm
+install tools/assistant/assistant_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/assistant.qm
 
+%if %{with dont_enable}
 %if %{with designer}
 install tools/designer/designer/designer_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/designer.qm
 install tools/designer/designer/designer_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/designer.qm
 %endif
 
-install tools/assistant/assistant_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/assistant.qm
 install tools/assistant/assistant_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/assistant.qm
 
 install tools/linguist/linguist/linguist_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/linguist.qm
 install tools/linguist/linguist/linguist_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/linguist.qm
 %endif
 
-cp -dpR examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
-mv $RPM_BUILD_ROOT{%{_libdir}/*.prl,%{_examplesdir}/%{name}/lib}
-
-for i in `find $RPM_BUILD_ROOT -name \*.svn`
+cd $RPM_BUILD_ROOT%{_includedir}/qt4/Qt
+for f in ../Qt{3Support,Assistant,Core,Designer,Gui,Network,OpenGL,Sql,Svg,Test,Xml}/*
 do
-       rm -rf "$i";
+       if [ ! -d $f ]; then
+               ln -sf $f `basename $f`
+       fi
 done
+ln -sf ../../QtCore/arch/qatomic.h arch/qatomic.h
+cd -
 
-cd $RPM_BUILD_ROOT%{_examplesdir}/%{name}
-for i in `find ./ -name Makefile`;
-do
-
-%{__sed} -i -e "s,$RPM_BUILD_DIR,%{_prefix},g" $i
-%{__sed} -i -e "s,examples,src/examples/qt4/examples,g" $i
+mv $RPM_BUILD_ROOT%{_libdir}/*.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
+for f in $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc; do
+       HAVEDEBUG=`echo $f | grep _debug | wc -l`
+       MODULE=`echo $f | basename $f | cut -d. -f1 | cut -d_ -f1`
+       MODULE2=`echo $MODULE | tr a-z A-Z | sed s:QT::`
+       DEFS="-D_REENTRANT"
+
+       if [ "$MODULE2" == "3SUPPORT" ]; then
+           DEFS="$DEFS -DQT3_SUPPORT -DQT_QT3SUPPORT_LIB"
+       else
+           DEFS="$DEFS -DQT_"$MODULE2"_LIB"
+       fi
+       [ "$HAVEDEBUG" -eq 0 ] && DEFS="$DEFS -DQT_NO_DEBUG"
+
+       sed -i -e "s:-DQT_SHARED:-DQT_SHARED $DEFS:" $f
+done
 
+# Prepare some files list
+ifecho () {
+       RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null`
+       [ "$RESULT" == "" ] && return
+       r=`echo $RESULT | awk '{ print $1 }'`
+
+       if [ -d "$r" ]; then
+               echo "%%dir $2" >> $1.files
+       elif [ -x "$r" ] ; then
+               echo "%%attr(755,root,root) $2" >> $1.files
+       elif [ -f "$r" ]; then
+               echo "$2" >> $1.files
+       else
+               echo "Error generation devel files list!"
+               echo "$r: no such file or direcotry!"
+               return 1
+       fi
+}
+
+mkdevfl () {
+       MODULE=$1; shift
+       echo "%%defattr(644,root,root,755)" > $MODULE-devel.files
+       ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.so"
+       ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.la"
+       ifecho $MODULE-devel "%{_libdir}/lib$MODULE*.prl"
+       ifecho $MODULE-devel "%{_pkgconfigdir}/$MODULE*.pc"
+       if [ -d "$RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE" ]; then
+               ifecho $MODULE-devel %{_includedir}/qt4/$MODULE
+       fi
+       for f in `find $RPM_BUILD_ROOT%{_includedir}/qt4/$MODULE -printf "%%P "`
+       do
+               ifecho $MODULE-devel %{_includedir}/qt4/$MODULE/$f
+               ifecho $MODULE-devel %{_includedir}/qt4/Qt/$f
+       done
+       for f in $@; do ifecho $MODULE-devel $f; done
+}
+
+mkdevfl QtCore %{_includedir}/qt4 %{_includedir}/qt4/Qt
+mkdevfl QtGui
+mkdevfl QtNetwork
+mkdevfl QtOpenGL
+mkdevfl QtSql
+mkdevfl QtSvg
+mkdevfl QtTest
+mkdevfl QtXml
+mkdevfl Qt3Support
+
+# without *.la *.pc etc.
+mkdevfl QtAssistant || /bin/true
+mkdevfl QtDesigner || /bin/true
+
+echo "%defattr(644,root,root,755)" > examples.files
+ifecho examples %{_examplesdir}/qt4
+for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4 -printf "%%P "`
+do
+       ifecho examples %{_examplesdir}/qt4/$f
 done
-cd -
 
-# we will be only packaging modularized qt no need to package the same headers twice
-rm -rf $RPM_BUILD_ROOT%{_includedir}/qt4/Qt
-
-#cd $RPM_BUILD_ROOT%{_includedir}/Qt
-#rm -rf *.h
-#mkdir arch
-#for i in `find \`find ../  -maxdepth 1 -type d | egrep -v -w 'Qt|./'\` -name \*.h|cut -c 4-`;
-#do
-#y=`echo $i|cut -d '/' -f2-`;
-#ln -s $y ../$i;
-#done
-#cd -
-
-install demos/arthur/{affine/affine,deform/deform,gradients/gradients,pathstroke/pathstroke} \
-       demos/{downloadwidget/downloadwidget,interview/interview,mainwindow/mainwindow} \
-       demos/{textedit/textedit,sqlbrowser/sqlbrowser,spreadsheet/spreadsheet,scrollarea/scrollarea} \
-       demos/{plasmatable/plasmatable,pimelim/pimelim} \
-       $RPM_BUILD_ROOT%{_bindir}
+echo "%defattr(644,root,root,755)" > demos.files
+ifecho demos "%{_examplesdir}/qt4-demos"
+ifecho demos "%{_bindir}/qtdemo"
+ifecho demos "%{_libdir}/qt4/plugins/arthurplugin/libarthurplugin.so"
+for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt4-demos -printf "%%P "`
+do
+       ifecho demos %{_examplesdir}/qt4-demos/$f
+done
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -839,84 +1164,61 @@ EOF
 %post  -n QtSql        -p /sbin/ldconfig
 %postun        -n QtSql        -p /sbin/ldconfig
 
+%post  -n QtSvg        -p /sbin/ldconfig
+%postun        -n QtSvg        -p /sbin/ldconfig
+
+%post  -n QtTest       -p /sbin/ldconfig
+%postun        -n QtTest       -p /sbin/ldconfig
+
 %post  -n QtXml        -p /sbin/ldconfig
 %postun        -n QtXml        -p /sbin/ldconfig
 
 %post  -n Qt3Support   -p /sbin/ldconfig
 %postun        -n Qt3Support   -p /sbin/ldconfig
 
-%post  -n assistant    -p /sbin/ldconfig
-%postun        -n assistant    -p /sbin/ldconfig
+%post  -n QtAssistant  -p /sbin/ldconfig
+%postun        -n QtAssistant  -p /sbin/ldconfig
 
-%post  -n designer-libs        -p /sbin/ldconfig
-%postun        -n designer-libs        -p /sbin/ldconfig
+%post  designer-libs   -p /sbin/ldconfig
+%postun        designer-libs   -p /sbin/ldconfig
 
 %files -n QtCore
 %defattr(644,root,root,755)
-%dir %{_sysconfdir}/qt
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qt/qt.conf
-%attr(755,root,root) %{_libdir}/libQtCore*.so.*
+%attr(755,root,root) %{_libdir}/libQtCore.so.*.*
+%dir %{_libdir}/qt4
 %dir %{_libdir}/qt4/plugins
+%dir %{_libdir}/qt4/plugins/accessible
 %dir %{_libdir}/qt4/plugins/codecs
-%dir %{_libdir}/qt4/plugins/imageformats
-%dir %{_libdir}/qt4/plugins/sqldrivers
 %dir %{_libdir}/qt4/plugins/crypto
+%dir %{_libdir}/qt4/plugins/imageformats
 %dir %{_libdir}/qt4/plugins/network
+%dir %{_libdir}/qt4/plugins/sqldrivers
 %dir %{_datadir}/qt4
-
-%files -n QtCore-devel
-%defattr(644,root,root,755)
-%dir %{_includedir}/qt4
-%attr(755,root,root) %{_libdir}/libQtCore*.so
-%{_libdir}/libQtCore*.la
-%{_includedir}/qt4/QtCore
-%{_pkgconfigdir}/QtCore*.pc
+%lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/qt.qm
+%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/qt.qm
+%lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt.qm
+%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qt.qm
+%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qt.qm
+%lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/qt.qm
 
 %files -n QtGui
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQtGui*.so.*
+%attr(755,root,root) %{_libdir}/libQtGui.so.*.*
+%{_libdir}/qt4/plugins/accessible/*
 %{_libdir}/qt4/plugins/codecs/*
 %{_libdir}/qt4/plugins/imageformats/*
 
-%files -n QtGui-devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQtGui*.so
-%{_libdir}/libQtGui*.la
-%{_includedir}/qt4/QtGui
-%{_pkgconfigdir}/QtGui*.pc
-
 %files -n QtNetwork
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQtNetwork*.so.*
-
-%files -n QtNetwork-devel
-%defattr(644,root,root,755)
-%{_libdir}/libQtNetwork*.la
-%attr(755,root,root) %{_libdir}/libQtNetwork*.so
-%{_includedir}/qt4/QtNetwork
-%{_pkgconfigdir}/QtNetwork*.pc
+%attr(755,root,root) %{_libdir}/libQtNetwork.so.*.*
 
 %files -n QtOpenGL
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQtOpenGL*.so.*
-
-%files -n QtOpenGL-devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQtOpenGL*.so
-%{_libdir}/libQtOpenGL*.la
-%{_includedir}/qt4/QtOpenGL
-%{_pkgconfigdir}/QtOpenGL*.pc
+%attr(755,root,root) %{_libdir}/libQtOpenGL.so.*.*
 
 %files -n QtSql
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQtSql*.so.*
-
-%files -n QtSql-devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQtSql*.so
-%{_libdir}/libQtSql*.la
-%{_includedir}/qt4/QtSql
-%{_pkgconfigdir}/QtSql*.pc
+%attr(755,root,root) %{_libdir}/libQtSql.so.*.*
 
 %if %{with mysql}
 %files -n QtSql-mysql
@@ -940,6 +1242,7 @@ EOF
 %files -n QtSql-sqlite3
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlite*.so
+%exclude %{_libdir}/qt4/plugins/sqldrivers/libqsqlite2*.so
 %endif
 
 %if %{with ibase}
@@ -954,35 +1257,31 @@ EOF
 %attr(755,root,root) %{_libdir}/qt4/plugins/sqldrivers/libqsqlodbc*.so
 %endif
 
-%files -n QtXml
+%files -n QtSvg
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libQtSvg.so.*.*
+
+%files -n QtTest
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQtXml*.so.*
+%attr(755,root,root) %{_libdir}/libQtTest.so.*.*
 
-%files -n QtXml-devel
+%files -n QtXml
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQtXml*.so
-%{_libdir}/libQtXml*.la
-%{_includedir}/qt4/QtXml
-%{_pkgconfigdir}/QtXml*.pc
+%attr(755,root,root) %{_libdir}/libQtXml.so.*.*
 
 %files -n Qt3Support
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/uic3
-%attr(755,root,root) %{_libdir}/libQt3Support*.so.*
+%attr(755,root,root) %{_libdir}/libQt3Support.so.*.*
 
-%files -n Qt3Support-devel
+%files -n QtAssistant
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQt3Support*.so
-%{_libdir}/libQt3Support*.la
-%{_includedir}/qt4/Qt3Support
-%{_pkgconfigdir}/Qt3Support*.pc
+%attr(755,root,root) %{_libdir}/libQtAssistantClient.so.*.*
 
 %files assistant
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/assistant
-%attr(755,root,root) %{_libdir}/libQtAssistantClient*.so*
-#%lang(de) %{_datadir}/locale/de/LC_MESSAGES/assistant.qm
-#%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/assistant.qm
+%lang(de) %{_datadir}/locale/de/LC_MESSAGES/assistant.qm
 %{_desktopdir}/assistant.desktop
 %{_pixmapsdir}/assistant.png
 
@@ -995,18 +1294,17 @@ EOF
 %{_datadir}/qt4/q3porting.xml
 
 %if %{with designer}
-%files designer-libs
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libQtDesigner*.so.*.*.*
-
 %files designer
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/designer
-#%dir %{_libdir}/%{name}/plugins-?t/designer
-#%lang(de) %{_datadir}/locale/de/LC_MESSAGES/designer.qm
-#%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/designer.qm
 %{_desktopdir}/designer.desktop
 %{_pixmapsdir}/designer.png
+
+%files designer-libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libQtDesigner*.so.*.*
+%dir %{_libdir}/qt4/plugins/designer
+%attr(755,root,root) %{_libdir}/qt4/plugins/designer/*.so
 %endif
 
 %files linguist
@@ -1016,21 +1314,16 @@ EOF
 %attr(755,root,root) %{_bindir}/lrelease
 %attr(755,root,root) %{_bindir}/lupdate
 %attr(755,root,root) %{_bindir}/qm2ts
-#%lang(de) %{_datadir}/locale/de/LC_MESSAGES/linguist.qm
-#%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/linguist.qm
-%{_mandir}/man1/qm2ts.1*
-%{_mandir}/man1/lupdate*.1*
-%{_mandir}/man1/lrelease*.1*
 %{_datadir}/qt4/phrasebooks
 %{_desktopdir}/linguist.desktop
 %{_pixmapsdir}/linguist.png
 
-%files -n qmake
+%files qmake
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/qmake
 %{_datadir}/qt4/mkspecs
 
-%files -n qtconfig
+%files qtconfig
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/qtconfig
 %{_desktopdir}/qtconfig.desktop
@@ -1040,26 +1333,63 @@ EOF
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/qvfb
 
-%files demos
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/affine
-%attr(755,root,root) %{_bindir}/deform
-%attr(755,root,root) %{_bindir}/downloadwidget
-%attr(755,root,root) %{_bindir}/gradients
-%attr(755,root,root) %{_bindir}/interview
-%attr(755,root,root) %{_bindir}/mainwindow
-%attr(755,root,root) %{_bindir}/pathstroke
-%attr(755,root,root) %{_bindir}/pimelim
-%attr(755,root,root) %{_bindir}/plasmatable
-%attr(755,root,root) %{_bindir}/scrollarea
-%attr(755,root,root) %{_bindir}/spreadsheet
-%attr(755,root,root) %{_bindir}/sqlbrowser
-%attr(755,root,root) %{_bindir}/textedit
-
 %files doc
 %defattr(644,root,root,755)
 %{_docdir}/%{name}-doc
 
-%files examples
+%files -n QtCore-devel -f QtCore-devel.files
+%files -n QtDesigner-devel -f QtDesigner-devel.files
+%files -n QtGui-devel -f QtGui-devel.files
+%files -n QtNetwork-devel -f QtNetwork-devel.files
+%files -n QtOpenGL-devel -f QtOpenGL-devel.files
+%files -n QtSql-devel -f QtSql-devel.files
+%files -n QtSvg-devel -f QtSvg-devel.files
+%files -n QtTest-devel -f QtTest-devel.files
+%files -n QtXml-devel -f QtXml-devel.files
+%files -n Qt3Support-devel -f Qt3Support-devel.files
+%files -n QtAssistant-devel -f QtAssistant-devel.files
+
+%if %{with static_libs}
+%files -n QtCore-static
+%defattr(644,root,root,755)
+%{_libdir}/libQtCore*.a
+
+%files -n QtGui-static
+%defattr(644,root,root,755)
+%{_libdir}/libQtGui*.a
+
+%files -n QtNetwork-static
 %defattr(644,root,root,755)
-%{_examplesdir}/qt4
+%{_libdir}/libQtNetwork*.a
+
+%files -n QtOpenGL-static
+%defattr(644,root,root,755)
+%{_libdir}/libQtOpenGL*.a
+
+%files -n QtSql-static
+%defattr(644,root,root,755)
+%{_libdir}/libQtSql*.a
+
+%files -n QtSvg-static
+%defattr(644,root,root,755)
+%{_libdir}/libQtSvg*.a
+
+%files -n QtXml-static
+%defattr(644,root,root,755)
+%{_libdir}/libQtXml*.a
+
+%files -n Qt3Support-static
+%defattr(644,root,root,755)
+%{_libdir}/libQt3Support*.a
+
+%files -n QtDesigner-static
+%defattr(644,root,root,755)
+%{_libdir}/libQtDesigner.a
+
+%files -n QtAssistant-static
+%defattr(644,root,root,755)
+%{_libdir}/libQtAssistantClient.a
+%endif
+
+%files demos -f demos.files
+%files examples -f examples.files
This page took 0.142312 seconds and 4 git commands to generate.