diff --git a/evolution-data-server-3.5.3-avoid-exposing-db-h.patch b/evolution-data-server-3.5.3-avoid-exposing-db-h.patch new file mode 100644 index 0000000..9ec9ef4 --- /dev/null +++ b/evolution-data-server-3.5.3-avoid-exposing-db-h.patch @@ -0,0 +1,29 @@ +diff -up evolution-data-server-3.5.3/addressbook/libedata-book/e-book-backend-db-cache.c.avoid-exposing-db-h evolution-data-server-3.5.3/addressbook/libedata-book/e-book-backend-db-cache.c +--- evolution-data-server-3.5.3/addressbook/libedata-book/e-book-backend-db-cache.c.avoid-exposing-db-h 2012-06-03 20:12:39.000000000 -0400 ++++ evolution-data-server-3.5.3/addressbook/libedata-book/e-book-backend-db-cache.c 2012-06-27 08:39:11.096596229 -0400 +@@ -23,6 +23,8 @@ + #include + #include + ++#include ++ + #include "e-book-backend-db-cache.h" + #include "e-book-backend.h" + #include "e-book-backend-sexp.h" +diff -up evolution-data-server-3.5.3/addressbook/libedata-book/e-book-backend-db-cache.h.avoid-exposing-db-h evolution-data-server-3.5.3/addressbook/libedata-book/e-book-backend-db-cache.h +--- evolution-data-server-3.5.3/addressbook/libedata-book/e-book-backend-db-cache.h.avoid-exposing-db-h 2012-06-03 20:12:39.000000000 -0400 ++++ evolution-data-server-3.5.3/addressbook/libedata-book/e-book-backend-db-cache.h 2012-06-27 08:39:11.096596229 -0400 +@@ -27,10 +27,12 @@ + #define E_BOOK_BACKEND_DB_CACHE_H + + #include +-#include "db.h" + + G_BEGIN_DECLS + ++/* Avoid including in a public header file. */ ++typedef struct __db DB; ++ + EContact * e_book_backend_db_cache_get_contact (DB *db, const gchar *uid); + gchar *e_book_backend_db_cache_get_filename (DB *db); + void e_book_backend_db_cache_set_filename (DB *db, const gchar *filename); diff --git a/evolution-data-server.spec b/evolution-data-server.spec index 4394a38..e4e070a 100644 --- a/evolution-data-server.spec +++ b/evolution-data-server.spec @@ -27,7 +27,7 @@ Name: evolution-data-server Version: 3.5.3 -Release: 2%{?dist} +Release: 3%{?dist} Group: System Environment/Libraries Summary: Backend data server for Evolution License: LGPLv2+ @@ -46,6 +46,9 @@ Patch01: evolution-data-server-1.11.5-fix-64bit-acinclude.patch # http://bugzilla.gnome.org/show_bug.cgi?id=672805 Patch2: new-gweather-api.patch +# Avoid exposing in a public header file. +Patch3: evolution-data-server-3.5.3-avoid-exposing-db-h.patch + ### Build Dependencies ### BuildRequires: bison @@ -127,6 +130,7 @@ This package contains developer documentation for %{name}. %patch01 -p1 -b .fix-64bit-acinclude %patch2 -p1 -b .new-gweather-api +%patch3 -p1 -b .avoid-exposing-db-h mkdir -p krb5-fakeprefix/include mkdir -p krb5-fakeprefix/lib @@ -371,6 +375,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : %{_datadir}/gtk-doc/html/libedataserverui %changelog +* Wed Jun 27 2012 Matthew Barnes - 3.5.3-3 +- Avoid exposing in a public header file. + * Wed Jun 27 2012 Matthias Clasen - 3.5.3-2 - Build against libgweather 3.5