From: Elan Ruusamäe Date: Mon, 29 Apr 2013 23:03:05 +0000 (+0300) Subject: ruby shebang X-Git-Tag: auto/th/ruby-rest-client-1.7.2-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=6ed29f9e208c5a415062ebeffdd7a7710a0406ea;p=packages%2Fruby-rest-client.git ruby shebang --- diff --git a/ruby-rest-client.spec b/ruby-rest-client.spec index 044df1f..b69f502 100644 --- a/ruby-rest-client.spec +++ b/ruby-rest-client.spec @@ -14,6 +14,7 @@ Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem URL: http://github.com/archiloque/rest-client BuildRequires: rpm-rubyprov BuildRequires: rpmbuild(macros) >= 1.656 +BuildRequires: sed >= 4.0 %if %{with tests} BuildRequires: ruby-mime-types >= 1.16 BuildRequires: ruby-netrc @@ -31,6 +32,7 @@ microframework style of specifying actions: get, put, post, delete. %prep %setup -q -n %{gem_name}-%{version} +%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/* %build %if %{with tests}