From 0dd7df9881ffaef5caccaac41623d4230fd1ef12 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Tue, 19 Jan 2016 10:08:39 +0000
Subject: Prefer %global over %define

---
 perl-Net-SSH-Perl.spec | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/perl-Net-SSH-Perl.spec b/perl-Net-SSH-Perl.spec
index 5242322..1910832 100644
--- a/perl-Net-SSH-Perl.spec
+++ b/perl-Net-SSH-Perl.spec
@@ -7,7 +7,7 @@
 Summary:       SSH (Secure Shell) client
 Name:          perl-Net-SSH-Perl
 Version:       1.42
-Release:       1%{?dist}
+Release:       2%{?dist}
 License:       GPL+ or Artistic
 Group:         Development/Libraries
 Url:           http://search.cpan.org/dist/Net-SSH-Perl/
@@ -81,7 +81,9 @@ BuildRequires:        perl(Test::More)
 BuildRequires: perl(Module::Signature)
 BuildRequires: perl(Test::Pod)                 >= 0.95
 BuildRequires: perl(Test::Pod::Coverage)       >= 1.04
+%if 0%{?fedora} || 0%{?rhel} > 5
 BuildRequires: perl(Test::YAML::Meta)          >= 0.03
+%endif
 # Runtime
 Requires:      perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:      perl(Crypt::Blowfish)
@@ -118,9 +120,9 @@ gpg --import %{SOURCE4}
 
 # Remove Crypt::IDEA dep if we're not supporting the IDEA algorithm and we 
don't have rpm 4.9
 %if ! %{rpm49}
-%define bogusreq 'perl(Crypt::IDEA)'
+%global bogusreq 'perl(Crypt::IDEA)'
 %global reqfilt /bin/sh -c "%{__perl_requires} | grep -Fvx %{bogusreq}"
-%{!?_with_IDEA:%define __perl_requires %{reqfilt}}
+%{!?_with_IDEA:%global __perl_requires %{reqfilt}}
 %endif
 
 %build
@@ -169,6 +171,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Net::SSH::Perl*.3*
 
 %changelog
+* Tue Jan 19 2016 Paul Howarth <p...@city-fan.org> - 1.42-2
+- Prefer %%global over %%define
+
 * Mon Sep 28 2015 Paul Howarth <p...@city-fan.org> - 1.42-1
 - Update to 1.42
   - Fix issue with long selects getting interrupted by signals and dying
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-Net-SSH-Perl.git/commit/?h=perl-Net-SSH-Perl-1.42-2.fc24&id=0dd7df9881ffaef5caccaac41623d4230fd1ef12
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to