From 0fdd601e2301510ab0c34c83cdbdb94279b9cffd Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Tue, 18 Oct 2016 13:19:06 +0100
Subject: Update to 1.111

- New upstream release 1.111
  - Use a safe compartment
  - Require Perl 5.10 so named captures can be used
  - Support v5.12 and v5.14 PACKAGE NAMESPACE VERSION BLOCK
- Modernize spec since requirements not available on old distributions
- Drop now-redundant provides filter
---
 perl-Module-Extract-VERSION.spec | 51 +++++++++++++++++-----------------------
 sources                          |  2 +-
 2 files changed, 22 insertions(+), 31 deletions(-)

diff --git a/perl-Module-Extract-VERSION.spec b/perl-Module-Extract-VERSION.spec
index 8b09354..a1c219d 100644
--- a/perl-Module-Extract-VERSION.spec
+++ b/perl-Module-Extract-VERSION.spec
@@ -1,15 +1,10 @@
-# Provides/Requires filtering is different from rpm 4.9 onwards
-%global rpm49 0%(rpm --version | perl -p -e 's/^.* 
(\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e')
-
 Name:          perl-Module-Extract-VERSION
-Version:       1.01
-Release:       17%{?dist}
+Version:       1.111
+Release:       1%{?dist}
 Summary:       Extract a module version without running code
 License:       GPL+ or Artistic
-Group:         Development/Libraries
 URL:           http://search.cpan.org/dist/Module-Extract-VERSION/
 Source0:       
http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Module-Extract-VERSION-%{version}.tar.gz
-BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:     noarch
 # Module Build
 BuildRequires: coreutils
@@ -17,16 +12,19 @@ BuildRequires:      findutils
 BuildRequires: make
 BuildRequires: perl
 BuildRequires: perl-generators
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
+BuildRequires: perl(File::Spec)
+BuildRequires: perl(File::Spec::Functions)
 # Module Runtime
 BuildRequires: perl(Carp)
+BuildRequires: perl(Safe)
 BuildRequires: perl(strict)
 BuildRequires: perl(subs)
 BuildRequires: perl(vars)
+BuildRequires: perl(version)
 BuildRequires: perl(warnings)
 # Test Suite
-BuildRequires: perl(File::Spec)
-BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::More) >= 0.95
 # Optional Tests
 BuildRequires: perl(Test::Manifest) >= 1.21
 BuildRequires: perl(Test::Pod) >= 1.00
@@ -34,9 +32,8 @@ BuildRequires:        perl(Test::Pod::Coverage) >= 1.00
 # Test::Prereq not used in presence of Test::Manifest
 # Runtime
 Requires:      perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
-
-# Filter bogus provide for perl(ExtUtils::MakeMaker::_version) (rpm 4.9 
onwards)
-%global __provides_exclude ^perl\\(ExtUtils::MakeMaker::_version\\)
+Requires:      perl(Safe)
+Requires:      perl(version)
 
 %description
 This module lets you pull out of module source code the version number for the
@@ -45,39 +42,33 @@ module. It assumes that there is only one $VERSION in the 
file.
 %prep
 %setup -q -n Module-Extract-VERSION-%{version}
 
-# Filter bogus provide for perl(ExtUtils::MakeMaker::_version) (prior to rpm 
4.9)
-%if ! %{rpm49}
-%global provfilt /bin/sh -c "%{__perl_provides} | grep -Fvx 
'perl(ExtUtils::MakeMaker::_version)'"
-%global __perl_provides %{provfilt}
-%endif
-
 %build
 perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
 make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-%{_fixperms} %{buildroot}
+find %{buildroot} -type f -name .packlist -delete
+%{_fixperms} -c %{buildroot}
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%if 0%{?_licensedir:1}
 %license LICENSE
-%else
-%doc LICENSE
-%endif
-%doc Changes README
+%doc Changes README.pod
 %{perl_vendorlib}/Module/
 %{_mandir}/man3/Module::Extract::VERSION.3*
 
 %changelog
+* Tue Oct 18 2016 Paul Howarth <p...@city-fan.org> - 1.111-1
+- Update to 1.111
+  - Use a safe compartment
+  - Require Perl 5.10 so named captures can be used
+  - Support v5.12 and v5.14 PACKAGE NAMESPACE VERSION BLOCK
+- Modernize spec since requirements not available on old distributions
+- Drop now-redundant provides filter
+
 * Fri Jul 22 2016 Petr Pisar <ppi...@redhat.com> - 1.01-17
 - Adjust RPM version detection to SRPM build root without perl
 
diff --git a/sources b/sources
index e4ca9b5..906d4bd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2e0530aa2e92a4df27c62a13032ae8ee  Module-Extract-VERSION-1.01.tar.gz
+ae6b71daf2335d98b547744cce743e8d  Module-Extract-VERSION-1.111.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Module-Extract-VERSION.git/commit/?h=perl-Module-Extract-VERSION-1.111-1.fc25&id=0fdd601e2301510ab0c34c83cdbdb94279b9cffd
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to