[packages/libqzeitgeist] - added cmake patch (port from automoc4 to cmake automoc support + linking fixes) - release 5
qboosh
qboosh at pld-linux.org
Mon Mar 23 18:05:38 CET 2015
commit 7d446bc40814f54da451661c3962f079dfffc747
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Mar 23 18:07:18 2015 +0100
- added cmake patch (port from automoc4 to cmake automoc support + linking fixes)
- release 5
libqzeitgeist-cmake.patch | 71 +++++++++++++++++++++++++++++++++++++++++++++++
libqzeitgeist.spec | 7 +++--
2 files changed, 75 insertions(+), 3 deletions(-)
---
diff --git a/libqzeitgeist.spec b/libqzeitgeist.spec
index 83c35eb..6873d18 100644
--- a/libqzeitgeist.spec
+++ b/libqzeitgeist.spec
@@ -2,19 +2,19 @@ Summary: Qt interface for Zeitgeist service
Summary(pl.UTF-8): Interfejs Qt do usługi Zeitgeist
Name: libqzeitgeist
Version: 0.8.0
-Release: 4
+Release: 5
License: LGPL v2.1+
Group: Libraries
Source0: ftp://ftp.kde.org/pub/kde/stable/libqzeitgeist/0.8.0/src/%{name}-%{version}.tar.bz2
# Source0-md5: 97bdea6a1865db7d5f29c93e3a492f24
+Patch0: %{name}-cmake.patch
URL: https://projects.kde.org/projects/kdesupport/libqzeitgeist/
BuildRequires: QtCore-devel >= 4.7.0
BuildRequires: QtDBus-devel >= 4.7.0
BuildRequires: QtDeclarative-devel >= 4.7.0
BuildRequires: QtGui-devel >= 4.7.0
BuildRequires: QtTest-devel >= 4.7.0
-BuildRequires: automoc4 >= 0.9.88
-BuildRequires: cmake >= 2.6
+BuildRequires: cmake >= 2.8.6
BuildRequires: python-zeitgeist >= 0.8
BuildRequires: qt4-build
BuildRequires: qt4-qmake
@@ -59,6 +59,7 @@ Wtyczka Qt Zeitgeist dla QtDeclarative.
%prep
%setup -q
+%patch0 -p1
%build
install -d build
diff --git a/libqzeitgeist-cmake.patch b/libqzeitgeist-cmake.patch
new file mode 100644
index 0000000..40b6296
--- /dev/null
+++ b/libqzeitgeist-cmake.patch
@@ -0,0 +1,71 @@
+--- libqzeitgeist-0.8.0/declarative/CMakeLists.txt.orig 2011-10-27 16:08:58.000000000 +0200
++++ libqzeitgeist-0.8.0/declarative/CMakeLists.txt 2015-03-23 15:57:47.705048993 +0100
+@@ -1,8 +1,9 @@
+-find_package(Automoc4)
+ include(${QT_USE_FILE})
+
+ add_definitions(${QT_DEFINITIONS})
+
++set(CMAKE_AUTOMOC TRUE)
++
+ set(declarative_SRCS
+ declarativeevent.cpp
+ declarativelogmodel.cpp
+@@ -12,7 +13,7 @@ set(declarative_SRCS
+
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/../src/)
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src/)
+-automoc4_add_library(QZeitgeistDeclarativePlugin MODULE ${declarative_SRCS})
++add_library(QZeitgeistDeclarativePlugin MODULE ${declarative_SRCS})
+
+ target_link_libraries(QZeitgeistDeclarativePlugin ${QT_LIBRARIES} qzeitgeist)
+
+--- libqzeitgeist-0.8.0/declarative/plugin.cpp.orig 2011-10-27 16:08:58.000000000 +0200
++++ libqzeitgeist-0.8.0/declarative/plugin.cpp 2015-03-23 17:06:09.838210172 +0100
+@@ -43,4 +43,6 @@ void Plugin::registerTypes(const char *u
+ } // namespace Declarative
+ } // namespace QZeitgeist
+
++Q_EXPORT_PLUGIN2(qzeitgeistdeclarativeplugin, QZeitgeist::Declarative::Plugin);
++
+ #include "plugin.moc"
+--- libqzeitgeist-0.8.0/declarative/plugin.h.orig 2011-10-27 16:08:58.000000000 +0200
++++ libqzeitgeist-0.8.0/declarative/plugin.h 2015-03-23 17:06:10.558210145 +0100
+@@ -39,6 +39,4 @@ public:
+ } // namespace Declarative
+ } // namespace QZeitgeist
+
+-Q_EXPORT_PLUGIN2(qzeitgeistdeclarativeplugin, QZeitgeist::Declarative::Plugin);
+-
+ #endif // PLUGIN_H
+--- libqzeitgeist-0.8.0/src/CMakeLists.txt.orig 2011-10-27 16:08:58.000000000 +0200
++++ libqzeitgeist-0.8.0/src/CMakeLists.txt 2015-03-23 15:56:44.075051663 +0100
+@@ -4,7 +4,7 @@ if (__HAVE_GCC_VISIBILITY AND NOT WIN32)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
+ endif (__HAVE_GCC_VISIBILITY AND NOT WIN32)
+
+-find_package(Automoc4)
++set(CMAKE_AUTOMOC TRUE)
+ include(${QT_USE_FILE})
+ include(QZeitgeistMacros)
+
+@@ -59,7 +59,7 @@ zg_add_dbus_interface(qzeitgeist_SRCS db
+
+ qt4_add_dbus_adaptor(qzeitgeist_SRCS dbus-xml/org.gnome.zeitgeist.Monitor.xml monitor_p.h QZeitgeist::MonitorPrivate)
+
+-automoc4_add_library(qzeitgeist SHARED ${qzeitgeist_SRCS} interpretation.h manifestation.h)
++add_library(qzeitgeist SHARED ${qzeitgeist_SRCS} interpretation.h manifestation.h)
+
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/interpretation.h
+ COMMAND ${CMAKE_SOURCE_DIR}/scripts/onto2cpp.py -o Interpretation > ${CMAKE_CURRENT_BINARY_DIR}/interpretation.h
+--- libqzeitgeist-0.8.0/CMakeLists.txt.orig 2011-10-27 16:08:58.000000000 +0200
++++ libqzeitgeist-0.8.0/CMakeLists.txt 2015-03-23 17:27:41.688155960 +0100
+@@ -6,7 +6,7 @@
+ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
+ set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
+
+-find_package(Qt4 4.7.0 COMPONENTS QtCore QtDBus QtTest QtDeclarative REQUIRED)
++find_package(Qt4 4.7.0 COMPONENTS QtCore QtDBus QtGui QtTest QtDeclarative REQUIRED)
+
+
+ set(QZEITGEIST_VERSION_MAJOR 0)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libqzeitgeist.git/commitdiff/7d446bc40814f54da451661c3962f079dfffc747
More information about the pld-cvs-commit
mailing list