[packages/ruby-rspec-core] fixes missing shebang

glen glen at pld-linux.org
Mon Jul 16 15:56:48 CEST 2018


commit 9654c3e420cffa73175d971fab4a08f8b3d013b5
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Jul 16 16:54:37 2018 +0300

    fixes missing shebang
    
    refs 2d83169

 ruby-rspec-core.spec | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/ruby-rspec-core.spec b/ruby-rspec-core.spec
index 4504c15..11b9805 100644
--- a/ruby-rspec-core.spec
+++ b/ruby-rspec-core.spec
@@ -10,7 +10,7 @@ Summary:	Rspec-2 runner and formatters
 Summary(pl.UTF-8):	Kod uruchomieniowy i formatujący dla Rspec-2
 Name:		ruby-%{pkgname}
 Version:	3.7.1
-Release:	1
+Release:	2
 License:	MIT
 Group:		Development/Languages
 Source0:	http://rubygems.org/gems/%{pkgname}-%{version}.gem
@@ -46,9 +46,7 @@ Ten pakiet zawiera kod uruchomieniowy i formatujący dla Rspec-2.
 %prep
 %setup -q -n %{pkgname}-%{version}
 
-# rpmlint
-grep -rl '^#![ \t]*%{_bindir}' ./exe | \
-	xargs sed -i -e '\@^#![ \t]*/usr/bin at d'
+%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' exe/*
 
 %build
 # write .gemspec
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-rspec-core.git/commitdiff/9654c3e420cffa73175d971fab4a08f8b3d013b5



More information about the pld-cvs-commit mailing list