diff --git a/librsvg-vala.patch b/librsvg-vala.patch new file mode 100644 index 0000000..9d91a06 --- /dev/null +++ b/librsvg-vala.patch @@ -0,0 +1,13 @@ +diff -up librsvg-2.37.0/configure.in.vala librsvg-2.37.0/configure.in +--- librsvg-2.37.0/configure.in.vala 2013-01-15 21:07:11.264576371 -0500 ++++ librsvg-2.37.0/configure.in 2013-01-15 21:07:17.638576143 -0500 +@@ -285,7 +285,7 @@ fi + GOBJECT_INTROSPECTION_CHECK([0.10.8]) + + # Vala bindings +-VAPIGEN_CHECK([0.17.1.26],,,[no]) ++VAPIGEN_CHECK([0.18.1],,,[auto]) + + dnl =========================================================================== + +diff -up librsvg-2.37.0/Rsvg-2.0-custom.vala librsvg-2.37.0/Rsvg-2.0-custom diff --git a/librsvg2.spec b/librsvg2.spec index fb8503a..93bdadf 100644 --- a/librsvg2.spec +++ b/librsvg2.spec @@ -8,6 +8,8 @@ Group: System Environment/Libraries #VCS: git:git://git.gnome.org/librsvg Source: http://download.gnome.org/sources/librsvg/2.37/librsvg-%{version}.tar.xz +# build with vala 0.18 +Patch0: librsvg-vala.patch Requires(post): gdk-pixbuf2 Requires(postun): gdk-pixbuf2 @@ -52,6 +54,9 @@ files to allow you to develop with librsvg. %prep %setup -q -n librsvg-%{version} +%patch0 -p1 -b .vala + +autoreconf -i -f %build GDK_PIXBUF_QUERYLOADERS=/usr/bin/gdk-pixbuf-query-loaders-%{__isa_bits}