[perl-Archive-Zip] Improve sharpbang fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit ddbdb7a9b0e9435cbacee55090860e9027575265
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Thu Jan 15 12:40:23 2015 +0100

    Improve sharpbang fix

 perl-Archive-Zip.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/perl-Archive-Zip.spec b/perl-Archive-Zip.spec
index a440e11..ea330bb 100644
--- a/perl-Archive-Zip.spec
+++ b/perl-Archive-Zip.spec
@@ -65,8 +65,11 @@ existing Zip files, or from existing directories, files, or strings.
 %prep
 %setup -q -n Archive-Zip-%{version}
 %patch0 -p1
-perl -pi -e 's|^#!/bin/perl|#!%{__perl}|' examples/*.pl
-perl -pi -e 's|^#!/usr/local/bin/perl|#!%{__perl}|' examples/selfex.pl
+perl -MConfig -pi -e 's|^#!/usr/local/bin/perl|$Config{startperl}|' \
+    examples/selfex.pl
+for F in examples/*.pl; do
+    perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{$F})"
+done
 
 
 %build
@@ -94,6 +97,7 @@ make test
 %changelog
 * Thu Jan 15 2015 Petr Pisar <ppisar@xxxxxxxxxx> - 1.39-2
 - Correct dependencies
+- Improve sharpbang fix
 
 * Wed Oct 22 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 1.39-1
 - 1.39 bump
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux