[perl-Data-OptList] Do not hard-code interpreter name

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

 



commit d8aca68630335f110429e90d05ffc551d084f32e
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Thu Jan 15 16:52:46 2015 +0100

    Do not hard-code interpreter name

 perl-Data-OptList.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/perl-Data-OptList.spec b/perl-Data-OptList.spec
index ce20173..1bfdd2b 100644
--- a/perl-Data-OptList.spec
+++ b/perl-Data-OptList.spec
@@ -1,7 +1,7 @@
 Name:           perl-Data-OptList
 Summary:        Parse and validate simple name/value option pairs
 Version:        0.109
-Release:        3%{?dist}
+Release:        4%{?dist}
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Data-OptList/
@@ -40,7 +40,9 @@ following a name is its value.
 %prep
 %setup -q -n Data-OptList-%{version}
 
-perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*
+for F in t/*; do
+    perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{$F})"
+done
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor
@@ -61,6 +63,9 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
 %{_mandir}/man3/Data::OptList.3pm*
 
 %changelog
+* Thu Jan 15 2015 Petr Pisar <ppisar@xxxxxxxxxx> - 0.109-4
+- Do not hard-code interpreter name
+
 * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.109-3
 - Perl 5.20 rebuild
 
--
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