%define subdirs src/corelib src/xml src/network src/gui src/winmain
Name: mingw32-qt-win
-Version: 4.4.3
-Release: 4%{?dist}
+Version: 4.5.0
+Release: 0.1.rc1.%{?dist}
Summary: Qt for Windows
License: GPLv2+
Group: Development/Libraries
URL: http://www.qtsoftware.com/
-Source0: ftp://ftp.trolltech.no/qt/source/qt-win-opensource-src-%{version}.zip
+Source0: ftp://ftp.trolltech.no/qt/source/qt-win-opensource-src-%{version}-rc1.zip
# To make the configure patch - see below.
Source1: qt-win-configure.sh
# Generate this patch using "qt-win-configure.sh".
Patch0: qt-win-configure.patch
-# The released source contains multiple, blatant build bugs which have
-# been fixed (further) upstream months ago. Urgghhh. These patches
-# fix them.
-Patch10: mingw32-qt-4.4.3-atomic-volatile.patch
Patch11: mingw32-qt-4.4.3-no-fpu-functions.patch
-Patch12: mingw32-qt-4.4.3-wininput.patch
-
-# http://lists-archives.org/mingw-users/11845-problem-compile-qt-4-4-2-with-latest-w32api.html
-Patch20: mingw32-qt-4.4.3-subauth.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: mingw32-binutils
# For the native qmake, moc programs.
+# Note that the precise same native version is required - eg. moc will
+# not work unless it's the same version.
+#BuildRequires: qt-devel = %{version} Stupid, can't write this ...
BuildRequires: qt-devel
+
BuildRequires: zip
BuildRequires: dos2unix
%prep
-%setup -q -n qt-win-opensource-src-%{version}
+%setup -q -n qt-win-opensource-src-%{version}-rc1
%patch0 -p1
-%patch10 -p1
%patch11 -p1
-%patch12 -p1
-%patch20 -p1
-
-for f in changes-%{version} LICENSE.GPL2 LICENSE.GPL3 GPL_EXCEPTION_ADDENDUM.TXT GPL_EXCEPTION.TXT OPENSOURCE-NOTICE.TXT README; do
+for f in LICENSE.GPL2 LICENSE.GPL3 GPL_EXCEPTION_ADDENDUM.TXT GPL_EXCEPTION.TXT OPENSOURCE-NOTICE.TXT README; do
dos2unix --keepdate $f
done
%files
%defattr(-,root,root)
-%doc changes-%{version} configure.output
+%doc configure.output
%doc LICENSE.GPL2 LICENSE.GPL3 GPL_EXCEPTION_ADDENDUM.TXT GPL_EXCEPTION.TXT
%doc OPENSOURCE-NOTICE.TXT README
%{_mingw32_bindir}/QtCore4.dll
%changelog
+* Sat Feb 21 2009 Richard W.M. Jones <rjones@redhat.com> - 4.5.0-0.1.rc1
+- Update to Qt 4.5.0-rc1.
+
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 4.4.3-4
- Rebuild for mingw32-gcc 4.4
-diff -urN qt-win-opensource-src-4.4.3.orig/configure.cache qt-win-opensource-src-4.4.3/configure.cache
---- qt-win-opensource-src-4.4.3.orig/configure.cache 1970-01-01 01:00:00.000000000 +0100
-+++ qt-win-opensource-src-4.4.3/configure.cache 2009-02-02 14:39:05.000000000 +0000
+diff -urN qt-win-opensource-src-4.5.0-rc1.orig/configure.cache qt-win-opensource-src-4.5.0-rc1/configure.cache
+--- qt-win-opensource-src-4.5.0-rc1.orig/configure.cache 1970-01-01 01:00:00.000000000 +0100
++++ qt-win-opensource-src-4.5.0-rc1/configure.cache 2009-02-21 11:25:13.000000000 +0000
@@ -0,0 +1,30 @@
+-platform \r
+fedora-win32-cross \r
+-no-sse2 \r
+-release \r
+-shared \r
-diff -urN qt-win-opensource-src-4.4.3.orig/configure.output qt-win-opensource-src-4.4.3/configure.output
---- qt-win-opensource-src-4.4.3.orig/configure.output 1970-01-01 01:00:00.000000000 +0100
-+++ qt-win-opensource-src-4.4.3/configure.output 2009-02-02 14:39:05.000000000 +0000
-@@ -0,0 +1,119 @@
-+Xlib: extension "Generic Event Extension" missing on display "localhost:10.0".
+diff -urN qt-win-opensource-src-4.5.0-rc1.orig/configure.output qt-win-opensource-src-4.5.0-rc1/configure.output
+--- qt-win-opensource-src-4.5.0-rc1.orig/configure.output 1970-01-01 01:00:00.000000000 +0100
++++ qt-win-opensource-src-4.5.0-rc1/configure.output 2009-02-21 11:25:13.000000000 +0000
+@@ -0,0 +1,122 @@
++Xlib: extension "Generic Event Extension" missing on display "localhost:13.0".
+\r
+This is the Qt for Windows Open Source Edition.\r
+\r
+ C:\windows\r\r
+ Z:\usr\i686-pc-mingw32\sys-root\mingw\bin\r
+You are licensed to use this software under the terms of the GNU GPL version 2 or 3.\r
-+See Z:/home/rjones/d/fedora-mingw--devel/qt-win/qt-win-opensource-src-4.4.3/LICENSE.GPL2\r
-+ or Z:/home/rjones/d/fedora-mingw--devel/qt-win/qt-win-opensource-src-4.4.3/LICENSE.GPL3\r
++See Z:/home/rjones/d/fedora-mingw--devel/qt-win/qt-win-opensource-src-4.5.0-rc1/LICENSE.GPL2\r
++ or Z:/home/rjones/d/fedora-mingw--devel/qt-win/qt-win-opensource-src-4.5.0-rc1/LICENSE.GPL3\r
+\r
+Configuration:\r
+ dist-config\r\r
+ qt3support\r\r
+ opengl\r\r
+ ipv6\r\r
++ scripttools\r\r
+ xmlpatterns\r\r
+ svg\r\r
+ minimal-config\r\r
+QtXmlPatterns support.......yes\r
+Phonon support..............no\r
+WebKit support..............no\r
++QtScriptTools support.......yes\r
++Graphics System.............raster\r
+Qt3 compatibility...........yes\r
+\r
+Third Party Libraries:\r
+ SQLite2.................no\r
+ InterBase...............no\r
+\r
-+Sources are in..............Z:\home\rjones\d\fedora-mingw--devel\qt-win\qt-win-opensource-src-4.4.3\r
-+Build is done in............Z:\home\rjones\d\fedora-mingw--devel\qt-win\qt-win-opensource-src-4.4.3\r
++Sources are in..............Z:\home\rjones\d\fedora-mingw--devel\qt-win\qt-win-opensource-src-4.5.0-rc1\r
++Build is done in............Z:\home\rjones\d\fedora-mingw--devel\qt-win\qt-win-opensource-src-4.5.0-rc1\r
+Install prefix............../usr/i686-pc-mingw32/sys-root/mingw\r
+Headers installed to......../usr/i686-pc-mingw32/sys-root/mingw/include\r
+Libraries installed to....../usr/i686-pc-mingw32/sys-root/mingw/lib\r
+Processing of project files have been disabled.\r
+Only use this option if you really know what you're doing.\r
+\r
-diff -urN qt-win-opensource-src-4.4.3.orig/include/Qt/qconfig.h qt-win-opensource-src-4.4.3/include/Qt/qconfig.h
---- qt-win-opensource-src-4.4.3.orig/include/Qt/qconfig.h 1970-01-01 01:00:00.000000000 +0100
-+++ qt-win-opensource-src-4.4.3/include/Qt/qconfig.h 2009-02-02 14:39:05.000000000 +0000
+diff -urN qt-win-opensource-src-4.5.0-rc1.orig/include/Qt/qconfig.h qt-win-opensource-src-4.5.0-rc1/include/Qt/qconfig.h
+--- qt-win-opensource-src-4.5.0-rc1.orig/include/Qt/qconfig.h 1970-01-01 01:00:00.000000000 +0100
++++ qt-win-opensource-src-4.5.0-rc1/include/Qt/qconfig.h 2009-02-21 11:25:13.000000000 +0000
@@ -0,0 +1 @@
+#include "../../src/corelib/global/qconfig.h"
-diff -urN qt-win-opensource-src-4.4.3.orig/include/QtCore/qconfig.h qt-win-opensource-src-4.4.3/include/QtCore/qconfig.h
---- qt-win-opensource-src-4.4.3.orig/include/QtCore/qconfig.h 1970-01-01 01:00:00.000000000 +0100
-+++ qt-win-opensource-src-4.4.3/include/QtCore/qconfig.h 2009-02-02 14:39:05.000000000 +0000
+diff -urN qt-win-opensource-src-4.5.0-rc1.orig/include/QtCore/qconfig.h qt-win-opensource-src-4.5.0-rc1/include/QtCore/qconfig.h
+--- qt-win-opensource-src-4.5.0-rc1.orig/include/QtCore/qconfig.h 1970-01-01 01:00:00.000000000 +0100
++++ qt-win-opensource-src-4.5.0-rc1/include/QtCore/qconfig.h 2009-02-21 11:25:13.000000000 +0000
@@ -0,0 +1 @@
+#include "../../src/corelib/global/qconfig.h"
-diff -urN qt-win-opensource-src-4.4.3.orig/mkspecs/default/qmake.conf qt-win-opensource-src-4.4.3/mkspecs/default/qmake.conf
---- qt-win-opensource-src-4.4.3.orig/mkspecs/default/qmake.conf 1970-01-01 01:00:00.000000000 +0100
-+++ qt-win-opensource-src-4.4.3/mkspecs/default/qmake.conf 2009-02-02 14:39:05.000000000 +0000
+diff -urN qt-win-opensource-src-4.5.0-rc1.orig/mkspecs/default/qmake.conf qt-win-opensource-src-4.5.0-rc1/mkspecs/default/qmake.conf
+--- qt-win-opensource-src-4.5.0-rc1.orig/mkspecs/default/qmake.conf 1970-01-01 01:00:00.000000000 +0100
++++ qt-win-opensource-src-4.5.0-rc1/mkspecs/default/qmake.conf 2009-02-21 11:25:13.000000000 +0000
@@ -0,0 +1,109 @@
+#\r
+# qmake configuration for fedora-win32-cross\r
+QMAKE_STRIPFLAGS_LIB += --strip-unneeded\r
+load(qt_config)\r
+\r
-+QMAKESPEC_ORIGINAL=Z:/home/rjones/d/fedora-mingw--devel/qt-win/qt-win-opensource-src-4.4.3/mkspecs/fedora-win32-cross\r
-diff -urN qt-win-opensource-src-4.4.3.orig/mkspecs/default/qplatformdefs.h qt-win-opensource-src-4.4.3/mkspecs/default/qplatformdefs.h
---- qt-win-opensource-src-4.4.3.orig/mkspecs/default/qplatformdefs.h 1970-01-01 01:00:00.000000000 +0100
-+++ qt-win-opensource-src-4.4.3/mkspecs/default/qplatformdefs.h 2009-02-02 14:39:01.000000000 +0000
++QMAKESPEC_ORIGINAL=Z:/home/rjones/d/fedora-mingw--devel/qt-win/qt-win-opensource-src-4.5.0-rc1/mkspecs/fedora-win32-cross\r
+diff -urN qt-win-opensource-src-4.5.0-rc1.orig/mkspecs/default/qplatformdefs.h qt-win-opensource-src-4.5.0-rc1/mkspecs/default/qplatformdefs.h
+--- qt-win-opensource-src-4.5.0-rc1.orig/mkspecs/default/qplatformdefs.h 1970-01-01 01:00:00.000000000 +0100
++++ qt-win-opensource-src-4.5.0-rc1/mkspecs/default/qplatformdefs.h 2009-02-21 11:25:06.000000000 +0000
@@ -0,0 +1,160 @@
+/****************************************************************************\r
+**\r
+\r
+\r
+#endif // QPLATFORMDEFS_H\r
-diff -urN qt-win-opensource-src-4.4.3.orig/mkspecs/qconfig.pri qt-win-opensource-src-4.4.3/mkspecs/qconfig.pri
---- qt-win-opensource-src-4.4.3.orig/mkspecs/qconfig.pri 1970-01-01 01:00:00.000000000 +0100
-+++ qt-win-opensource-src-4.4.3/mkspecs/qconfig.pri 2009-02-02 14:39:05.000000000 +0000
+diff -urN qt-win-opensource-src-4.5.0-rc1.orig/mkspecs/qconfig.pri qt-win-opensource-src-4.5.0-rc1/mkspecs/qconfig.pri
+--- qt-win-opensource-src-4.5.0-rc1.orig/mkspecs/qconfig.pri 1970-01-01 01:00:00.000000000 +0100
++++ qt-win-opensource-src-4.5.0-rc1/mkspecs/qconfig.pri 2009-02-21 11:25:13.000000000 +0000
@@ -0,0 +1,11 @@
+CONFIG+= release shared stl exceptions rtti\r
+QT_ARCH = windows\r
+QT_EDITION = OpenSource\r
-+QT_CONFIG += release zlib png accessibility qt3support opengl ipv6 xmlpatterns svg minimal-config small-config medium-config large-config full-config\r
++QT_CONFIG += release zlib png accessibility qt3support opengl ipv6 scripttools xmlpatterns svg minimal-config small-config medium-config large-config full-config\r
+#versioning \r
-+QT_VERSION = 4.4.3\r
++QT_VERSION = 4.5.0-rc1\r
+QT_MAJOR_VERSION = 4\r
-+QT_MINOR_VERSION = 4\r
-+QT_PATCH_VERSION = 3\r
++QT_MINOR_VERSION = 5\r
++QT_PATCH_VERSION = 0\r
+#Qt for Windows CE c-runtime deployment\r
+QT_CE_C_RUNTIME = no\r
-diff -urN qt-win-opensource-src-4.4.3.orig/.qmake.cache qt-win-opensource-src-4.4.3/.qmake.cache
---- qt-win-opensource-src-4.4.3.orig/.qmake.cache 1970-01-01 01:00:00.000000000 +0100
-+++ qt-win-opensource-src-4.4.3/.qmake.cache 2009-02-02 14:39:05.000000000 +0000
+diff -urN qt-win-opensource-src-4.5.0-rc1.orig/.qmake.cache qt-win-opensource-src-4.5.0-rc1/.qmake.cache
+--- qt-win-opensource-src-4.5.0-rc1.orig/.qmake.cache 1970-01-01 01:00:00.000000000 +0100
++++ qt-win-opensource-src-4.5.0-rc1/.qmake.cache 2009-02-21 11:25:13.000000000 +0000
@@ -0,0 +1,20 @@
+QMAKE_QT_VERSION_OVERRIDE = 4\r
+OBJECTS_DIR = tmp\obj\release_shared\r
+imageformat-plugins += gif tiff jpeg\r
+CONFIG += dist-config large-config medium-config minimal-config small-config full-config release incremental create_prl link_prl depend_includepath QTDIR_build\r
+QT_BUILD_PARTS = libs tools examples demos docs translations\r
-+QMAKESPEC = Z:\home\rjones\d\fedora-mingw--devel\qt-win\qt-win-opensource-src-4.4.3\mkspecs\fedora-win32-cross\r
++QMAKESPEC = Z:\home\rjones\d\fedora-mingw--devel\qt-win\qt-win-opensource-src-4.5.0-rc1\mkspecs\fedora-win32-cross\r
+ARCH = windows\r
-+QT_BUILD_TREE = Z:\home\rjones\d\fedora-mingw--devel\qt-win\qt-win-opensource-src-4.4.3\r
-+QT_SOURCE_TREE = Z:\home\rjones\d\fedora-mingw--devel\qt-win\qt-win-opensource-src-4.4.3\r
++QT_BUILD_TREE = Z:\home\rjones\d\fedora-mingw--devel\qt-win\qt-win-opensource-src-4.5.0-rc1\r
++QT_SOURCE_TREE = Z:\home\rjones\d\fedora-mingw--devel\qt-win\qt-win-opensource-src-4.5.0-rc1\r
+QMAKE_MOC = $$QT_BUILD_TREE\bin\moc.exe\r
+QMAKE_UIC = $$QT_BUILD_TREE\bin\uic.exe\r
+QMAKE_UIC3 = $$QT_BUILD_TREE\bin\uic3.exe\r
+QMAKE_DUMPCPP = $$QT_BUILD_TREE\bin\dumpcpp.exe\r
+QMAKE_INCDIR_QT = $$QT_BUILD_TREE\include\r
+QMAKE_LIBDIR_QT = $$QT_BUILD_TREE\lib\r
-diff -urN qt-win-opensource-src-4.4.3.orig/src/corelib/global/qconfig.cpp qt-win-opensource-src-4.4.3/src/corelib/global/qconfig.cpp
---- qt-win-opensource-src-4.4.3.orig/src/corelib/global/qconfig.cpp 1970-01-01 01:00:00.000000000 +0100
-+++ qt-win-opensource-src-4.4.3/src/corelib/global/qconfig.cpp 2009-02-02 14:39:05.000000000 +0000
+diff -urN qt-win-opensource-src-4.5.0-rc1.orig/src/corelib/global/qconfig.cpp qt-win-opensource-src-4.5.0-rc1/src/corelib/global/qconfig.cpp
+--- qt-win-opensource-src-4.5.0-rc1.orig/src/corelib/global/qconfig.cpp 1970-01-01 01:00:00.000000000 +0100
++++ qt-win-opensource-src-4.5.0-rc1/src/corelib/global/qconfig.cpp 2009-02-21 11:25:13.000000000 +0000
@@ -0,0 +1,27 @@
+/* Licensed */
+static const char qt_configure_licensee_str [512 + 12] = "qt_lcnsuser=Open Source";
+#define QT_CONFIGURE_EXAMPLES_PATH qt_configure_examples_path_str + 12;
+#define QT_CONFIGURE_DEMOS_PATH qt_configure_demos_path_str + 12;
+
-diff -urN qt-win-opensource-src-4.4.3.orig/src/corelib/global/qconfig.h qt-win-opensource-src-4.4.3/src/corelib/global/qconfig.h
---- qt-win-opensource-src-4.4.3.orig/src/corelib/global/qconfig.h 1970-01-01 01:00:00.000000000 +0100
-+++ qt-win-opensource-src-4.4.3/src/corelib/global/qconfig.h 2009-02-02 14:39:05.000000000 +0000
-@@ -0,0 +1,90 @@
+diff -urN qt-win-opensource-src-4.5.0-rc1.orig/src/corelib/global/qconfig.h qt-win-opensource-src-4.5.0-rc1/src/corelib/global/qconfig.h
+--- qt-win-opensource-src-4.5.0-rc1.orig/src/corelib/global/qconfig.h 1970-01-01 01:00:00.000000000 +0100
++++ qt-win-opensource-src-4.5.0-rc1/src/corelib/global/qconfig.h 2009-02-21 11:25:13.000000000 +0000
+@@ -0,0 +1,102 @@
+/* Everything */
+
+#ifndef QT_DLL
+
+// Compile time features
+#define QT_ARCH_WINDOWS
++#if defined(QT_GRAPHICSSYSTEM_RASTER) && defined(QT_NO_GRAPHICSSYSTEM_RASTER)
++# undef QT_GRAPHICSSYSTEM_RASTER
++#elif !defined(QT_GRAPHICSSYSTEM_RASTER)
++# define QT_GRAPHICSSYSTEM_RASTER
++#endif
++
+#if defined(QT_NO_DBUS) && defined(QT_DBUS)
+# undef QT_NO_DBUS
+#elif !defined(QT_NO_DBUS)
+# define QT_NO_PHONON
+#endif
+
++#if defined(QT_NO_STYLE_GTK) && defined(QT_STYLE_GTK)
++# undef QT_NO_STYLE_GTK
++#elif !defined(QT_NO_STYLE_GTK)
++# define QT_NO_STYLE_GTK
++#endif
++
+#if defined(QT_NO_STYLE_WINDOWSCE) && defined(QT_STYLE_WINDOWSCE)
+# undef QT_NO_STYLE_WINDOWSCE
+#elif !defined(QT_NO_STYLE_WINDOWSCE)