SPECS: ruby-RubyGems.spec - updated to 0.8.11, use sed hack to mak...

qboosh qboosh at pld-linux.org
Fri Feb 24 14:57:30 CET 2006


Author: qboosh                       Date: Fri Feb 24 13:57:30 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated to 0.8.11, use sed hack to make it build with DESTDIR

---- Files affected:
SPECS:
   ruby-RubyGems.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/ruby-RubyGems.spec
diff -u SPECS/ruby-RubyGems.spec:1.8 SPECS/ruby-RubyGems.spec:1.9
--- SPECS/ruby-RubyGems.spec:1.8	Sat Dec 31 11:36:33 2005
+++ SPECS/ruby-RubyGems.spec	Fri Feb 24 14:57:24 2006
@@ -2,15 +2,16 @@
 Summary:	Ruby package manager
 Summary(pl):	Zarządca pakietów dla języka Ruby
 Name:		ruby-RubyGems
-Version:	0.6.1
-Release:	2
+Version:	0.8.11
+Release:	1
 License:	GPL
 Group:		Development/Languages
-Source0:	http://rubyforge.org/frs/download.php/729/rubygems-%{version}.tgz
-# Source0-md5:	c4a0faa9f876ad805ae80d1396a29d97
+Source0:	http://rubyforge.org/frs/download.php/5207/rubygems-%{version}.tgz
+# Source0-md5:	aa363b428c4c1fc2e076a4ff77b957d7
 URL:		http://borges.rubyforge.org/
 BuildRequires:	rpmbuild(macros) >= 1.277
 BuildRequires:	ruby-devel
+BuildRequires:	sed >= 4.0
 %{?ruby_mod_ver_requires_eq}
 #BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,11 +29,20 @@
 %prep
 %setup -q -n rubygems-%{version}
 
+sed -i -e "s,Gem\\.dir,'$RPM_BUILD_ROOT'+Gem.dir," post-install.rb
+
+%build
+ruby setup.rb config \
+	--prefix=$RPM_BUILD_ROOT%{_prefix} \
+	--rbdir=$RPM_BUILD_ROOT%{ruby_rubylibdir}
+
+ruby setup.rb setup
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{_bindir}}
+install -d $RPM_BUILD_ROOT%{_libdir}/ruby/gems/1.8
 
-ruby -e "DESTDIR='$RPM_BUILD_ROOT'; require 'install.rb'"
+ruby setup.rb install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -41,6 +51,8 @@
 %defattr(644,root,root,755)
 %doc README*
 %attr(755,root,root) %{_bindir}/*
+%{ruby_rubylibdir}/*.rb
+%{ruby_rubylibdir}/rubygems
 %dir %{_libdir}/ruby/gems
 %dir %{_gemdir}
 %dir %{_gemdir}/cache
@@ -49,9 +61,6 @@
 %{_gemdir}/specifications/sources-0.0.1.gemspec
 %dir %{_gemdir}/gems
 %{_gemdir}/gems/sources-0.0.1/lib/sources.rb
-%dir %{_gemdir}/gems/cache
-%dir %{_gemdir}/gems/specifications
-%dir %{_gemdir}/gems/gems
 %dir %{_gemdir}/doc
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -60,6 +69,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2006/02/24 13:57:24  qboosh
+- updated to 0.8.11, use sed hack to make it build with DESTDIR
+
 Revision 1.8  2005/12/31 10:36:33  twittner
 - change %%ruby_mod_ver_requires_eq to %%{?ruby_mod_ver_requires_eq} -
   expand this macro only if defined to avoid parse error when appropriate
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ruby-RubyGems.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list