[packages/kde4-baloo] - fix moc parsing - rel 6

baggins baggins at pld-linux.org
Sun Apr 30 00:31:27 CEST 2017


commit 841897fc1020ee5e4d02a34230b7f2fa30c2c092
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Apr 30 00:31:12 2017 +0200

    - fix moc parsing
    - rel 6

 kde4-baloo.spec |   4 +-
 moc.patch       | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 131 insertions(+), 1 deletion(-)
---
diff --git a/kde4-baloo.spec b/kde4-baloo.spec
index 7b06050..4b49db6 100644
--- a/kde4-baloo.spec
+++ b/kde4-baloo.spec
@@ -6,12 +6,13 @@
 Summary:	A framework for searching and managing metadata
 Name:		kde4-baloo
 Version:	4.14.3
-Release:	5
+Release:	6
 License:	LGPLv2 or LGPLv3
 Group:		X11/Applications
 URL:		http://www.kde.org/
 Source0:	http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
 # Source0-md5:	09575539cf2c76c951a67da00bd5df5b
+Patch0:		moc.patch
 BuildRequires:	QtCore-devel >= %{qtver}
 BuildRequires:	akonadi-devel >= 1.12.0
 BuildRequires:	kde4-kdelibs-devel >= %{version}
@@ -35,6 +36,7 @@ Baloo development files and libraries.
 
 %prep
 %setup -q -n %{orgname}-%{version}
+%patch0 -p1
 
 %build
 install -d build
diff --git a/moc.patch b/moc.patch
new file mode 100644
index 0000000..7b9a9be
--- /dev/null
+++ b/moc.patch
@@ -0,0 +1,128 @@
+diff -ur baloo-4.14.3/src/pim/agent/agent.h baloo-4.14.3-moc/src/pim/agent/agent.h
+--- baloo-4.14.3/src/pim/agent/agent.h	2014-11-06 13:03:28.000000000 +0100
++++ baloo-4.14.3-moc/src/pim/agent/agent.h	2017-04-30 00:18:47.777785952 +0200
+@@ -23,8 +23,10 @@
+ #ifndef AGENT_H
+ #define AGENT_H
+ 
++#ifndef Q_MOC_RUN
+ #include <akonadi/agentbase.h>
+ #include <akonadi/collection.h>
++#endif
+ 
+ #include <QTimer>
+ #include <QDateTime>
+diff -ur baloo-4.14.3/src/pim/agent/autotests/indexertest.cpp baloo-4.14.3-moc/src/pim/agent/autotests/indexertest.cpp
+--- baloo-4.14.3/src/pim/agent/autotests/indexertest.cpp	2014-11-06 13:03:28.000000000 +0100
++++ baloo-4.14.3-moc/src/pim/agent/autotests/indexertest.cpp	2017-04-30 00:22:15.849794136 +0200
+@@ -20,6 +20,7 @@
+  *
+  */
+ 
++#ifndef Q_MOC_RUN
+ #include <QTest>
+ #include <Akonadi/Collection>
+ #include <KABC/Addressee>
+@@ -30,6 +31,7 @@
+ #include <../pim/search/email/emailsearchstore.h>
+ #include <../pim/search/contact/contactsearchstore.h>
+ #include <query.h>
++#endif
+ 
+ Q_DECLARE_METATYPE(QSet<qint64>)
+ Q_DECLARE_METATYPE(QList<qint64>)
+diff -ur baloo-4.14.3/src/pim/agent/tests/emailtest.cpp baloo-4.14.3-moc/src/pim/agent/tests/emailtest.cpp
+--- baloo-4.14.3/src/pim/agent/tests/emailtest.cpp	2014-11-06 13:03:28.000000000 +0100
++++ baloo-4.14.3-moc/src/pim/agent/tests/emailtest.cpp	2017-04-30 00:20:48.430882946 +0200
+@@ -20,6 +20,7 @@
+  *
+  */
+ 
++#ifndef Q_MOC_RUN
+ #include "emailindexer.h"
+ 
+ #include <QApplication>
+@@ -32,6 +33,7 @@
+ #include <Akonadi/ItemFetchJob>
+ #include <Akonadi/ItemFetchScope>
+ #include <Akonadi/Item>
++#endif
+ 
+ class App : public QApplication {
+     Q_OBJECT
+diff -ur baloo-4.14.3/src/pim/akonadiplugin/autotests/searchplugintest.cpp baloo-4.14.3-moc/src/pim/akonadiplugin/autotests/searchplugintest.cpp
+--- baloo-4.14.3/src/pim/akonadiplugin/autotests/searchplugintest.cpp	2014-11-06 13:03:28.000000000 +0100
++++ baloo-4.14.3-moc/src/pim/akonadiplugin/autotests/searchplugintest.cpp	2017-04-30 00:24:20.269656046 +0200
+@@ -20,6 +20,7 @@
+  *
+  */
+ 
++#ifndef Q_MOC_RUN
+ #include <QTest>
+ #include <Akonadi/Collection>
+ #include <KABC/Addressee>
+@@ -35,6 +36,7 @@
+ #include <../pim/search/note/notesearchstore.h>
+ #include <akonadi/searchquery.h>
+ #include <akonadi/kmime/messageflags.h>
++#endif
+ 
+ Q_DECLARE_METATYPE(QSet<qint64>)
+ Q_DECLARE_METATYPE(QList<qint64>)
+diff -ur baloo-4.14.3/src/pim/lib/tests/contactcompletiontest.cpp baloo-4.14.3-moc/src/pim/lib/tests/contactcompletiontest.cpp
+--- baloo-4.14.3/src/pim/lib/tests/contactcompletiontest.cpp	2014-11-06 13:03:28.000000000 +0100
++++ baloo-4.14.3-moc/src/pim/lib/tests/contactcompletiontest.cpp	2017-04-30 00:23:43.498711650 +0200
+@@ -20,6 +20,7 @@
+  *
+  */
+ 
++#ifndef Q_MOC_RUN
+ #include "../contactcompleter.h"
+ 
+ #include <iostream>
+@@ -31,6 +32,7 @@
+ #include <Akonadi/ItemFetchScope>
+ 
+ #include <KMime/Message>
++#endif
+ 
+ using namespace Baloo::PIM;
+ 
+diff -ur baloo-4.14.3/src/pim/lib/tests/contactsearchtest.cpp baloo-4.14.3-moc/src/pim/lib/tests/contactsearchtest.cpp
+--- baloo-4.14.3/src/pim/lib/tests/contactsearchtest.cpp	2014-11-06 13:03:28.000000000 +0100
++++ baloo-4.14.3-moc/src/pim/lib/tests/contactsearchtest.cpp	2017-04-30 00:23:27.124957805 +0200
+@@ -20,6 +20,7 @@
+  *
+  */
+ 
++#ifndef Q_MOC_RUN
+ #include "contactquery.h"
+ #include "../resultiterator.h"
+ 
+@@ -28,6 +29,7 @@
+ #include <KDebug>
+ 
+ #include <Akonadi/Contact/ContactSearchJob>
++#endif
+ 
+ using namespace Baloo::PIM;
+ 
+diff -ur baloo-4.14.3/src/pim/lib/tests/emailquerytest.cpp baloo-4.14.3-moc/src/pim/lib/tests/emailquerytest.cpp
+--- baloo-4.14.3/src/pim/lib/tests/emailquerytest.cpp	2014-11-06 13:03:28.000000000 +0100
++++ baloo-4.14.3-moc/src/pim/lib/tests/emailquerytest.cpp	2017-04-30 00:23:01.404297273 +0200
+@@ -20,6 +20,7 @@
+  *
+  */
+ 
++#ifndef Q_MOC_RUN
+ #include "../resultiterator.h"
+ #include "../emailquery.h"
+ 
+@@ -31,6 +32,7 @@
+ #include <Akonadi/ItemFetchScope>
+ 
+ #include <KMime/Message>
++#endif
+ 
+ using namespace Baloo::PIM;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kde4-baloo.git/commitdiff/841897fc1020ee5e4d02a34230b7f2fa30c2c092



More information about the pld-cvs-commit mailing list