Hello community,

here is the log from the commit of package ruby-kde4 for openSUSE:Factory 
checked in at 2012-06-19 21:38:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ruby-kde4 (Old)
 and      /work/SRC/openSUSE:Factory/.ruby-kde4.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ruby-kde4", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ruby-kde4/ruby-kde4.changes      2012-06-13 
22:24:44.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ruby-kde4.new/ruby-kde4.changes 2012-06-19 
21:38:50.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Jun 19 10:12:58 UTC 2012 - [email protected]
+
+- Fix build with ruby 1.9 
+
+-------------------------------------------------------------------

New:
----
  korundum-ruby19.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ruby-kde4.spec ++++++
--- /var/tmp/diff_new_pack.Bgi2uo/_old  2012-06-19 21:38:52.000000000 +0200
+++ /var/tmp/diff_new_pack.Bgi2uo/_new  2012-06-19 21:38:52.000000000 +0200
@@ -16,6 +16,11 @@
 #
 
 
+%if 0%{?suse_version} >= 1220
+%define rb_sitelib                        %rb19_sitelibdir
+%define rb_sitearch                       %rb19_sitearchdir
+%endif
+
 Name:           ruby-kde4
 BuildRequires:  kate-devel
 BuildRequires:  libjasper-devel
@@ -37,6 +42,7 @@
 Source0:        korundum-%{version}.tar.xz
 Url:            https://projects.kde.org/projects/kde/kdebindings/ruby/korundum
 Patch0:         no-examples.diff
+Patch1:         korundum-ruby19.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Requires:       ruby-qt4 = %version
 %kde4_runtime_requires
@@ -47,7 +53,10 @@
 
 %prep
 %setup -q -n korundum-%{version}
-%patch0 -p0
+%patch0
+%if 0%{?suse_version} >= 1220
+%patch1 -p1
+%endif
 
 %build
   %cmake_kde4 -d build


++++++ korundum-ruby19.patch ++++++
Index: korundum-4.8.4/src/krubypluginfactory.cpp
===================================================================
--- korundum-4.8.4.orig/src/krubypluginfactory.cpp
+++ korundum-4.8.4/src/krubypluginfactory.cpp
@@ -39,7 +39,7 @@
 extern "C" {
 extern VALUE rb_load_path;
 extern VALUE qt_internal_module;
-void Init_prelude(void);
+void ruby_init_prelude(void);
 }
 
 //
@@ -165,7 +165,7 @@ QObject *KRubyPluginFactory::create(cons
 #if RUBY_VERSION >= 0x10900
     VALUE gem = rb_define_module("Gem");
     rb_const_set(gem, rb_intern("Enable"), Qtrue);
-    Init_prelude(); 
+    ruby_init_prelude(); 
 #endif
 
     ruby_incpush(QFile::encodeName(program.path()));
@@ -342,7 +342,7 @@ int kdemain(int argc, char **argv)
 #if RUBY_VERSION >= 0x10900
     VALUE gem = rb_define_module("Gem");
     rb_const_set(gem, rb_intern("Enable"), Qtrue);
-    Init_prelude();                                             
+    ruby_init_prelude();                                             
 #endif
 
     ruby_incpush(QFile::encodeName(program.path()));
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to