[ruby/f16] Fix sed usage wrt shebang modification

Mamoru Tasaka mtasaka at fedoraproject.org
Sun Jun 17 13:47:11 UTC 2012


commit 713605f70035809932267023efb5cbf88c779e2b
Author: Mamoru Tasaka <tasaka1 at localhost.localdomain>
Date:   Sun Jun 17 22:47:07 2012 +0900

    Fix sed usage wrt shebang modification
    
      (Christian Iseli <Christian.Iseli at unil.ch>)

 ruby.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ruby.spec b/ruby.spec
index 3d7eb64..8e1128b 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -17,7 +17,7 @@
 
 Name:		ruby
 Version:	%{rubyver}%{?dotpatchlevel}
-Release:	1%{?dist}
+Release:	2%{?dist}
 # Please check if ruby upstream changes this to "Ruby or GPLv2+"
 License:	Ruby or GPLv2
 URL:		http://www.ruby-lang.org/
@@ -321,7 +321,7 @@ find -type f | xargs chmod 0644
 grep -rl '#![ \t]*%{_prefix}/local/bin' . | \
 	xargs sed -i -e '1s|\(#![ \t]*\)%{_prefix}/local/bin|\1%{_bindir}|'
 grep -rl '#![ \t]*\./ruby' . | \
-	xargs sed -i -e '1s|\(#![ \t]*\)\./ruby|%{_bindir}/ruby|'
+	xargs sed -i -e '1s|\(#![ \t]*\)\./ruby|\1%{_bindir}/ruby|'
 
 # Fix encoding
 # Suppress message
@@ -544,6 +544,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/ri
 
 %changelog
+* Sun Jun 16 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 1.8.7.358-2
+- Fix sed usage wrt shebang modification
+  (Christian Iseli <Christian.Iseli at unil.ch>)
+
 * Fri Apr 13 2012 Mamoru Tasaka <mtasaka at fedoraproject.org> - 1.8.7.358-1
 - Update to 1.8.7p358
 


More information about the scm-commits mailing list