ppisar pushed to perl-PDL (master). "Improve shellbang fix"
notifications at fedoraproject.org
notifications at fedoraproject.org
Tue Oct 27 07:26:46 UTC 2015
From 5477cf45c2c89ce2b7864ff32266d204a440d1e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Tue, 27 Oct 2015 08:25:42 +0100
Subject: Improve shellbang fix
---
perl-PDL.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/perl-PDL.spec b/perl-PDL.spec
index 785f061..8cb3c0f 100644
--- a/perl-PDL.spec
+++ b/perl-PDL.spec
@@ -58,6 +58,7 @@ BuildRequires: perl(Pod::Select)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
+BuildRequires: sed
# Run-time:
BuildRequires: perl(autodie)
BuildRequires: perl(base)
@@ -171,8 +172,8 @@ such commercial packages as IDL and MatLab.
%if %{without slatec}
%patch4 -p1 -b .slatec
%endif
-# Fix shebang
-sed -e 's,^#!/usr/bin/env perl,#!/usr/bin/perl,' -i Perldl2/pdl2
+# Fix shellbang
+sed -e 's,^#!/usr/bin/env perl,%(perl -MConfig -e 'print $Config{startperl}'),' -i Perldl2/pdl2
%build
# Optimization above -O0 segfaults tests, bug #914307
@@ -211,6 +212,7 @@ make test
%changelog
* Tue Oct 27 2015 Petr Pisar <ppisar at redhat.com> - 2.14.0-2
- Rebase Disable-PDL-Slatec patch
+- Improve shellbang fix
* Tue Oct 13 2015 Jitka Plesnikova <jplesnik at redhat.com> - 2.14.0-1
- 2.014 bump
--
cgit v0.11.2
http://pkgs.fedoraproject.org/cgit/perl-PDL.git/commit/?h=master&id=5477cf45c2c89ce2b7864ff32266d204a440d1e4
More information about the perl-devel
mailing list