Improve sharpbang fix

This commit is contained in:
Petr Písař 2015-01-15 12:40:23 +01:00
parent 1510e04aee
commit ddbdb7a9b0

View File

@ -65,8 +65,11 @@ existing Zip files, or from existing directories, files, or strings.
%prep %prep
%setup -q -n Archive-Zip-%{version} %setup -q -n Archive-Zip-%{version}
%patch0 -p1 %patch0 -p1
perl -pi -e 's|^#!/bin/perl|#!%{__perl}|' examples/*.pl perl -MConfig -pi -e 's|^#!/usr/local/bin/perl|$Config{startperl}|' \
perl -pi -e 's|^#!/usr/local/bin/perl|#!%{__perl}|' examples/selfex.pl examples/selfex.pl
for F in examples/*.pl; do
perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{$F})"
done
%build %build
@ -94,6 +97,7 @@ make test
%changelog %changelog
* Thu Jan 15 2015 Petr Pisar <ppisar@redhat.com> - 1.39-2 * Thu Jan 15 2015 Petr Pisar <ppisar@redhat.com> - 1.39-2
- Correct dependencies - Correct dependencies
- Improve sharpbang fix
* Wed Oct 22 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.39-1 * Wed Oct 22 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.39-1
- 1.39 bump - 1.39 bump