Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > c6df48aa6f24f13ac83670ff4f6d6ea9 > files > 23

qt4-4.3.4-6mdv2008.1.src.rpm

%define with_postgres 1
%{?_without_postgres: %{expand: %%global with_postgres 0}}

%define with_mysql 1
%{?_without_mysql: %{expand: %%global with_mysql 0}}

%define with_odbc 1
%{?_without_odbc: %{expand: %%global with_odbc 0}}

%define with_sqlite 1
%{?_without_sqlite: %{expand: %%global with_sqlite 0}}

%define with_ibase 0
%{?_with_ibase: %{expand: %%global with_ibase 1}}

%define with_debug 0
%{?_with_debug: %{expand: %%global with_debug 1}}

%if %{with_debug}
%define dont_strip 1
%endif

%define enable_static 0
%{?_with_static: %{expand: %%global enable_static 1}}

%define with_cups 1
%{?_without_cups %{expand: %%global with_cups 0}}

%define libqt %mklibname qt %qtmajor
%define libqassistant %mklibname qassistant %qtmajor
%define libqt3support %mklibname qt3support %qtmajor
%define libqtcore %mklibname qtcore %qtmajor
%define libqtdesigner %mklibname qtdesigner %qtmajor
%define libqtgui %mklibname qtgui %qtmajor
%define libqtnetwork %mklibname qtnetwork %qtmajor
%define libqtopengl %mklibname qtopengl %qtmajor
%define libqtsql %mklibname qtsql %qtmajor
%define libqtxml %mklibname qtxml %qtmajor
%define libqtsvg %mklibname qtsvg %qtmajor
%define libqttest %mklibname qttest %qtmajor
%define libqdbus %mklibname qtdbus %qtmajor
%define libqtscript %mklibname qtscript %qtmajor

%define qtmajor 4
%define qtminor 3
%define qtsubminor 4

%define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor} 

%define qtlib qt4
%define qtdir %_prefix/lib/qt4
%define pluginsdir %qtdir/plugins/%_lib

%define qttarballdir qt-x11-opensource-src-%{qtversion}

Name: %{qtlib}
Version: %{qtversion}
Release: %mkrel 6
Epoch: 2
Summary: Qt GUI toolkit
Group: Development/KDE and Qt
License: GPL
URL: http://www.trolltech.com/
Source0: ftp://ftp.trolltech.com/qt/source/%{qttarballdir}.tar.gz
Source2: qt4.macros
Source3: mandriva-designer-qt4.desktop 
Source4: mandriva-assistant-qt4.desktop 
Source5: mandriva-linguist-qt4.desktop
Source6: Trolltech.conf
Patch0:	 qt4.3-fix-compile.patch
Patch1:  qt-4.3.3-fix-wrong-ssl-library-hardcode.patch

# KDE qt-copy patches
Patch99: 0167-fix-group-reading.diff
Patch100: 0172-prefer-xrandr-over-xinerama.diff
Patch101: 0175-fix-s390-qatomic.diff
Patch102: 0176-coverity-fixes.diff
Patch103: 0178-transparency-window-types.diff
Patch104: 0179-transient-hack.diff
Patch105: 0180-window-role.diff
Patch106: 0187-fix-font-fixed-pitch.diff
Patch107: 0191-listview-alternate-row-colors.diff
Patch108: 0192-itemdelegate-palette-state.diff
Patch109: 0194-fix-moveonly-dnd-in-itemviews.diff
Patch110: 0195-compositing-properties.diff
Patch111: 0200-fix-qsslsocket-waitfor.diff
Patch115: 0209-prevent-qt-mixing.diff
BuildRequires: X11-devel
%if %{enable_static}
BuildRequires: X11-static-devel
%endif
BuildRequires: GL-devel
BuildRequires: Mesa-common-devel
BuildRequires: zlib-devel 
BuildRequires: libpng-devel 
BuildRequires: libjpeg-devel
BuildRequires: libmng-devel
BuildRequires: lcms-devel
BuildRequires: cups-devel
BuildRequires: freetype2-devel
BuildRequires: libfontconfig-devel
BuildRequires: expat-devel
BuildRequires: libdbus-devel >= 0.92
BuildRequires: perl
Provides: %{qtlib}
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
Qt is a GUI software toolkit which simplifies the task of writing and
maintaining GUI (Graphical User Interface) applications for the X
Window System. Qt is written in C++ and is fully object-oriented.

This package contains the shared library needed to run Qt
applications, as well as the README files for Qt.

#------------------------------------------------------------------------

%package common
Group: Development/KDE and Qt
Summary: config, language file for Qt

%description common
This package contains all config file and language file

%files common
%defattr(-,root,root,-)
%_sysconfdir/ld.so.conf.d/*
%attr(0755,root,root) %_sysconfdir/profile.d/*
%attr(0644,root,root) %_sysconfdir/Trolltech.conf
%dir %{qtdir}
%dir %{qtdir}/bin
%dir %{qtdir}/%_lib
%dir %pluginsdir
%dir %pluginsdir/sqldrivers
%{qtdir}/phrasebooks
%dir %{qtdir}/translations
%{qtdir}/translations/qt_*
%_docdir/%name/README

#------------------------------------------------------------------------
# CORE QT LIBRARIES
#-------------------------------------------------------------------------

%package -n %{libqtxml}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Provides:	qtxmllib = %epoch:%version

%description -n %{libqtxml}
QT%{qtmajor} component library

%post -n %{libqtxml} -p /sbin/ldconfig
%postun -n %{libqtxml} -p /sbin/ldconfig

%files -n %{libqtxml}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtXml.so.%{qtmajor}*

#-------------------------------------------------------------------------

%package -n %{libqtsql}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Provides:	qtsqllib = %epoch:%version 

%description -n %{libqtsql}
QT%{qtmajor} component library

%post -n %{libqtsql} -p /sbin/ldconfig
%postun -n %{libqtsql} -p /sbin/ldconfig

%files -n %{libqtsql}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtSql.so.%{qtmajor}*

#-------------------------------------------------------------------------

%package -n %{libqtnetwork}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Provides: qtnetworklib = %epoch:%version

%description -n %{libqtnetwork}
QT%{qtmajor} component library

%post -n %{libqtnetwork} -p /sbin/ldconfig
%postun -n %{libqtnetwork} -p /sbin/ldconfig

%files -n %{libqtnetwork}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtNetwork.so.%{qtmajor}*

#-------------------------------------------------------------------------

%package -n %{libqtscript}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Provides: libqtscript = %epoch:%version

%description -n %{libqtscript}
QT%{qtmajor} component library

%post -n %{libqtscript} -p /sbin/ldconfig
%postun -n %{libqtscript} -p /sbin/ldconfig

%files -n %{libqtscript}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtScript.so.%{qtmajor}*

#-------------------------------------------------------------------------

%package -n %{libqtgui}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Conflicts: %{libqtcore} <= 2:4.2.2-%mkrel 2
Provides: qtguilib = %epoch:%version

%description -n %{libqtgui}
QT%{qtmajor} component library

%post -n %{libqtgui} -p /sbin/ldconfig
%postun -n %{libqtgui} -p /sbin/ldconfig

%files -n %{libqtgui}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtGui.so.%{qtmajor}*
%pluginsdir/imageformats
%pluginsdir/inputmethods/libqimsw-multi.so*

#-------------------------------------------------------------------------

%package -n %{libqtsvg}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Provides: qtsvglib = %epoch:%version

%description -n %{libqtsvg}
QT%{qtmajor} component library

%post -n %{libqtsvg} -p /sbin/ldconfig
%postun -n %{libqtsvg} -p /sbin/ldconfig

%files -n %{libqtsvg}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtSvg.so.%{qtmajor}*
%pluginsdir/iconengines/libqsvg.so*

#-------------------------------------------------------------------------

%package -n %{libqttest}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Provides: qttestlib = %epoch:%version

%description -n %{libqttest}
QT%{qtmajor} component library

%post -n %{libqttest} -p /sbin/ldconfig
%postun -n %{libqttest} -p /sbin/ldconfig

%files -n %{libqttest}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtTest.so.%{qtmajor}*

#-------------------------------------------------------------------------

%package -n %{libqtcore}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Conflicts: %{libqtgui} <= 2:4.2.2-%mkrel 2
Provides: qtcorelib = %epoch:%version
Obsoletes: %{_lib}qtuitools4

%description -n %{libqtcore}
QT%{qtmajor} component library

%post -n %{libqtcore} -p /sbin/ldconfig
%postun -n %{libqtcore} -p /sbin/ldconfig

%files -n %{libqtcore}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtCore.so.%{qtmajor}*

#-------------------------------------------------------------------------

%package -n %{libqt3support}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Provides: qt3supportlib = %epoch:%version

%description -n %{libqt3support}
QT%{qtmajor} component library

%post -n %{libqt3support} -p /sbin/ldconfig
%postun -n %{libqt3support} -p /sbin/ldconfig

%files -n %{libqt3support}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQt3Support.so.%{qtmajor}*
%pluginsdir/designer/libqt3supportwidgets.so*

#-------------------------------------------------------------------------

%package -n %{libqtopengl}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Provides: qtopengllib = %epoch:%version

%description -n %{libqtopengl}
QT%{qtmajor} component library

%post -n %{libqtopengl} -p /sbin/ldconfig
%postun -n %{libqtopengl} -p /sbin/ldconfig

%files -n %{libqtopengl}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtOpenGL.so.%{qtmajor}*

#-------------------------------------------------------------------------

%package -n %{libqtdesigner}
Summary: QT%{qtmajor} component library
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Provides: qtdesignerlib = %epoch:%version
# Had wrong major:
Obsoletes: %{_lib}qtdesigner1 < 2:4.3.4-4

%description -n %{libqtdesigner}
QT%{qtmajor} component library

%description -l pt_BR -n %{libqtdesigner}
Biblioteca componente da QT%{qtmajor}

%post -n %{libqtdesigner} -p /sbin/ldconfig
%postun -n %{libqtdesigner} -p /sbin/ldconfig

%files -n %{libqtdesigner}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtDesigner.so.%{qtmajor}*
%{qtdir}/%_lib/libQtDesignerComponents.so.%{qtmajor}*

#-------------------------------------------------------------------------

%package -n %{libqdbus}
Summary: QT dbus lib
Summary(pt_BR): Biblioteca do dbus
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Requires: %{name}-qtdbus = %epoch:%version
Provides: qdbuslib = %epoch:%version
Conflicts: qt4-devel < 2:4.3.0 

%description -n %{libqdbus}
QT dbus lib

%post -n %{libqdbus} -p /sbin/ldconfig
%postun -n %{libqdbus} -p /sbin/ldconfig

%files -n %{libqdbus}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtDBus.so.%{qtmajor}*

#-------------------------------------------------------------------------

%package qtdbus
Summary: QT dbus binary
Summary(pt_BR): Biblioteca do dbus
Group: Development/KDE and Qt

%description qtdbus
QT dbus binary

%files qtdbus
%defattr(-,root,root,-)
%{qtdir}/bin/qdbus*

#-------------------------------------------------------------------------

%package -n %{libqassistant}
Summary: QT assistant lib
Summary(pt_BR): Biblioteca do qt-assistant
Group: System/Libraries
Requires(pre): %{name}-common = %epoch:%version
Provides: qassistantlib = %epoch:%version
# Had wrong major:
Obsoletes: %{_lib}qassistant1 < 2:4.3.4-4

%description -n %{libqassistant}
QT assistant lib

%post -n %{libqassistant} -p /sbin/ldconfig
%postun -n %{libqassistant} -p /sbin/ldconfig

%files -n %{libqassistant}
%defattr(-,root,root,-)
%{qtdir}/%_lib/libQtAssistantClient.so.%{qtmajor}*

#-------------------------------------------------------------------------

%package -n %{libqt}-devel
Summary: Development files for the Qt GUI toolkit
Group: Development/KDE and Qt
Requires: %{name}-common = %epoch:%version
Provides: qt4-devel = %epoch:%version-%release
Provides: libqt4-devel = %epoch:%version-%release

# (anssi) *.prl was moved to -devel
Conflicts: %{_lib}qtxml4 < 2:4.3.4-3
Conflicts: %{_lib}qtsql4 < 2:4.3.4-3
Conflicts: %{_lib}qtnetwork4 < 2:4.3.4-3
Conflicts: %{_lib}qtscript4 < 2:4.3.4-3
Conflicts: %{_lib}qtgui4 < 2:4.3.4-3
Conflicts: %{_lib}qtsvg4 < 2:4.3.4-3
Conflicts: %{_lib}qttest4 < 2:4.3.4-3
Conflicts: %{_lib}qtcore4 < 2:4.3.4-3
Conflicts: %{_lib}qt3support4 < 2:4.3.4-3
Conflicts: %{_lib}qtopengl4 < 2:4.3.4-3
Conflicts: %{_lib}qtdesigner1 < 2:4.3.4-3
Conflicts: %{_lib}qtdbus4 < 2:4.3.4-3
Conflicts: %{_lib}qassistant1 < 2:4.3.4-3
Conflicts: %{_lib}qttest4 < 2:4.3.4-3
Conflicts: %{_lib}qtcore4 < 2:4.3.4-3

# There's symlinks to devel
Requires: %{libqassistant} = %epoch:%version-%release
Requires: %{libqt3support} = %epoch:%version-%release
Requires: %{libqtcore} = %epoch:%version-%release
Requires: %{libqtdesigner} = %epoch:%version-%release
Requires: %{libqtgui} = %epoch:%version-%release
Requires: %{libqtnetwork} = %epoch:%version-%release
Requires: %{libqtopengl} = %epoch:%version-%release
Requires: %{libqtsql} = %epoch:%version-%release
Requires: %{libqtxml} = %epoch:%version-%release
Requires: %{libqtsvg} = %epoch:%version-%release
Requires: %{libqttest} = %epoch:%version-%release
Requires: %{libqdbus} = %epoch:%version-%release

%description -n %{libqt}-devel
The %{qtlib}-devel package contains the files necessary to develop
applications using the Qt GUI toolkit: the header files, the Qt
meta object compiler, and the static libraries.  See the address
http://www.trolltech.com/products/qt.html for more information
about Qt.
Install qt-devel if you want to develop GUI applications using the Qt
toolkit.

%post -n %{libqt}-devel
update-alternatives --install %_bindir/qmake qmake %qtdir/bin/qmake 20

%postun -n %{libqt}-devel
if ! [ -e %qtdir/bin/qmake ]; then
  update-alternatives --remove qmake %qtdir/bin/qmake
fi

%files -n %{libqt}-devel
%defattr(-,root,root,-)
%{qtdir}/bin/moc*
%{qtdir}/bin/qmake*
%{qtdir}/bin/uic*
%{qtdir}/bin/rcc*
%{qtdir}/bin/qt3to4*
%{qtdir}/bin/pixeltool*
%_sysconfdir/rpm/macros.d/*
%{qtdir}/include
%{qtdir}/mkspecs
%{qtdir}/%_lib/*.so
%{qtdir}/%_lib/*.la
%{qtdir}/%_lib/*.a
%{qtdir}/%_lib/*.prl
%{qtdir}/%_lib/pkgconfig/*
%{qtdir}/q3porting.xml

#-------------------------------------------------------------------------

%if %{enable_static}
%package -n %{libqt}-static-devel
Summary: The static library for the Qt GUI toolkit
Group:		Development/KDE and Qt 

%description -n %{libqt}-static-devel
Qt is a GUI software toolkit which simplifies the task of writing and
maintaining GUI (Graphical User Interface) applications for the X
Window System. Qt is written in C++ and is fully object-oriented.

This package contains the shared library needed to run Qt
applications, as well as the README files for Qt.

%files -n %{libqt}-static-devel
%defattr(-,root,root,-)
%{qtdir}/%_lib/*.a

%endif

#-------------------------------------------------------------------------

%package qtconfig
Summary: Main Qt4 configuration utility
Group: Development/KDE and Qt
Conflicts: qt4-common <= 2:4.3.3

%description qtconfig
Main Qt 4.3 configuration utility.

%post qtconfig
update-alternatives --install %_bindir/qtconfig qtconfig %qtdir/bin/qtconfig 20

%postun qtconfig
if ! [ -e %qtdir/bin/qtconfig ]; then
  update-alternatives --remove qtconfig %qtdir/bin/qtconfig 
fi

%files qtconfig
%defattr(-,root,root,-)
%{qtdir}/bin/qtconfig
%{qtdir}/translations/qtconfig*

#-------------------------------------------------------------------------

%package doc
Summary: HTML Documentation for Qt version %{version}
Group: Books/Computer books

%description doc
HTML documentation for the Qt toolkit. To view the documentation,
please load up the file /usr/lib/%{qtlib}/doc/html/index.html in your
favourite browser.

%post doc
# Remove old qt4 doc directories
find %_docdir -maxdepth 1 -type d -name qt-4.\* -exec rm -rf {} \;

%files doc
%defattr(-,root,root,-)
%_docdir/%name/doc/html

#-------------------------------------------------------------------------

%package examples
Summary: Example programs made with Qt version %{version}
Group: Books/Computer books

%description examples
Example programs made with Qt version %{version}.

%files examples
%defattr(-,root,root,-)
%{_docdir}/%name/examples
%{_docdir}/%name/demos
%exclude %{_docdir}/%name/examples/tutorial

#-------------------------------------------------------------------------

%package linguist
Summary: QT linguist translation utility
Group: Books/Computer books
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
Conflicts:  %name-common <= 4.3.3-4

%description linguist
Qt Linguist provides easy translation of Qt GUIs to different
languages

%post linguist
%update_menus
%{update_desktop_database}

%postun linguist
%clean_menus
%{clean_desktop_database}

%files linguist
%defattr(-,root,root,-)
%{qtdir}/bin/lingu*
%{qtdir}/bin/lreleas*
%{qtdir}/bin/lupdat*
%{_datadir}/applications/*linguist*.desktop
%{qtdir}/translations/linguist*
#-------------------------------------------------------------------------

%package assistant
Summary: QT assistantion doc utility
Group: Books/Computer books
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
Conflicts:  %name-common <= 4.3.3-4

%description assistant
Qt Assistant provides a documentation Browser

%post assistant
%update_menus
%{update_desktop_database}

%postun assistant
%clean_menus
%{clean_desktop_database}

%files assistant
%defattr(-,root,root,-)
%{qtdir}/bin/assistant*
%{_datadir}/applications/*assistant*.desktop
%{qtdir}/translations/assistant*
#-------------------------------------------------------------------------

%package tutorial
Summary: Tutorial programs for Qt version %{version}
Group: Books/Computer books

%description tutorial
Tutorial programs for Qt version %{version}.

%files tutorial
%defattr(-,root,root,-)
%{_docdir}/%name/examples/tutorial

#-------------------------------------------------------------------------

%if %{with_odbc}

%package database-plugin-odbc-%_lib
Summary: Database plugin for ODBC Qt support
Group: Development/KDE and Qt
Obsoletes: qt4-database-plugin-odbc
BuildRequires: unixODBC-devel
%if %{enable_static}
BuildRequires: unixODBC-static-devel
%endif

%description database-plugin-odbc-%_lib
Database plugin for ODBC Qt support

%files database-plugin-odbc-%_lib
%defattr(-,root,root,-)
%pluginsdir/sqldrivers/libqsqlodbc*

%endif

#-------------------------------------------------------------------------

%if %{with_mysql}

%package database-plugin-mysql-%_lib
Summary: Database plugin for mysql Qt support
Group: Development/KDE and Qt
Obsoletes: qt4-database-plugin-mysql
BuildRequires: mysql-devel

%description database-plugin-mysql-%_lib
Database plugin for mysql Qt support

%files database-plugin-mysql-%_lib
%defattr(-,root,root,-)
%pluginsdir/sqldrivers/libqsqlmysql*

%endif

#-------------------------------------------------------------------------

%if %{with_sqlite}

%package database-plugin-sqlite-%_lib
Summary: Database plugin for sqlite Qt support
Group: Databases
Obsoletes: qt4-database-plugin-sqlite
BuildRequires: sqlite3-devel
%if %{enable_static}
BuildRequires: sqlite3-static-devel
%endif

%description database-plugin-sqlite-%_lib
Database plugin for sqlite Qt support

%files database-plugin-sqlite-%_lib
%defattr(-,root,root,-)
%pluginsdir/sqldrivers/libqsqlite*
%endif

#-------------------------------------------------------------------------

%if %{with_ibase}

%package database-plugin-ibase-%_lib
Summary: Database plugin for interbase Qt support
Group: Development/KDE and Qt
Obsoletes: qt4-database-plugin-ibase
BuildRequires: firebird-devel

%description database-plugin-ibase-%_lib
Database plugin for interbase Qt support

%files database-plugin-ibase-%_lib
%defattr(-,root,root,-)
%pluginsdir/sqldrivers/libqsqlibase*
%endif

#-------------------------------------------------------------------------

%if %{with_postgres}

%package database-plugin-pgsql-%_lib
Summary: Database plugin for pgsql Qt support
Group: Development/KDE and Qt
Obsoletes: %name-database-plugin-pgsql
BuildRequires: postgresql-devel

%description database-plugin-pgsql-%_lib
Database plugin for pgsql Qt support

%files database-plugin-pgsql-%_lib
%defattr(-,root,root,-)
%pluginsdir/sqldrivers/libqsqlpsql*

%endif

#-------------------------------------------------------------------------

%package accessibility-plugin-%_lib
Summary: Accessibility plugins for Qt4
Group: Development/KDE and Qt
Obsoletes: %name-accessibility-plugin
Obsoletes: %name-accessibility-plugins

%description accessibility-plugin-%_lib
Acessibility plugins for Qt4

%files accessibility-plugin-%_lib
%defattr(-,root,root,-)
%dir %pluginsdir/accessible
%pluginsdir/accessible/*

#-------------------------------------------------------------------------

%package codecs-plugin-%_lib
Summary: codecs plugins for Qt4
Group: 	Development/KDE and Qt
Obsoletes: %name-codecs-plugin
Obsoletes: %name-codecs-plugins

%description codecs-plugin-%_lib
Acessibility plugins for Qt4

%files codecs-plugin-%_lib
%defattr(-,root,root,-)
%dir %pluginsdir/codecs
%pluginsdir/codecs/*.so*

#-------------------------------------------------------------------------

%package designer
Summary: %{qtlib} visual design tool
Group: Development/KDE and Qt
Requires: %{libqt}-devel = %epoch:%version
Conflicts:  %name-common <= 4.3.3-4

%description designer
The Qt Designer is a visual design tool that makes designing and
implementing user interfaces a lot easier.

%post designer
%update_menus

%postun designer
%clean_menus

%files designer
%defattr(-,root,root,-)
%{qtdir}/bin/designer
%{_datadir}/applications/*designer*.desktop
%{qtdir}/translations/designer_*

#-------------------------------------------------------------------------

%package qvfb
Summary: %{qtlib} embedded virtual terminal
Group: Development/KDE and Qt
Conflicts:  %name-common <= 4.3.3-4

%description qvfb
Qt 4 Embedded Virtual Terminal

%files qvfb
%defattr(-,root,root,-)
%{qtdir}/bin/qvf*
%{qtdir}/translations/qvfb*

#-------------------------------------------------------------------------

%prep
%setup -q -n %{qttarballdir}
%patch0 -p1 -b .fix_link
%patch1 -p1 -b .ssl

# qt-copy patches
%patch99 -p0 -b .qt-copy
%patch100 -p0 -b .qt-copy
%patch101 -p0 -b .qt-copy
%patch102 -p0 -b .qt-copy
%patch103 -p0 -b .qt-copy
%patch104 -p0 -b .qt-copy
%patch105 -p0 -b .qt-copy
%patch106 -p0 -b .qt-copy
%patch107 -p0 -b .qt-copy
%patch108 -p0 -b .qt-copy
%patch109 -p0 -b .qt-copy
%patch110 -p0 -b .qt-copy
%patch111 -p0 -b .qt-copy
%patch115 -p0 -b .qt-copy

%build
export QTDIR=`/bin/pwd`
export PATH=$QTDIR/bin:$PATH
export CPPFLAGS="${CFLAGS} %{optflags} -fPIC"
export CXXFLAGS="${CXXFLAGS} %{optflags} -fPIC"
export YACC='byacc -d'
export LD_LIBRARY_PATH=%{_builddir}/%{qttarballdir}/lib:$LD_LIBRARY_PATH
export PATH=%{_builddir}/%{qttarballdir}/bin:$PATH

#--------------------------------------------------------
# function configure
function qt_configure {

echo "yes" |
./configure \
	-prefix %{qtdir} \
	-qdbus \
%if %{with_debug}
   -debug \
%else
   -no-separate-debug-info \
   -release \
%endif
   -sysconfdir %_sysconfdir \
   -libdir %{qtdir}/%_lib \
   -docdir %_docdir/%name/doc \
   -plugindir %pluginsdir \
   -qvfb \
   -qt-gif \
%if ! %{with_cups}
   -no-cups \
%endif
   -no-exceptions \
   -L%_prefix/%_lib \
   -platform linux-g++ \
   -confirm-license \
   -verbose \
	$*
}

# static
%if %{enable_static}
	qt_configure \
   %if %{with_odbc}
   -qt-sql-odbc \
   %endif
   %if %{with_sqlite}
   -qt-sql-sqlite \
   -no-sql-sqlite2 \
   %else
   -no-sql-sqlite \
   -no-sql-sqlite2 \
   %endif
   -nomake demos \
   -nomake examples \
   -nomake tools \
   -static

   %make

	mkdir safelib
	cp lib/*.a safelib
%endif

# shared
qt_configure -shared \
   %if %{with_postgres}
   -plugin-sql-psql \
        -no-pch \
   -I%{_includedir}/pgsql \
   -I%{_includedir}/pgsql/server \
   %endif
   %if %{with_mysql}
   -plugin-sql-mysql \
   -I%{_includedir}/mysql \
   %else
   -no-sql-mysql \
   %endif
   %if %{with_ibase}
   -plugin-sql-ibase \
   %else
   -no-sql-ibase \
   %endif
   %if %{with_sqlite}
   -plugin-sql-sqlite \
   -no-sql-sqlite2 \
   %else
   -no-sql-sqlite \
   -no-sql-sqlite2 \
   %endif
   %if %{with_odbc}
   -plugin-sql-odbc \
   %else
   -no-sql-odbc \
   %endif
   -nomake demos \
   -nomake examples 

%make 

# Compile qvfb
pushd tools/qvfb
   make 
popd

%install
rm -rf %buildroot
install -d %buildroot%_bindir
install -d %buildroot%_docdir/%name
install -d %buildroot%_sysconfdir
install -d %buildroot%_sysconfdir/profile.d
install -d %buildroot%_sysconfdir/ld.so.conf.d

make INSTALL_ROOT=%buildroot \
	sub-tools-install_subtargets-ordered \
	install_htmldocs \
	install_qmake \
	install_translations \
	install_mkspecs

install -m 0644 README %buildroot%_docdir/%name

# Install qvfb
pushd tools/qvfb
   make INSTALL_ROOT=%buildroot install
popd

mkdir -p %buildroot%_datadir/applications
install -m 644 %SOURCE3 %buildroot%_datadir/applications
install -m 644 %SOURCE4 %buildroot%_datadir/applications
install -m 644 %SOURCE5 %buildroot%_datadir/applications

# Fix mkspec link
pushd  %buildroot%{qtdir}/mkspecs
rm -f default
ln -sf %{qtdir}/mkspecs/linux-g++ default
popd

# Copy examples/tutorial and demos
for subdir in examples demos; do
   for dir in `find $subdir -type d -name .obj`; do rm -rf $dir; done
   for dir in `find $subdir -type d -name .moc`; do rm -rf $dir; done
   cp -a $subdir %buildroot/%_docdir/%name
done

%if %{enable_static}
	cp safelib/* %buildroot/%{qtdir}/%_lib
%endif

# Use the new ld.so.conf.d 
pushd %buildroot/%_sysconfdir/ld.so.conf.d
echo "%{qtdir}/%_lib" > qt4.conf
%if "%{_lib}" != "lib"
echo "%{qtdir}/lib" >> qt4.conf
%endif
popd

# Fix all buildroot paths
find %buildroot/%qtdir/%_lib -type f -name '*prl' -exec perl -pi -e "s, -L%_builddir/\S+,,g" {} \;
find %buildroot/%qtdir/%_lib -type f -name '*prl' -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \;
find %buildroot/%qtdir/%_lib -type f -name '*la' -print -exec perl -pi -e "s, -L%_builddir/?\S+,,g" {} \;
find %buildroot/%qtdir/mkspecs -name 'qmake.conf' -exec chmod -x -- {} \;
find %buildroot/%qtdir/mkspecs -name Info.plist.app -exec chmod -x -- {} \;

# Install rpm macros
mkdir -p %buildroot/%_sysconfdir/rpm/macros.d
install -m 0644 %SOURCE2 %buildroot/%_sysconfdir/rpm/macros.d

# Profiles
cat > %buildroot%_sysconfdir/profile.d/60qt4.sh << EOF
#!/bin/bash

if [ -z \$PKG_CONFIG_PATH ]; then
    PKG_CONFIG_PATH=%{qtdir}/%_lib/pkgconfig
else
    PKG_CONFIG_PATH=\${PKG_CONFIG_PATH}:%{qtdir}/%_lib/pkgconfig
fi

QT4DOCDIR=%_docdir/qt4/doc

PATH=\${PATH}:%{qtdir}/bin

function qt4env {
    QTDIR=%{qtdir}
    export QTDIR
}

export PKG_CONFIG_PATH QT4DOCDIR PATH
EOF

# Conf
cp %SOURCE6 %buildroot%_sysconfdir

%clean
rm -rf %buildroot


%changelog
* Fri Mar 28 2008 Anssi Hannula <anssi@mandriva.org> 2:4.3.4-6mdv2008.1
+ Revision: 190803
- add conflicts to -devel package to ease upgrades due to .prl move

* Tue Mar 25 2008 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.4-5mdv2008.1
+ Revision: 190062
- Fix for bug https://qa.mandriva.com/show_bug.cgi?id=39352

* Sun Mar 09 2008 Anssi Hannula <anssi@mandriva.org> 2:4.3.4-4mdv2008.1
+ Revision: 182731
- fix major of libqassistant and libqtdesigner (was 1, correct is 4)
- ensure major correctness in the future
- add 32-bit library path to ld.so search path on lib64 systems as well
  (fixes running 32-bit QT4 applications on 64-bit systems, #34590)

* Fri Mar 07 2008 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.4-3mdv2008.1
+ Revision: 181542
- Is good always folow the proper directions and orientations. QUiTools must be static. Thanks Thiago Macieira
- .prl files suppose to be in devel, not lib files

* Thu Feb 28 2008 Oden Eriksson <oeriksson@mandriva.com> 2:4.3.4-2mdv2008.1
+ Revision: 175992
- rebuilt due to package loss

* Tue Feb 26 2008 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.4-1mdv2008.1
+ Revision: 175219
- Installation is pulling qt4-common due libqtcore4 necessity. The inclusion of qtconfig in common package, which still have qt3support code, was pulling many of the qt4 libraries, which was not necessary since we need qtcore4 and qtgui4. As recomended by Trolltech staff, qtconfig survive in a different package now
- Update to latest bugfix release 4.3.4
- Removed qt-copy applied upstream patches
- Added qt4-doc requires for assistant

* Thu Feb 21 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2:4.3.3-7mdv2008.1
+ Revision: 173690
- fix patch 2

* Thu Feb 21 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2:4.3.3-6mdv2008.1
+ Revision: 173443
- really apply patch 2 :-(

* Wed Feb 20 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2:4.3.3-5mdv2008.1
+ Revision: 173335
- Patch2: Qt4 tries to resolve OpenSSL library by the libssl.so which is only existsts when libopenssl-devel package is installed on the system. This is an upstream bug #185864 which should be fixed for Qt 4.4.x

* Thu Feb 07 2008 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.3-4mdv2008.1
+ Revision: 163800
- Qt4 fix for bug http://qa.mandriva.com/show_bug.cgi?id=36015

* Thu Feb 07 2008 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.3-3mdv2008.1
+ Revision: 163744
- Update lates qt-copy patches

* Thu Jan 17 2008 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.3-2mdv2008.1
+ Revision: 154390
- Updated current qt-copy patches. Included:
  	XRandr prefered support over xinerama. Solves some issues related to ne xrandr bases
  	speedup pixmap fill drawings

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Wed Dec 12 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.3-1mdv2008.1
+ Revision: 117745
- Updated and removed patches from qt-copy to match kde development
- Updated to latest qt 4.3.3 upstream
- Qt 4 now is the standard devel environment for Qt applications. If both qt3 and qt4 packages are installed, qt4 have the priority.
  If you want have qt3 as main devel environment, use update-alternative --config qmake having both devel packages installed, and for config use update-alternatives --config qtconfig. As usual, if you point QTDIR for right place, system will use it, including package building.
- Added latest qt-copy patches
- Added alternatives system to match recent qt3 modifications
- Removed designer wrapper, not needed anymore

* Fri Oct 26 2007 Funda Wang <fundawang@mandriva.org> 2:4.3.2-1mdv2008.1
+ Revision: 102377
- New version 4.3.2

  + Thierry Vignaud <tvignaud@mandriva.com>
    - fix summary-ended-with-dot

* Sat Sep 15 2007 Nicolas Lécureuil <neoclust@mandriva.org> 2:4.3.1-12mdv2008.0
+ Revision: 86233
- Bump release due to BS fail
- Fix CVE-2007-4137

  + Helio Chissini de Castro <helio@mandriva.com>
    - Patch 0190 from qt-copy. utfdecoder.

* Thu Sep 13 2007 Nicolas Lécureuil <neoclust@mandriva.org> 2:4.3.1-9mdv2008.0
+ Revision: 85352
- [BUGFIX] Add menu entry for qt4-designer (Bug #33553)'
- Remove Validation errors  on desktop files

* Thu Sep 13 2007 Gustavo Pichorim Boiko <boiko@mandriva.com> 2:4.3.1-8mdv2008.0
+ Revision: 85286
- Split qt dbus binaries from the lib package. Thanks Colin Guthrie for the fix.

* Fri Aug 31 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.1-7mdv2008.0
+ Revision: 77053
- Added current patches
- Clearlooks as default eidget set for Qt4

* Thu Aug 16 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.1-5mdv2008.0
+ Revision: 64575
- Updated patches from qt-copy ( safe ones )
- Added qt4bin on macros

* Mon Aug 13 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.1-4mdv2008.0
+ Revision: 62570
- Recompile to fix mirror breakage

* Fri Aug 10 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.1-3mdv2008.0
+ Revision: 61633
- Removed non applied patches
- Added moc patch to fix qca2 plugins build, which will be provided later and is waiting on my
  sandbox to be submitted
- Added the KDE_QT_COPY reference

* Thu Aug 09 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.1-2mdv2008.0
+ Revision: 60590
- Proper conflicts

* Wed Aug 08 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.1-1mdv2008.0
+ Revision: 60589
- New upstream version 3.4.1

* Tue Jul 31 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.0-16mdv2008.0
+ Revision: 57221
- Added -fPIC on flags
- Added patch 186 from qt-copy

* Mon Jul 16 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.0-14mdv2008.0
+ Revision: 52665
- Added new string qt-copy patch

* Wed Jul 11 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.0-12mdv2008.0
+ Revision: 51376
- Added qt-copy patch 0184
- Fixed qt4env

* Thu Jul 05 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.0-11mdv2008.0
+ Revision: 48537
- Update patch for transparency and added cmake macros

* Thu Jun 28 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.0-10mdv2008.0
+ Revision: 45517
- Get rid of debug files

* Thu Jun 28 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.0-9mdv2008.0
+ Revision: 45435
- blino catch the good one issue about runnig dbus over kde4. QDbus tool was in devel package. ( Yes Andreas, i added the conflicts :) )
- New qprocess pach from qt-copy tree

* Tue Jun 26 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.0-7mdv2008.0
+ Revision: 44384
- Update with latest qt-copy patches

* Mon Jun 18 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.0-6mdv2008.0
+ Revision: 40885
- Added latest qt-copy patches, drag and drop for oxygen and kwin window rolw setting

* Fri Jun 15 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.0-5mdv2008.0
+ Revision: 40080
- Update latest safe qt-copy patches

* Thu Jun 07 2007 Anssi Hannula <anssi@mandriva.org> 2:4.3.0-3mdv2008.0
+ Revision: 36195
- rebuild with correct optflags

* Wed May 30 2007 Helio Chissini de Castro <helio@mandriva.com> 2:4.3.0-1mdv2008.0
+ Revision: 32936
- New upstream qt 4.3.0
- Added KDE 4 qt-cpoy current patches
- Moved desktop files as a source instead if inline in spec
- Created conflicts for linguist and assistant packages. Qt3 package will be created after and moved
  away from devel. Assistant and linguist have same behavior on both versions, so there's no excuse
  to have both installed at same time
- Added qt4.sh profile, with proper PKG_CONFIG_DATADIR. With this, we can aboid move pkgconfig files
  during install and make easy maintenace of package
- Added qt4env function on qt4.sh profile. This function make local environment ready with qtdir and
  bin dir pointing for qt4. Usefull for development

* Wed May 09 2007 Laurent Montel <lmontel@mandriva.org> 2:4.3-0.rc1.1mdv2008.0
+ Revision: 25414
- qt4.3 rc1

* Tue Apr 24 2007 Laurent Montel <lmontel@mandriva.org> 2:4.3-0.beta1.5mdv2008.0
+ Revision: 17750
- Update qt3 snapshot

* Mon Apr 23 2007 Laurent Montel <lmontel@mandriva.org> 2:4.3-0.beta1.4mdv2008.0
+ Revision: 17204
- Fix miscompile in qlocale

* Fri Apr 20 2007 Laurent Montel <lmontel@mandriva.org> 2:4.3-0.beta1.3mdv2008.0
+ Revision: 15542
- Fix pkgconfig

* Tue Apr 17 2007 Laurent Montel <lmontel@mandriva.org> 2:4.3-0.beta1.2mdv2008.0
+ Revision: 13604
- New version need by new kdelibs snapshot


* Tue Mar 27 2007 Laurent Montel <lmontel@mandriva.com> 4.3-0.beta1.1mdv2007.1
+ Revision: 148810
- Disable for the moment use/generate pch file
- Time to use qt4.3

* Tue Mar 20 2007 Laurent Montel <lmontel@mandriva.com> 2:4.2.3-3mdv2007.1
+ Revision: 147012
- Fix init var

* Sat Mar 17 2007 Laurent Montel <lmontel@mandriva.com> 2:4.2.3-2mdv2007.1
+ Revision: 145648
- Fix bug #153635

* Thu Mar 08 2007 Laurent Montel <lmontel@mandriva.com> 2:4.2.3-1mdv2007.1
+ Revision: 138414
- 4.2.3

  + Helio Chissini de Castro <helio@mandriva.com>
    - Modifed doc dir as same way did in qt3 package. Instead of have multiple old versionated doc
      dirs, we have only one qt4 docdir installed

* Mon Feb 12 2007 Laurent Montel <lmontel@mandriva.com> 2:4.2.2-11mdv2007.1
+ Revision: 119897
- Fix compile (Patch from Gb)

* Mon Feb 12 2007 Laurent Montel <lmontel@mandriva.com> 2:4.2.2-10mdv2007.1
+ Revision: 118870
- Bug found by gb

* Tue Jan 23 2007 Laurent Montel <lmontel@mandriva.com> 2:4.2.2-9mdv2007.1
+ Revision: 112279
- Fix mem leak
- Fix group
- Use Requires(pre)

* Fri Dec 22 2006 Laurent Montel <lmontel@mandriva.com> 2:4.2.2-8mdv2007.1
+ Revision: 101835
- Rebuild for missing x86_64 package

* Thu Dec 21 2006 Laurent Montel <lmontel@mandriva.com> 2:4.2.2-7mdv2007.1
+ Revision: 101064
- Fix qt4
- Add provides

* Mon Dec 18 2006 Laurent Montel <lmontel@mandriva.com> 2:4.2.2-5mdv2007.1
+ Revision: 98531
- Fix desktop file categorie (bug #27730)

* Tue Dec 12 2006 Helio Chissini de Castro <helio@mandriva.com> 2:4.2.2-4mdv2007.1
+ Revision: 95940
- Added qvfb subpackage

* Fri Dec 01 2006 Helio Chissini de Castro <helio@mandriva.com> 2:4.2.2-3mdv2007.1
+ Revision: 89866
- QtCore should not have X and QtGui dependencies. Thanks to Thiago Macieira

* Fri Dec 01 2006 Laurent Montel <lmontel@mandriva.com> 2:4.2.2-2mdv2007.1
+ Revision: 89852
- 4.2.2
- Fix group
- Patch from titi to fix group

* Wed Oct 25 2006 Laurent Montel <lmontel@mandriva.com> 2:4.2.1-1mdv2007.1
+ Revision: 72260
- 4.2.1
- Be sure to compile qdbus
- Fix overflow

* Thu Oct 05 2006 Helio Chissini de Castro <helio@mandriva.com> 2:4.2.0-2mdv2007.1
+ Revision: 62853
- Added missing provides
- Fixed groups
- Fixed assistant.patch
- Fix new debug style libraries
- Added qtdbus tools and library
- Recompile to avoid missing packages on release

  + Laurent Montel <lmontel@mandriva.com>
    - New package (2006-10-04 4.2.0-1mdv)
      New release 4.2.0
    - Readd sources
      Add missing build requires
    - e
    - f
    - Fix
    - New package (13mdv 2006-09-06)
      Rebuild against new mysql package

* Tue Aug 15 2006 Helio Chissini de Castro <helio@mandriva.com> 2:4.1.4-12mdv2007.0
+ Revision: 56029
- Qt 4.1.4 is stable, KDE 4 development use Qt 4.2 now, so we can drop debug
  packages to release in Mandriva 2007
- Added qt4 rpm macros as same in qt3 package

  + Laurent Montel <lmontel@mandriva.com>
    - qt4 doesn't support %%make

* Sat Jul 22 2006 Laurent Montel <lmontel@mandriva.com> 2:4.1.4-11mdv2007.0
+ Revision: 41802
- Fix menu on mdk <= 2006
- Disable temporary compile static lib which breaks
  designer-qt4 until we fix it
- Adapt patch from  cris at beebgames dot com to
  cleanup configure
- 4.1.4
- Use macro
  Rebuild
- Rebuild qt4 with new libpng
- remove Obsolete to fix upgrade
- Fix place of buildrequires (bug found by Boiko)
- Add missing buildrequires
- use %%make
- This directory doesn't exit into 4.1.3 version
- 4.1.3
- Fix buildrequires
- Adapt to new xdg menu
- Qt4.1.2 doesn't support parallele compile :(
- Fix compile when we unselect plugins.
  it's a bug into qt
  I send a bug report.
- 4.1.2
- Fix spec file
- 4.1.1
- Fix menuentry and generate them
- Increment release version
- 4.1.0 release
- qt4.1.0-rc1
- Compile with debug and not debug
- Fix menu
- Fix requires
  Remove requires on qt-devel which is defined into qt
  Add menu entry

  + Helio Chissini de Castro <helio@mandriva.com>
    - Increase release to recompile
    - Fixed pkgconfig bad paths.
    - Devel package need requires for libraries to avoid broke symlinks
    - qt4 is on main repository now. Shoud not compile against contrib packages. In
     this case, firebird is the one. My fault. :-(
    - Rearrange build requires.
    - Add missing firebird-devel build requires for ibase plugin
    - Fix Provides, Requires and Obsoletes
    - QtUiTools have 4 as soname
    - Examples and demos now installed clean, without all build object files
     - Make plugins multi-arch enabled
     - Make uitools lib shared
     - Renamed accessibility and database plugins to match arch
    - Increase release
    - Making _debug library packages by default on cooker release
    - Enabled acessibility plugin
    - Added interbase database plugin package ( disabled by default )
    - Finally a decent package with proper lib separation and fully working on x86_64
      archs
    - 4.1 will take some time so already provided static libraries, as requested.
      It's suppose to be working, but since is first try, probably some features on
      static library could be not available like in shared ones , due to lack of
      static devel libs on Mandriva ( i.e. postgres, mysql, unixodbc, etc.. )
    - Moved post install pkgconfig files to proper dir on system
    - Fixed fontconfig,sqlite on x86_64
    - Updated for 20050822 qt-copy with patches enabled
    - Moved assistant for a separated package. This makes qt4-doc not depends of any
      binary package anymore
    - Back release for a regular format, 1mdk.
    - Fixed library placement on x86_64
    - New upstream Qt 4.0.1 from kde-copy
    - Applied kde-copy patches
    - Removed separated debug packages. What seenn to be a good idea on the beggining makes bad since core
      will always made provides for both debug and release. so now just release is compiled, old _debug packages
      will be obsoleted and id compiled with debug, debug libs go with release libraries.
    - Fix wronh version caused by a subversion conflict in spec
    - Added current qt-copy snapshot
    - Adopted Laurent solution for release, since this isn't an official 4.0.1 yet (
      my mess )
    - Adopted Nick Brown request to add rpm build switch for mysql Reference:
      http://qa.mandriva.com/twiki/bin/view/Main/SpecfilesSwitch
    - Fixed dependency bug for qtcore4-debug ( missing epoch )
    - Changed to 4.0.0.1 since isn't 4.0.1 official
      Thanks to Thierry Vignaud
    - Fix pkgconfig placement
    - No parallel building
    - Updated from qt-copy to 4.0.1 snapshot
    - Splitted debug andregular libraries
    - Added new pkgconfig files
    - Again, missed point correct lib64 libraries
    - fixed build requires for lib64
    - Fixed lib64 lib placement
    - Qt 4 GPL final release. ( Do the qt4dance :)
    - Added desktop menu item for designer-qt4
    - Based on qt-copy from KDE, updated by Simon Hausmann
    - Updated new RC1 from qt-copy
    - Renabled core libraries
    - Still on debug mode
    - Uploading package ./qt4

  + Andreas Hasenack <andreas@mandriva.com>
    - renamed mdv to packages because mdv is too generic and it's hosting only packages anyway