diff --git a/dia-use-recommended-freetype-include.patch b/dia-use-recommended-freetype-include.patch new file mode 100644 index 0000000..d8f2d0b --- /dev/null +++ b/dia-use-recommended-freetype-include.patch @@ -0,0 +1,14 @@ +--- a/plug-ins/postscript/diapsft2renderer.c 2009-11-07 11:13:53.000000000 -0600 ++++ b/plug-ins/postscript/diapsft2renderer.c 2013-12-02 18:49:27.000000000 -0600 +@@ -29,8 +29,9 @@ + #include + #include + /* I'd really rather avoid this */ +-#include +-#include ++#include ++#include FT_GLYPH_H ++#include FT_OUTLINE_H + + #define DPI 300 + diff --git a/dia.changes b/dia.changes index bc68b47..d8dcf84 100644 --- a/dia.changes +++ b/dia.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sat Dec 14 18:25:30 UTC 2013 - hrvoje.senjan@gmail.com + +- Added dia-use-recommended-freetype-include.patch: Freetype + upstream recommends using their macros together with ft2build + include. Positive sideeffect is that this patch makes it build + with both freetype2 2.5.1, and older versions (bgo#720573). + ------------------------------------------------------------------- Sat Aug 24 19:20:09 UTC 2013 - dimstar@opensuse.org diff --git a/dia.spec b/dia.spec index 8e82e3e..4793898 100644 --- a/dia.spec +++ b/dia.spec @@ -66,6 +66,8 @@ Patch19: dia-glib-2.31.patch Patch20: dia-libemf-64bit.patch # PATCH-FIX-UPSTREAM dia-glib-2.35.patch bgo#694025 bnc#835972 dimstar@opensuse.org -- GLib drop support for adding interfaces after class_init, taken from git Patch21: dia-glib-2.35.patch +# PATCH-FIX-UPSTREAM dia-use-recommended-freetype-include.patch bgo#720573 hrvoje.senjan@gmail.com -- Freetype upstream recommends using their macros together with ft2build include. Fix build with old and new freetype versions +Patch22: dia-use-recommended-freetype-include.patch Url: http://live.gnome.org/Dia BuildRoot: %{_tmppath}/%{name}-%{version}-build Recommends: %{name}-lang @@ -93,6 +95,7 @@ translation-update-upstream %patch19 -p1 %patch20 -p1 %patch21 -p1 +%patch22 -p1 cp $RPM_SOURCE_DIR/font-test*dia . %build