From 5ec98dafb16899cd5cc53720711fa163cb0917b5 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Aug 21 2009 08:31:46 +0000 Subject: apply qtcopy-define --- diff --git a/0118-qtcopy-define.diff b/0118-qtcopy-define.diff new file mode 100644 index 0000000..e3b86a8 --- /dev/null +++ b/0118-qtcopy-define.diff @@ -0,0 +1,24 @@ +qt-bugs@ issue : none +Trolltech task ID : none +applied: yes +author: David Faure + +Needed to distinguish qt-copy from released versions of qt, at least while +we backport API additions to qt-copy. + +Index: src/corelib/global/qglobal.h +=================================================================== +--- src/corelib/global/qglobal.h (revision 536662) ++++ src/corelib/global/qglobal.h (working copy) +@@ -38,6 +38,11 @@ + #include + #endif + ++/* QT_KDE_QT_COPY is set in qt-copy so that we know when we can use features backported to qt-copy ++ Keep in mind that it should also work with the right release of Qt, so use something like: ++ #if defined(QT_KDE_QT_COPY) || QT_VERSION >= 0x040200 */ ++#define QT_KDE_QT_COPY ++ + /* + The operating system, must be one of: (Q_OS_x) + diff --git a/qt.spec b/qt.spec index cb8426a..52bb41a 100644 --- a/qt.spec +++ b/qt.spec @@ -66,8 +66,9 @@ Patch100: qt-x11-opensource-src-4.5.2-CVE-2009-1725.patch # switch to kde-qt branches, qt-copy doesn't exist anymore Patch200: kde-qt-patches-20090820git.patch # these patches are not merged yet in kde-qt branches -Patch201: 0283-do-not-deduce-scrollbar-extent-twice.diff -Patch202: 0285-qgv-dontshowchildren.diff +Patch201: 0118-qtcopy-define.diff +Patch202: 0283-do-not-deduce-scrollbar-extent-twice.diff +Patch203: 0285-qgv-dontshowchildren.diff Source10: http://gstreamer.freedesktop.org/data/images/artwork/gstreamer-logo.svg Source11: hi16-phonon-gstreamer.png @@ -392,8 +393,9 @@ popd # kde-qt branch %patch200 -p1 -b .kde-qt-patches-20090820git -%patch201 -p0 -b .0283-do-not-deduce-scrollbar-extent-twice -%patch202 -p0 -b .0285-qgv-dontshowchildren +%patch201 -p1 -b .0118-qtcopy-define +%patch202 -p0 -b .0283-do-not-deduce-scrollbar-extent-twice +%patch203 -p0 -b .0285-qgv-dontshowchildren # drop -fexceptions from $RPM_OPT_FLAGS RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'` @@ -727,7 +729,7 @@ fi %files %defattr(-,root,root,-) -%doc README* LGPL_EXCEPTION.txt LICENSE.LGPL LICENSE.GPL3 +%doc README README.kde-qt LGPL_EXCEPTION.txt LICENSE.LGPL LICENSE.GPL3 %if "%{_qt4_libdir}" != "%{_libdir}" /etc/ld.so.conf.d/* %dir %{_qt4_libdir}