[packages/puppet-razor] use ruby shebang

glen glen at pld-linux.org
Tue Apr 30 00:52:33 CEST 2013


commit 602079e0ea53828368a8d18cdea1002ed8c15545
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Apr 30 01:52:22 2013 +0300

    use ruby shebang

 puppet-razor.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/puppet-razor.spec b/puppet-razor.spec
index b9fd2c5..b51a569 100644
--- a/puppet-razor.spec
+++ b/puppet-razor.spec
@@ -1,7 +1,7 @@
 Summary:	Next-Generation Provisioning for bare metal and virtual servers
 Name:		puppet-razor
 Version:	0.9.0
-Release:	0.1
+Release:	0.2
 License:	Apache v2.0
 Group:		Applications
 Source0:	https://github.com/puppetlabs/Razor/archive/%{version}.tar.gz?/%{name}-%{version}.tgz
@@ -9,6 +9,7 @@ Source0:	https://github.com/puppetlabs/Razor/archive/%{version}.tar.gz?/%{name}-
 URL:		https://github.com/puppetlabs/Razor/wiki
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.656
+BuildRequires:	sed >= 4.0
 Requires:	ruby-base62
 Requires:	ruby-bson
 Requires:	ruby-bson_ext
@@ -44,6 +45,7 @@ taking possession of ESX systems).
 
 %prep
 %setup -q -n Razor-%{version}
+%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
 %build
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/puppet-razor.git/commitdiff/602079e0ea53828368a8d18cdea1002ed8c15545



More information about the pld-cvs-commit mailing list