From 7c40546a469e16aaf354a65d9dca8383e7d7bc1c Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Thu, 21 Jul 2016 19:30:06 +0100
Subject: Fix FTBFS when perl isn't in the SRPM build root

---
 perl-Net-SSLeay.spec | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/perl-Net-SSLeay.spec b/perl-Net-SSLeay.spec
index d85c81b..f1d6ca7 100644
--- a/perl-Net-SSLeay.spec
+++ b/perl-Net-SSLeay.spec
@@ -1,9 +1,9 @@
 # Provides/Requires filtering is different from rpm 4.9 onwards
-%global rpm49 %(rpm --version | perl -p -e 's/^.* 
(\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e')
+%global rpm49 %(rpm --version | perl -p -e 's/^.* 
(\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e' 2>/dev/null || 
echo 0)
 
 Name:          perl-Net-SSLeay
 Version:       1.74
-Release:       2%{?dist}
+Release:       3%{?dist}
 Summary:       Perl extension for using OpenSSL
 Group:         Development/Libraries
 License:       Artistic 2.0
@@ -109,6 +109,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Net::SSLeay::Handle.3*
 
 %changelog
+* Thu Jul 21 2016 Paul Howarth <p...@city-fan.org> - 1.74-3
+- Fix FTBFS when perl isn't in the SRPM build root
+
 * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 1.74-2
 - Perl 5.24 rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Net-SSLeay.git/commit/?h=perl-Net-SSLeay-1.74-3.fc25&id=7c40546a469e16aaf354a65d9dca8383e7d7bc1c
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to