summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-02-08 09:37:36 (GMT)
committerMilan Crha <mcrha@redhat.com>2012-02-08 09:37:36 (GMT)
commit14bad699a1f1b672b9f863cccdc64c00c4291e61 (patch)
tree30ca6625c15661aaaf136abc29a0cf2f171f9620
parent48a4452c2ef1ebc31a2f17e73e2891eab999d604 (diff)
downloadmail-notification-14bad699a1f1b672b9f863cccdc64c00c4291e61.zip
mail-notification-14bad699a1f1b672b9f863cccdc64c00c4291e61.tar.gz
mail-notification-14bad699a1f1b672b9f863cccdc64c00c4291e61.tar.xz
Rebuild against newer evolution-data-server
-rw-r--r--mail-notification-5.4-libemail.patch100
-rw-r--r--mail-notification.spec9
2 files changed, 108 insertions, 1 deletions
diff --git a/mail-notification-5.4-libemail.patch b/mail-notification-5.4-libemail.patch
new file mode 100644
index 0000000..9e2ccb0
--- /dev/null
+++ b/mail-notification-5.4-libemail.patch
@@ -0,0 +1,100 @@
+diff -up mail-notification-5.4/build/src/mn-evolution-folder-tree-server.c.libemail mail-notification-5.4/build/src/mn-evolution-folder-tree-server.c
+--- mail-notification-5.4/build/src/mn-evolution-folder-tree-server.c.libemail 2012-02-08 10:18:21.261982020 +0100
++++ mail-notification-5.4/build/src/mn-evolution-folder-tree-server.c 2012-02-08 10:19:27.879757995 +0100
+@@ -30,7 +30,11 @@
+ #include <mail/mail-component.h>
+ #endif
+ #if EDS_CHECK_VERSION(3,1,0)
++#if EDS_CHECK_VERSION(3,3,5)
++#include <libemail-engine/e-mail-folder-utils.h>
++#else
+ #include <mail/e-mail-folder-utils.h>
++#endif
+ #include <mail/e-mail-browser.h>
+ #include <mail/e-mail-reader.h>
+ #include <shell/e-shell.h>
+diff -up mail-notification-5.4/build/src/mn-evolution-folder-tree-server-private.h.libemail mail-notification-5.4/build/src/mn-evolution-folder-tree-server-private.h
+--- mail-notification-5.4/build/src/mn-evolution-folder-tree-server-private.h.libemail 2012-02-08 10:18:32.773116469 +0100
++++ mail-notification-5.4/build/src/mn-evolution-folder-tree-server-private.h 2012-02-08 10:19:27.879757995 +0100
+@@ -5,9 +5,13 @@
+
+ #include "mn-evolution-folder-tree-server.h"
+ #include <libedataserver/eds-version.h>
++#if EDS_CHECK_VERSION(3,3,5)
++#include <libemail-engine/e-mail-session.h>
++#else
+ #if EDS_CHECK_VERSION(2,91,0)
+ #include <mail/e-mail-session.h>
+ #endif
++#endif
+
+ #ifdef __cplusplus
+ extern "C" {
+diff -up mail-notification-5.4/build/src/mn-evolution-server.c.libemail mail-notification-5.4/build/src/mn-evolution-server.c
+--- mail-notification-5.4/build/src/mn-evolution-server.c.libemail 2012-02-08 10:18:43.965246700 +0100
++++ mail-notification-5.4/build/src/mn-evolution-server.c 2012-02-08 10:19:27.909758343 +0100
+@@ -37,12 +37,17 @@
+ #include <mail/em-message-browser.h>
+ #endif
+ #include <mail/em-utils.h>
++#if EDS_CHECK_VERSION(3,3,5)
++#include <libemail-engine/e-mail-session.h>
++#include <libemail-engine/mail-tools.h>
++#else
++#include <mail/mail-tools.h>
+ #if EDS_CHECK_VERSION(2,91,0)
+ #include <mail/e-mail-session.h>
+ #else
+ #include <mail/mail-session.h>
+ #endif
+-#include <mail/mail-tools.h>
++#endif
+ #include "mn-evolution.h"
+ #include "mn-evolution-folder-tree-server.h"
+ #include "mn-evolution-plugin.h"
+diff -up mail-notification-5.4/jbsrc/jb.c.libemail mail-notification-5.4/jbsrc/jb.c
+--- mail-notification-5.4/jbsrc/jb.c.libemail 2012-02-08 10:18:55.885385460 +0100
++++ mail-notification-5.4/jbsrc/jb.c 2012-02-08 10:19:27.940758702 +0100
+@@ -635,6 +635,7 @@ jb_package_add_resources (void)
+ jb_group_add_data_file(group, "org-jylefort-mail-notification.eplug", "$evolution-plugin-dir");
+
+ jb_compile_options_add_cflags(object->compile_options, "$evolution-plugin-cflags");
++ jb_compile_options_add_cflags(object->compile_options, "$libemail-engine-cflags");
+
+ jb_group_add_dbus_interface(group,
+ "org.freedesktop.DBus.Properties",
+@@ -662,6 +663,7 @@ jb_package_add_resources (void)
+
+ jb_compile_options_add_package(plugin->compile_options, "gettext");
+ jb_compile_options_add_package(plugin->compile_options, "evolution-plugin");
++ jb_compile_options_add_package(plugin->compile_options, "libemail-engine");
+ jb_compile_options_add_package(plugin->compile_options, "dbus");
+
+ jb_group_add_dbus_interface(group,
+diff -up mail-notification-5.4/jbsrc/lib/src/extras/jb-evolution-plugin.c.libemail mail-notification-5.4/jbsrc/lib/src/extras/jb-evolution-plugin.c
+--- mail-notification-5.4/jbsrc/lib/src/extras/jb-evolution-plugin.c.libemail 2012-02-08 10:19:06.006503405 +0100
++++ mail-notification-5.4/jbsrc/lib/src/extras/jb-evolution-plugin.c 2012-02-08 10:19:27.969759042 +0100
+@@ -63,5 +63,5 @@ jb_evolution_plugin_check (const char *m
+ g_free(plugindir);
+ }
+
+- return TRUE;
++ return jb_check_packages("Evolution", "libemail-engine", "libemail-engine");
+ }
+diff -up mail-notification-5.4/src/mn-evolution-plugin.c.libemail mail-notification-5.4/src/mn-evolution-plugin.c
+--- mail-notification-5.4/src/mn-evolution-plugin.c.libemail 2012-02-08 10:19:16.006619648 +0100
++++ mail-notification-5.4/src/mn-evolution-plugin.c 2012-02-08 10:19:27.970759054 +0100
+@@ -27,8 +27,13 @@
+ #include <camel/camel.h>
+ #include <libedataserver/eds-version.h>
+ #include <mail/em-event.h>
++#if EDS_CHECK_VERSION(3,3,5)
++#include <libemail-engine/e-mail-folder-utils.h>
++#include <libemail-engine/mail-tools.h>
++#else
+ #include <mail/mail-tools.h>
+ #include <mail/e-mail-folder-utils.h>
++#endif
+ #include "mn-evolution.h"
+ #include "mn-evolution-server.h"
+ #include "mn-evolution-plugin.h"
diff --git a/mail-notification.spec b/mail-notification.spec
index 20fd2c6..9a60c5d 100644
--- a/mail-notification.spec
+++ b/mail-notification.spec
@@ -1,6 +1,6 @@
Name: mail-notification
Version: 5.4
-Release: 50%{?dist}
+Release: 51%{?dist}
Summary: Status icon that informs you if you have new mail
Group: Applications/Internet
@@ -23,6 +23,7 @@ Patch12: mail-notification-5.4-add-fallback-icon.patch
Patch13: popup-markup.patch
Patch14: mail-notification-5.4-make-properties-dialog-resizable.patch
Patch15: mail-notification-5.4-prevent-memory-corruption-in-tooltips-code.patch
+Patch16: mail-notification-5.4-libemail.patch
BuildRequires: gettext
BuildRequires: desktop-file-utils, scrollkeeper
@@ -128,6 +129,8 @@ sed -i s@'<property name="has_separator">False</property>'@@ properties-dialog.u
popd
%endif
+# Adapt to evolution 3.3.5 libemail changes
+%patch16 -p1 -b .libemail
%build
@@ -231,6 +234,10 @@ touch --no-create %{_datadir}/icons/hicolor || :
%changelog
+* Wed Feb 08 2012 Milan Crha <mcrha@redhat.com> - 5.4-51
+- Rebuild against newer evolution-data-server
+- Add patch to build with evolution-3.3.5's libemail
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4-50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild