[packages/ruby-xtemplate] fix bad shebang

glen glen at pld-linux.org
Thu Aug 27 16:32:21 CEST 2015


commit 7961df64c9f5af1e4bc21969a67cd1aca0b976aa
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Aug 27 17:32:16 2015 +0300

    fix bad shebang

 ruby-xtemplate.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/ruby-xtemplate.spec b/ruby-xtemplate.spec
index d1cabc6..be43ffa 100644
--- a/ruby-xtemplate.spec
+++ b/ruby-xtemplate.spec
@@ -3,7 +3,7 @@ Summary:	An XML/XHTML template library for Ruby
 Summary(pl.UTF-8):	Biblioteka szablonów XML/XHTML dla języka Ruby
 Name:		ruby-%{pkgname}
 Version:	0.8.0
-Release:	5
+Release:	6
 License:	GPL
 Group:		Development/Libraries
 Source0:	http://downloads.sourceforge.net/xtemplate/%{pkgname}-%{version}.tar.gz
@@ -11,6 +11,7 @@ Source0:	http://downloads.sourceforge.net/xtemplate/%{pkgname}-%{version}.tar.gz
 URL:		http://xtemplate.sourceforge.net
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.665
+BuildRequires:	sed >= 4.0
 Provides:	ruby-XTemplate
 Obsoletes:	ruby-XTemplate
 BuildArch:	noarch
@@ -48,6 +49,7 @@ Dokumentacji w formacie ri dla %{pkgname}.
 
 %prep
 %setup -q -n %{pkgname}-%{version}
+%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
 %build
 rdoc --ri --op ri lib
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-xtemplate.git/commitdiff/7961df64c9f5af1e4bc21969a67cd1aca0b976aa



More information about the pld-cvs-commit mailing list