--- /dev/null
+--- libcaca-0.99.beta18/ruby/caca-display.c.orig 2012-04-06 22:36:17.000000000 +0200
++++ libcaca-0.99.beta18/ruby/caca-display.c 2012-12-04 20:28:37.435444821 +0100
+@@ -84,7 +84,7 @@
+
+ if(display == NULL)
+ {
+- rb_raise(rb_eRuntimeError, strerror(errno));
++ rb_raise(rb_eRuntimeError, "%s", strerror(errno));
+ }
+
+ _SELF = display;
+@@ -131,7 +131,7 @@
+ {
+ if(caca_set_display_title(_SELF, StringValuePtr(t))<0)
+ {
+- rb_raise(rb_eRuntimeError, strerror(errno));
++ rb_raise(rb_eRuntimeError, "%s", strerror(errno));
+ }
+ return t;
+ }
+@@ -252,7 +252,7 @@
+ {
+ if(caca_set_display_driver(_SELF, StringValuePtr(driver))<0)
+ {
+- rb_raise(rb_eRuntimeError, strerror(errno));
++ rb_raise(rb_eRuntimeError, "%s", strerror(errno));
+ }
+ return driver;
+ }
+@@ -267,7 +267,7 @@
+ {
+ if(caca_set_cursor(_SELF, flag)<0)
+ {
+- rb_raise(rb_eRuntimeError, strerror(errno));
++ rb_raise(rb_eRuntimeError, "%s", strerror(errno));
+ }
+ return flag;
+ }
# Source0-md5: 93d35dbdb0527d4c94df3e9a02e865cc
Patch0: install.patch
Patch1: %{name}-ruby1.9.patch
+Patch2: %{name}-format.patch
URL: http://libcaca.zoy.org/
BuildRequires: OpenGL-devel
BuildRequires: autoconf >= 2.50
%undos */Makefile.am
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}