From 9865ee37f97d60399d889f310751e7f18a7dd451 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 19 Nov 2005 13:32:04 +0000 Subject: [PATCH] - use system ruby macros - cleanups, corrections, cosmetics Changed files: ruby-gnome2.spec -> 1.34 --- ruby-gnome2.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ruby-gnome2.spec b/ruby-gnome2.spec index 39948d0..c258362 100644 --- a/ruby-gnome2.spec +++ b/ruby-gnome2.spec @@ -2,9 +2,6 @@ # TODO: # - subpackages # -%define ruby_archdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]') -%define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]') -%define ruby_ridir %(ruby -r rbconfig -e 'include Config; print File.join(CONFIG["datadir"], "ri", CONFIG["ruby_version"], "system")') Summary: GNOME 2 libraries for Ruby Summary(pl): Biblioteki GNOME 2 dla Ruby Name: ruby-gnome2 @@ -17,10 +14,10 @@ Source0: http://dl.sourceforge.net/ruby-gnome2/%{name}-all-%{version}.tar.gz URL: http://ruby-gnome2.sourceforge.jp/ BuildRequires: GConf2-devel >= 2.0 BuildRequires: glib2-devel >= 2.0 -BuildRequires: gtk+2-devel >= 2:2.2 BuildRequires: gnome-panel-devel >= 2.0 BuildRequires: gnome-vfs2-devel >= 2.0 BuildRequires: gstreamer-plugins-devel +BuildRequires: gtk+2-devel >= 2:2.2 BuildRequires: gtkglext-devel >= 1.0 BuildRequires: gtksourceview-devel BuildRequires: libart_lgpl-devel >= 2.0 @@ -34,7 +31,9 @@ BuildRequires: libpng-devel BuildRequires: librsvg-devel BuildRequires: pango-devel BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.263 BuildRequires: ruby-devel +BuildRequires: sed >= 4.0 Requires: ruby-rbogl BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -58,9 +57,9 @@ Pliki nag %prep %setup -q -n %{name}-all-%{version} +find . -name '*.rb' | xargs sed -i -e '1s,#.*local/bin/ruby,#!%{_bindir}/ruby,' %build -find . -name '*.rb' | xargs perl -pi -e "s#local/bin/ruby#bin/ruby#" ruby extconf.rb --enable-glib-experimental %{__make} -- 2.44.0