commit 65b325d7e28418c9888212462ea1385ee56048a5 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Fri Jan 16 07:47:11 2015 +0100 Do not hard-code interpreter name perl-Sub-Exporter.spec | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) --- diff --git a/perl-Sub-Exporter.spec b/perl-Sub-Exporter.spec index ebbf948..a3e6fed 100644 --- a/perl-Sub-Exporter.spec +++ b/perl-Sub-Exporter.spec @@ -4,7 +4,7 @@ Name: perl-Sub-Exporter Version: 0.987 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Sophisticated exporter for custom-built routines License: GPL+ or Artistic Group: Development/Libraries @@ -15,6 +15,7 @@ Patch1: Sub-Exporter-0.987-tm088.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch # Build +BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) # Module BuildRequires: perl(Carp) @@ -61,7 +62,8 @@ Sub::Exporter::Tutorial first! %endif # Fix shellbangs -find t/ -type f -exec sed -i -e 's|^#!perl|#!/usr/bin/perl|' {} \; +find t/ -type f -exec \ + perl -MExtUtils::MakeMaker -e 'ExtUtils::MM_Unix->fixin(qw{{}})' \; # Filter bogus provides/requires if we don't have rpm ≥ 4.9 %global provfilt /bin/sh -c "%{__perl_provides} | grep -Ev '^perl[(]Test::SubExporter.*[)]'" @@ -100,6 +102,9 @@ rm -rf %{buildroot} %{_mandir}/man3/Sub::Exporter::Util.3pm* %changelog +* Fri Jan 16 2015 Petr Pisar <ppisar@xxxxxxxxxx> - 0.987-4 +- Do not hard-code interpreter name + * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.987-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