--- /dev/null
+--- gegl-0.1.8/tools/create-reference.rb.orig 2011-11-18 17:00:53.000000000 +0100
++++ gegl-0.1.8/tools/create-reference.rb 2011-11-26 08:00:21.108041541 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby -Eutf-8
+
+ # GEGL API creator Øyvind Kolås 2007,
+ #
# Conditional build:
%bcond_with mmx # use MMX instructions
%bcond_with sse # use SSE instructions
-%bcond_with doc # apidocs (fail to build)
+%bcond_without doc # apidocs
%bcond_without vala # Vala API
#
%ifarch %{x8664} athlon pentium3 pentium4
# Source0-md5: c8279b86b3d584ee4f503839fc500425
Patch0: %{name}-lua.patch
Patch1: %{name}-ffmpeg.patch
+Patch2: %{name}-ruby1.9.patch
URL: http://www.gegl.org/
BuildRequires: OpenEXR-devel
BuildRequires: SDL-devel
BuildRequires: pango-devel >= 1:1.10
BuildRequires: perl-base
BuildRequires: pkgconfig
-BuildRequires: ruby
+BuildRequires: ruby >= 1.9
%{?with_vala:BuildRequires: vala}
Requires: babl >= 0.1.6
Requires: glib2 >= 1:2.28.0
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- help_dir=$RPM_BUILD_ROOT%{_gtkdocdir}/gegl
+ gtkdochtmldir=%{_gtkdocdir}/gegl
%{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.1/*.{a,la}