From ff3f609306e2fed351b69072b5a9c873f301bee6 Mon Sep 17 00:00:00 2001
From: Oleg Girko
Date: Tue, 22 Jan 2013 20:57:13 +0000
Subject: [PATCH] Use newly built perl instead of installed one to edit
patchlevel.h.
This allows to build perl on a system without installed perl.
Signed-off-by: Oleg Girko
---
perl.changes | 3 +++
perl.spec | 6 +++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/perl.changes b/perl.changes
index c73dc74..7c873ee 100644
--- a/perl.changes
+++ b/perl.changes
@@ -1,3 +1,6 @@
+* Tue Jan 22 2013 Oleg Girko - 5.12.1
+- Use newly built perl instead of installed one to edit patchlevel.h.
+
* Tue Jan 22 2013 Oleg Girko - 5.12.1
- Disable multilib for 64-bit architectures.
diff --git a/perl.spec b/perl.spec
index bf7643b..97418b8 100644
--- a/perl.spec
+++ b/perl.spec
@@ -849,12 +849,12 @@ chmod -R u+w $RPM_BUILD_ROOT/*
# Local patch tracking
cd $RPM_BUILD_ROOT%{_libdir}/perl5/%{perl_version}/%{perl_archname}/CORE/
-perl -x patchlevel.h 'Fedora Patch1: Removes date check, Fedora/RHEL specific'
+%{new_perl} -x patchlevel.h 'Fedora Patch1: Removes date check, Fedora/RHEL specific'
%ifnarch sparc64
-perl -x patchlevel.h 'Fedora Patch2: Work around annoying rpath issue'
+%{new_perl} -x patchlevel.h 'Fedora Patch2: Work around annoying rpath issue'
%endif
%ifarch %{multilib_64_archs}
-perl -x patchlevel.h 'Fedora Patch3: support for libdir64'
+%{new_perl} -x patchlevel.h 'Fedora Patch3: support for libdir64'
%endif
rm -rf $RPM_BUILD_ROOT/*.0