%define _disable_ld_no_undefined 1 %define name ruby-gnome2 %define version 0.18.1 %define release %mkrel 1 %define rubyver 1.8 Summary: Set of Ruby language bindings for the GNOME 2.0 Name: %name Version: %version Release: %release License: LGPL Group: Development/Ruby URL: http://ruby-gnome2.sourceforge.jp/ Source0: http://ovh.dl.sourceforge.net/sourceforge/ruby-gnome2/%{name}-all-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: ruby-devel libGConf2-devel libgnomeui2-devel BuildRequires: libgnomecanvas2-devel libart_lgpl-devel > 2 png-devel BuildRequires: gtk+2-devel pango-devel libgdk_pixbuf2.0-devel BuildRequires: atk-devel glib2-devel gnome-vfs2-devel BuildRequires: libgtkhtml2-devel > 2.4 gtkglext-devel BuildRequires: gda2.0-devel >= 1.0.2 BuildRequires: libglade2.0-devel libpanel-applet-2-devel BuildRequires: pkgconfig(gtksourceview-2.0) BuildRequires: librsvg-devel >= 2.8.0 BuildRequires: libgnomeprintui-devel >= 2.8.0 libgnomeprint-devel >= 2.6.0 BuildRequires: libvte-devel BuildRequires: libpoppler-devel libpoppler-glib-devel BuildRequires: libcairo-devel BuildRequires: gstreamer0.10-devel pkgconfig(gstreamer-plugins-base-0.10) BuildRequires: bonoboui-devel Requires: ruby >= %{rubyver} Requires: ruby-libart2 = %version Requires: ruby-gtk2 = %version Requires: ruby-gnomecanvas2 = %version %description This is a set of Ruby language bindings for the GNOME 2.0 development environment. This is the next generation of Ruby-GNOME. %package devel Summary: Headers for developing with Ruby/Gnome2, Ruby/Gtk2, License: LGPL Group: Development/Ruby Requires: %name = %version Obsoletes: ruby-gtk2-devel Provides: ruby-gtk2-devel Requires: libgdk_pixbuf2.0-devel Requires: gtk+2-devel Requires: pango-devel Requires: libGConf2-devel Requires: libgnomeui2-devel %description devel Ruby bindings for Gnome2. This package contains header files needed for developing Ruby extensions depending on Ruby/Gnome2, Ruby/Glib2, Ruby/Pango, ... %package -n ruby-glib2 Summary: Ruby binding of GLib-2.x Group: Development/Ruby Requires: ruby >= %{rubyver} %description -n ruby-glib2 Ruby/GLib2 is a Ruby binding of GLib-2.x. %package -n ruby-gtk2 Summary: Ruby binding of GTK+2.0.x Group: Development/Ruby Requires: ruby-atk = %version Requires: ruby-pango = %version Requires: ruby-gdkpixbuf2 = %version %description -n ruby-gtk2 Ruby/GTK2 is a Ruby binding of GTK+2.0.x. %package -n ruby-gdkpixbuf2 Summary: Ruby binding of GdkPixbuf-2.x Group: Development/Ruby Requires: ruby-glib2 = %version Requires: ruby-gtk2 = %version %description -n ruby-gdkpixbuf2 Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x. %package -n ruby-atk Summary: Ruby binding of ATK-1.0.x or later Group: Development/Ruby Requires: ruby-glib2 = %version %description -n ruby-atk Ruby/ATK is a Ruby binding of ATK-1.0.x or later. %package -n ruby-pango Summary: Ruby binding of pango-1.x Group: Development/Ruby Requires: ruby-glib2 = %version %description -n ruby-pango Ruby/Pango is a Ruby binding of pango-1.x. %package -n ruby-libglade2 Summary: Ruby bindings of Libglade2 Group: Development/Ruby Requires: ruby-gtk2 = %version %description -n ruby-libglade2 Ruby/Libglade2 is a Ruby bindings of Libglade2. This provides a very simple interface to the libglade library, to load interfaces dynamically from a glade file. %package -n ruby-libart2 Summary: Ruby binding of Libart_lgpl Group: Development/Ruby Requires: ruby >= %{rubyver} %description -n ruby-libart2 Ruby/Libart2 is a Ruby binding of Libart_lgpl. %package -n ruby-gnomecanvas2 Summary: Ruby binding of GnomeCanvas-2.x Group: Development/Ruby Requires: ruby-libart2 = %version Requires: ruby-gtk2 = %version %description -n ruby-gnomecanvas2 Ruby/GnomeCanvas2 is a Ruby binding of GnomeCanvas-2.x. %package -n ruby-gconf2 Summary: Ruby binding of GConf-1.2.x Group: Development/Ruby Requires: ruby-glib2 = %version %description -n ruby-gconf2 Ruby/GConf2 is a Ruby binding of GConf-1.2.x. %package -n ruby-gnomevfs2 Summary: Ruby binding of GnomeVFS-2.0.x Group: Development/Ruby Requires: ruby-glib2 = %version ruby-gconf2 = %version %description -n ruby-gnomevfs2 Ruby/GnomeVFS is a Ruby binding of GnomeVFS-2.0.x. %package -n ruby-gtkhtml2 Summary: Ruby binding of GtkHtml2 Group: Development/Ruby Requires: ruby-gtk2 = %version %description -n ruby-gtkhtml2 Ruby/GtkHtml2 is a Ruby binding of GtkHtml2. %package -n ruby-gtkglext Summary: Ruby binding of GtkGLExt Group: Development/Ruby Requires: ruby-rbogl Requires: ruby-gtk2 = %version %description -n ruby-gtkglext Ruby/GtkGLExt is a Ruby binding of GtkGLExt. %package -n ruby-panelapplet2 Summary: Ruby binding of libpanel-applet-2.x Group: Development/Ruby Requires: ruby-glib2 = %version Requires: ruby-gtk2 = %version %description -n ruby-panelapplet2 Ruby/PanelApplet2 is a Ruby binding of libpanel-applet-2.x. %package -n ruby-gtksourceview2 Summary: Ruby binding of gtksourceview-2.0.x Group: Development/Ruby Requires: ruby-gtk2 = %version %description -n ruby-gtksourceview2 Ruby/GtkSourceView is a Ruby binding of gtksourceview-2.0.x. %package -n ruby-gnomeprint2 Summary: Ruby binding of libgnomeprint Group: Development/Ruby Requires: ruby >= %{rubyver} %description -n ruby-gnomeprint2 Ruby/GnomePrint is a Ruby binding of libgnomeprint. %package -n ruby-gnomeprintui2 Summary: Ruby binding of libgnomeprintui Group: Development/Ruby Requires: ruby-gtk2 = %version %description -n ruby-gnomeprintui2 Ruby/GnomePrintUI is a Ruby binding of libgnomeprintui. %package -n ruby-rsvg2 Summary: Ruby binding of librsvg Group: Development/Ruby Requires: ruby >= %{rubyver} %description -n ruby-rsvg2 Ruby/RSVG is a Ruby binding of librsvg. %package -n ruby-vte Summary: Ruby binding of libvte Group: Development/Ruby Requires: ruby >= %{rubyver} %description -n ruby-vte Ruby/VTE is a Ruby binding of libvte. %package -n ruby-poppler Summary: Ruby binding of poppler-glib Group: Development/Ruby Requires: ruby >= %{rubyver} %description -n ruby-poppler Ruby/Poppler is a Ruby binding of poppler-glib. %if 0 %package -n ruby-gtkmozembed Summary: Ruby binding of GtkMozEmbed Group: Development/Ruby Requires: ruby >= %{rubyver} %description -n ruby-gtkmozembed Ruby/GtkMozEmbed is a Ruby binding of GtkMozEmbed a widget embedding a Mozilla Gecko renderer. %endif %package -n ruby-gst Summary: Ruby binding of GStreamer Group: Development/Ruby Requires: ruby-glib2 = %version %description -n ruby-gst Ruby/GStreamer is a Ruby binding of GStreamer. %package -n ruby-bonobo2 Summary: Ruby binding of libbonobo-2.x Group: Development/Ruby Requires: ruby-gtk2 = %{version} %description -n ruby-bonobo2 Ruby/Bonobo2 is a Ruby binding of libbonobo-2.x. %package -n ruby-bonoboui2 Summary: Ruby binding of libbonoboui-2.x Group: Development/Ruby Requires: ruby-gnome2 = %{version}-%{release} %description -n ruby-bonoboui2 Ruby/BonoboUI2 is a Ruby binding of libbonoboui-2.x. %prep %setup -q -n ruby-gnome2-all-%version #find -name depend -exec sed -i s/sitearchdir/vendorarchdir/ {} \; %build #ruby extconf.rb --vendor ruby extconf.rb %make find */* -name \*.rb -exec sed -i -e 's|/usr/local/bin/ruby|/usr/bin/ruby|' {} \; %install rm -rf %buildroot make install DESTDIR=%buildroot libdir=%buildroot%{_libdir} archdir=%buildroot%ruby_sitearchdir mkdir -p %buildroot%{_bindir} cp libglade/bin/* %buildroot%{_bindir} for f in `find */test */tests */sample */samples -type f` do if head -n1 "$f" | grep '^#!' >/dev/null; then sed -i 's|/usr/local/bin|/usr/bin|' "$f" chmod 0755 "$f" else chmod 0644 "$f" fi done %clean rm -rf $RPM_BUILD_ROOT %files -n ruby-glib2 %defattr(-,root,root) %{ruby_sitearchdir}/glib2.so %{ruby_sitelibdir}/glib2.rb %{ruby_sitelibdir}/glib-mkenums.rb %doc AUTHORS glib/{COPYING.LIB,ChangeLog,README} %files -n ruby-gtk2 %defattr(-,root,root) %{ruby_sitearchdir}/gtk2.so %{ruby_sitelibdir}/gtk2.rb %{ruby_sitelibdir}/gtk2/base.rb %doc AUTHORS gtk/{COPYING.LIB,ChangeLog,README,sample} %files -n ruby-gdkpixbuf2 %defattr(-,root,root) %{ruby_sitearchdir}/gdk_pixbuf2.so %{ruby_sitelibdir}/gdk_pixbuf2.rb %doc AUTHORS gdkpixbuf/{COPYING.LIB,ChangeLog,README,sample} %files -n ruby-panelapplet2 %defattr(-,root,root) %{ruby_sitearchdir}/panelapplet2.so %{ruby_sitelibdir}/panelapplet2.rb %doc AUTHORS panel-applet/{COPYING.LIB,ChangeLog,README,sample} %files -n ruby-pango %defattr(-,root,root) %{ruby_sitearchdir}/pango.so %{ruby_sitelibdir}/pango.rb %doc AUTHORS pango/{COPYING.LIB,ChangeLog,README,sample} %files -n ruby-libglade2 %defattr(-,root,root) %{ruby_sitearchdir}/libglade2.so %{ruby_sitelibdir}/libglade2.rb %{_bindir}/ruby-glade-create-template %doc AUTHORS libglade/{COPYING.LIB,ChangeLog,README,sample} %files -n ruby-libart2 %defattr(-,root,root) %{ruby_sitearchdir}/libart2.so %{ruby_sitelibdir}/libart2.rb %doc AUTHORS libart/{COPYING.LIB,ChangeLog,README,sample} %files %defattr(-,root,root) %{ruby_sitearchdir}/gnome2.so %{ruby_sitelibdir}/gnome2.rb %doc AUTHORS gnome/{COPYING.LIB,ChangeLog,README,sample} %files -n ruby-gnomecanvas2 %defattr(-,root,root) %{ruby_sitearchdir}/gnomecanvas2.so %{ruby_sitelibdir}/gnomecanvas2.rb %doc AUTHORS gnomecanvas/{COPYING.LIB,ChangeLog,README,sample} %files -n ruby-gconf2 %defattr(-,root,root) %{ruby_sitearchdir}/gconf2.so %{ruby_sitelibdir}/gconf2.rb %doc AUTHORS gconf/{COPYING.LIB,ChangeLog,README,tests} %files -n ruby-gnomevfs2 %defattr(-,root,root) %{ruby_sitearchdir}/gnomevfs.so %{ruby_sitelibdir}/gnomevfs.rb %doc AUTHORS gnomevfs/{COPYING.LIB,ChangeLog,README,tests} %files -n ruby-gtkhtml2 %defattr(-,root,root) %{ruby_sitearchdir}/gtkhtml2.so %{ruby_sitelibdir}/gtkhtml2.rb %doc AUTHORS gtkhtml2/{COPYING.LIB,ChangeLog,README,sample} %files -n ruby-gtkglext %defattr(-,root,root) %{ruby_sitearchdir}/gtkglext.so %{ruby_sitelibdir}/gtkglext.rb %doc AUTHORS gtkglext/{ChangeLog,README,sample} %files -n ruby-atk %defattr(-,root,root) %{ruby_sitearchdir}/atk.so %{ruby_sitelibdir}/atk.rb %doc AUTHORS atk/{COPYING.LIB,ChangeLog,README} %files -n ruby-gtksourceview2 %defattr(-,root,root) %{ruby_sitearchdir}/gtksourceview2.so %{ruby_sitelibdir}/gtksourceview2.rb %doc AUTHORS gtksourceview/{ChangeLog,README,sample,COPYING.LIB} %files -n ruby-gnomeprint2 %defattr(-,root,root) %{ruby_sitearchdir}/gnomeprint2.so %{ruby_sitelibdir}/gnomeprint2.rb %doc AUTHORS gnomeprint/{COPYING.LIB,ChangeLog,README,sample,test} %files -n ruby-gnomeprintui2 %defattr(-,root,root) %{ruby_sitearchdir}/gnomeprintui2.so %{ruby_sitelibdir}/gnomeprintui2.rb %doc AUTHORS gnomeprintui/{ChangeLog,README,sample,COPYING.LIB} %files -n ruby-rsvg2 %defattr(-,root,root) %{ruby_sitearchdir}/rsvg2.so %{ruby_sitelibdir}/rsvg2.rb %doc AUTHORS rsvg/{ChangeLog,README,sample,COPYING.LIB} %files -n ruby-vte %defattr(-,root,root) %{ruby_sitearchdir}/vte.so %{ruby_sitelibdir}/vte.rb %doc AUTHORS vte/{ChangeLog,README,sample,COPYING.LIB} %files -n ruby-poppler %defattr(-,root,root) %{ruby_sitearchdir}/poppler.so %{ruby_sitelibdir}/poppler.rb %doc AUTHORS poppler/{ChangeLog,README,sample,COPYING.LIB} %if 0 %files -n ruby-gtkmozembed %defattr(-,root,root) %{ruby_sitearchdir}/gtkmozembed.so %{ruby_sitelibdir}/gtkmozembed.rb %doc AUTHORS gtkmozembed/{ChangeLog,README,sample,COPYING.LIB} %endif %files devel %defattr(-,root,root) %{ruby_sitelibdir}/mkmf-gnome2.rb %{ruby_sitelibdir}/pkg-config.rb %{ruby_sitearchdir}/*.h %files -n ruby-gst %defattr(-,root,root) %{ruby_sitearchdir}/gst.so %{ruby_sitelibdir}/gst.rb %doc AUTHORS gstreamer/{COPYING.LIB,ChangeLog,README,tests} %files -n ruby-bonobo2 %defattr(-,root,root,-) %doc bonobo/ChangeLog bonobo/COPYING.LIB bonobo/README %{ruby_sitelibdir}/bonobo2.rb %{ruby_sitearchdir}/bonobo2.so %files -n ruby-bonoboui2 %defattr(-,root,root,-) %doc bonoboui/ChangeLog bonoboui/COPYING.LIB bonoboui/README %{ruby_sitelibdir}/bonoboui2.rb %{ruby_sitearchdir}/bonoboui2.so %changelog * Thu Nov 27 2008 Pascal Terjan <pterjan@mandriva.org> 0.18.1-1mdv2009.1 + Revision: 307297 - Update to 0.18.1 - Build gtksourceview2 instead of gtksourceview1 * Sat Sep 13 2008 Pascal Terjan <pterjan@mandriva.org> 0.17.0-1mdv2009.0 + Revision: 284394 - BuildRequires pkgconfig(gstreamer-plugins-base-0.10) - Add ruby-bonobo2 and ruby-bonoboui2 - Disable gtkmozembed for now - Update to 0.17 - Add back GStreamer binding + Thierry Vignaud <tvignaud@mandriva.com> - rebuild early 2009.0 package (before pixel changes) * Wed Jun 11 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.16.0-8mdv2009.0 + Revision: 217947 - add dependencies to the -devel package * Wed Jun 11 2008 Pascal Terjan <pterjan@mandriva.org> 0.16.0-7mdv2009.0 + Revision: 217822 - Move back to site dir, vendor is not supported enough yet :( * Tue Jun 10 2008 Pascal Terjan <pterjan@mandriva.org> 0.16.0-6mdv2009.0 + Revision: 217767 - Move .h in vendor dir even if site is hardcoded - Adapt upstream poppler 0.7 patch - Move to vendor + Thierry Vignaud <tvignaud@mandriva.com> - improved description * Mon Apr 14 2008 Gustavo De Nardin <gustavodn@mandriva.com> 0.16.0-5mdv2009.0 + Revision: 193275 - BuildRequires: libcairo-devel, as pointed by Guillaume Cottenceau * Sun Feb 17 2008 Gustavo De Nardin <gustavodn@mandriva.com> 0.16.0-4mdv2008.1 + Revision: 169546 - P8: fix for build with glib2.0-2.15.5 + Oden Eriksson <oeriksson@mandriva.com> - P7: security fix for CVE-2007-6183 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request - fix summary-ended-with-dot - fix summary-ended-with-dot * Mon Sep 24 2007 Pascal Terjan <pterjan@mandriva.org> 0.16.0-3mdv2008.0 + Revision: 92696 - Fix BuildRequires - Fix build with recent glib/poppler/... (P2,P3,P4,P5,P6) - Remove BuildRequires on libgstreamer0.8-devel, gst binding is no longer part of ruby-GNOME2 * Wed Feb 28 2007 Christiaan Welvaart <cjw@daneel.dyndns.org> + 2007-02-28 19:40:32 (127335) - fix gdk-pixbuf build dependency * Tue Jan 02 2007 Pascal Terjan <pterjan@mandriva.org> 0.16.0-1mdv2007.1 + 2007-01-02 17:51:46 (103014) - Include ruby-gtkmozembed - Use global ruby macros - Drop patch0 - 0.16.0 - ADD 2 patchs from CVS - Use Development/Ruby - Add Ruby/Poppler - Drop Ruby/GStreamer and Ruby/Libgda - Import ruby-gnome2 * Mon Jul 17 2006 Guillaume Cottenceau 0.15.0-2mdv2007.0 - don't abort when ruby program using gtk2.rb has passed arguments * Mon Jul 03 2006 Emmanuel Andry <eandry@mandriva.org> 0.15.0-1mdv2007.0 - 0.15.0 - %%mkrel - deactivate ruby-libgda2, it doesn't build (problem to fix) * Wed Dec 28 2005 Pascal Terjan <pterjan@mandriva.org> 0.14.1-2mdk - BuildRequires libgstreamer0.8-devel as other versions won't work * Mon Nov 14 2005 Pascal Terjan <pterjan@mandriva.org> 0.14.1-1mdk - 0.14.1 - Disable gtkmozembed for now, it's still a separate package so that we do not need to rebuild ruby-gnome2 on new firefox versions * Wed Oct 26 2005 Pascal Terjan <pterjan@mandriva.org> 0.14.0-1mdk - 0.14.0 - Drop patch0 (merged upstream) - Fix permissions on samples * Sun Oct 09 2005 Pascal Terjan <pterjan@mandriva.org> 0.13.0-3mdk - The patch was useless if not build against new gnomecanvas :/ * Tue Sep 20 2005 Pascal Terjan <pterjan@mandriva.org> 0.13.0-2mdk - Patch ruby-gnomecanvas to not break if people install gnome 2.12 * Mon Aug 01 2005 Guillaume Cottenceau <gc@mandrakesoft.com> 0.13.0-1mdk - 0.13.0 * Sun Mar 06 2005 Pascal Terjan <pterjan@mandrake.org> 0.12.0-1mdk - 0.12.0 - Remove dots at the end of summaries - Remove release in requires - /usr/local/bin/ruby -> /usr/bin/ruby in samples * Sun Nov 14 2004 Pascal Terjan <pterjan@mandrake.org> 0.11.0-1mdk - 0.11.0 - Become rpmbuildupdate aware - New packages : gnomeprint2/gnomeprintui2/rsvg2 * Mon Aug 16 2004 Pascal Terjan <pterjan@mandrake.org> 0.10.1-1mdk - 0.10.1 - Drop patch0 (merged upstream) * Mon Aug 09 2004 Pascal Terjan <pterjan@mandrake.org> 0.10.0-1mdk - 0.10.0 - Merged gtksourceview package - Remove bonobo*, not yet in releases * Fri Aug 06 2004 Pascal Terjan <pterjan@mandrake.org> 0.10.0-0.20040805.1mdk - New CVS Snapshot - GStreamer is back - Drop patch1 (merge upstream) * Fri Jun 04 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.9.2-0.20040602.2mdk - fix typo in tag name * Thu Jun 03 2004 Pascal Terjan <pterjan@mandrake.org> 0.9.2-0.20040602.1mdk - CVS 20040602 - Remove TrayIcon, it's a separate project * Wed May 12 2004 Pascal Terjan <pterjan@mandrake.org> 0.9.2-0.20040509.2mdk - Add missing Requires * Mon May 10 2004 Pascal Terjan <pterjan@mandrake.org> 0.9.2-0.20040509.1mdk - CVS 20040509 + patchs applet/tray - New packages : ruby-bonobo2 ruby-bonoboui2 ruby-panelapplet2 - Explicit list of files - Rewrite descriptions - Disable GStreamer as the binding is not yet ported to 0.8 * Sun Apr 11 2004 Pascal Terjan <pterjan@mandrake.org> 0.9.1-1mdk - 0.9.1 - Drop patch0 * Sun Mar 07 2004 Pascal Terjan <pterjan@mandrake.org> 0.9.0-1mdk - 0.9.0 - Ruby/ATK added - Updated patch0