[perl-Git-CPAN-Patch] Do not use /usr/bin/env to interpret git-cpan

Petr Pisar ppisar at fedoraproject.org
Mon Mar 2 13:05:01 UTC 2015


commit 860bbb3cc00cf1b4acdad62f45f7ef1ac5be9885
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Mar 2 13:47:31 2015 +0100

    Do not use /usr/bin/env to interpret git-cpan

 perl-Git-CPAN-Patch.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/perl-Git-CPAN-Patch.spec b/perl-Git-CPAN-Patch.spec
index 6e6b36a..2344d6b 100644
--- a/perl-Git-CPAN-Patch.spec
+++ b/perl-Git-CPAN-Patch.spec
@@ -1,7 +1,7 @@
 Name:           perl-Git-CPAN-Patch
 Summary:        Patch CPAN modules using Git
 Version:        2.0.3
-Release:        9%{?dist}
+Release:        10%{?dist}
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 Source0:        http://search.cpan.org/CPAN/authors/id/Y/YA/YANICK/Git-CPAN-Patch-%{version}.tar.gz
@@ -92,6 +92,8 @@ sending back patches to its maintainer.
 
 %prep
 %setup -q -n Git-CPAN-Patch-%{version}
+# Fix shellbang
+sed -i -e '1 s|^#!/usr/bin/env perl|#!perl|' bin/git-cpan
 
 %build
 perl Build.PL installdirs=vendor
@@ -122,6 +124,9 @@ git config --global user.name "Git-CPAN-Patch Owner"
 %{_mandir}/man1/*
 
 %changelog
+* Mon Mar 02 2015 Petr Pisar <ppisar at redhat.com> - 2.0.3-10
+- Do not use /usr/bin/env to interpret git-cpan
+
 * Thu Dec 18 2014 Petr Šabata <contyk at redhat.com> - 2.0.3-9
 - Correct MODULE_COMPAT
 



More information about the perl-devel mailing list