From fb977f9bca877834d43acd281bb7d7073f23afa0 Mon Sep 17 00:00:00 2001
From: Paul Howarth <[email protected]>
Date: Fri, 2 Sep 2016 12:10:31 +0100
Subject: Update to 0.025
- New upstream release 0.025
- Make split_like_shell always unixy
- Remove Module::Load dependency
- Remove done_testing; it requires Test::More 0.88
- Drop VMS and Windows versions to avoid unwelcome dependencies
- Drop now-redundant patch for building with Test::More < 0.88
- Use %license where possible
- Simplify find command using -delete
---
ExtUtils-Helpers-0.021-old-Test::More.patch | 33 ----------------
perl-ExtUtils-Helpers.spec | 61 ++++++++++++++---------------
sources | 2 +-
3 files changed, 31 insertions(+), 65 deletions(-)
delete mode 100644 ExtUtils-Helpers-0.021-old-Test::More.patch
diff --git a/ExtUtils-Helpers-0.021-old-Test::More.patch
b/ExtUtils-Helpers-0.021-old-Test::More.patch
deleted file mode 100644
index 45f684b..0000000
--- a/ExtUtils-Helpers-0.021-old-Test::More.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- t/author-split_like_shell.t
-+++ t/author-split_like_shell.t
-@@ -69,6 +69,8 @@ my @win_splits =
- { 'a " b " c' => [ 'a', ' b ', 'c' ] },
- );
-
-+plan tests => (2 * scalar @win_splits) + (2 * scalar @unix_splits);
-+
- foreach my $test (@win_splits) {
- my ($string, $expected) = %$test;
- my @result = ExtUtils::Helpers::Windows::split_like_shell($string);
-@@ -86,4 +88,3 @@ foreach my $test (@unix_splits) {
- diag("split_like_shell error \n>$string< is not splitting as >" .
join("|", @$expected) . '<');
- }
-
--done_testing;
---- t/man_pagename.t
-+++ t/man_pagename.t
-@@ -2,7 +2,7 @@
-
- use strict;
- use warnings FATAL => 'all';
--use Test::More;
-+use Test::More tests => 4;
- use Config;
- use File::Spec::Functions qw/catfile/;
- use ExtUtils::Helpers qw/man1_pagename man3_pagename/;
-@@ -20,5 +20,3 @@ is man1_pagename('script/foo'), "foo.$Co
- is man3_pagename(catfile(qw/lib ExtUtils.pm/)), "ExtUtils.$Config{man3ext}",
'man3_pagename 1';
- is man3_pagename(catfile(qw/lib ExtUtils Helpers.pm/)), join($sep,
qw/ExtUtils Helpers./).$Config{man3ext}, 'man3_pagename 2';
- is man3_pagename(catfile(qw/lib ExtUtils Helpers Unix.pm/)), join($sep,
qw/ExtUtils Helpers Unix./).$Config{man3ext}, 'man3_pagename 3';
--
--done_testing;
diff --git a/perl-ExtUtils-Helpers.spec b/perl-ExtUtils-Helpers.spec
index 2f47c21..b5386db 100644
--- a/perl-ExtUtils-Helpers.spec
+++ b/perl-ExtUtils-Helpers.spec
@@ -1,46 +1,33 @@
-# Test suite needs patching if we have Test::More < 0.88
-%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION) <
0.88 ? 1 : 0);' 2>/dev/null || echo 0)
-
Name: perl-ExtUtils-Helpers
-Version: 0.022
-Release: 10%{?dist}
+Version: 0.025
+Release: 1%{?dist}
Summary: Various portability utilities for module builders
Group: Development/Libraries
License: GPL+ or Artistic
URL: https://metacpan.org/release/ExtUtils-Helpers
Source0:
http://cpan.metacpan.org/authors/id/L/LE/LEONT/ExtUtils-Helpers-%{version}.tar.gz
-Patch3: ExtUtils-Helpers-0.021-old-Test::More.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
# Build
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
-# Module
+# Module (File::Copy only needed for VMS support, not packaged)
BuildRequires: perl(Carp)
BuildRequires: perl(Config)
BuildRequires: perl(Exporter) >= 5.57
BuildRequires: perl(File::Basename)
-BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Spec::Functions)
-BuildRequires: perl(Module::Load)
BuildRequires: perl(strict)
BuildRequires: perl(Text::ParseWords) >= 3.24
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(Cwd)
-BuildRequires: perl(File::Spec)
-BuildRequires: perl(IO::Handle)
-BuildRequires: perl(IPC::Open3)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More)
-# Release Tests
-# perl-Pod-Coverage-TrustPod -> perl-Pod-Eventual -> perl-Mixin-Linewise ->
-# perl-YAML-Tiny -> perl-Module-Build-Tiny -> perl-ExtUtils-Helpers
-%if 0%{!?perl_bootstrap:1}
-BuildRequires: perl(Pod::Coverage::TrustPod)
-BuildRequires: perl(Test::Pod)
-BuildRequires: perl(Test::Pod::Coverage)
-%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@@ -51,10 +38,9 @@ modules.
%prep
%setup -q -n ExtUtils-Helpers-%{version}
-# Test suite needs patching if we have Test::More < 0.88
-%if %{old_test_more}
-%patch3
-%endif
+# Don't include VMS and Windows helpers, which may pull in unwelcome
dependencies
+rm -f lib/ExtUtils/Helpers/{VMS,Windows}.pm
+perl -ni -e 'print unless /^lib\/ExtUtils\/Helpers\/(VMS|Windows)\.pm$/;'
MANIFEST
%build
perl Makefile.PL INSTALLDIRS=vendor
@@ -63,24 +49,37 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}
%check
-make test AUTHOR_TESTING=1 RELEASE_TESTING=1
+make test
%clean
rm -rf %{buildroot}
%files
-%doc Changes LICENSE README
+%if 0%{?_licensedir:1}
+%license LICENSE
+%else
+%doc LICENSE
+%endif
+%doc Changes README
%{perl_vendorlib}/ExtUtils/
-%{_mandir}/man3/ExtUtils::Helpers.3pm*
-%{_mandir}/man3/ExtUtils::Helpers::Unix.3pm*
-%{_mandir}/man3/ExtUtils::Helpers::VMS.3pm*
-%{_mandir}/man3/ExtUtils::Helpers::Windows.3pm*
+%{_mandir}/man3/ExtUtils::Helpers.3*
+%{_mandir}/man3/ExtUtils::Helpers::Unix.3*
%changelog
+* Fri Sep 2 2016 Paul Howarth <[email protected]> - 0.025-1
+- Update to 0.025
+ - Make split_like_shell always unixy
+ - Remove Module::Load dependency
+ - Remove done_testing; it requires Test::More 0.88
+- Drop VMS and Windows versions to avoid unwelcome dependencies
+- Drop now-redundant patch for building with Test::More < 0.88
+- Use %%license where possible
+- Simplify find command using -delete
+
* Wed May 18 2016 Jitka Plesnikova <[email protected]> - 0.022-10
- Perl 5.24 re-rebuild of bootstrapped packages
diff --git a/sources b/sources
index c0054e3..3e56dbf 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cf4fd6f8caa6daac33b1111c9e93162b ExtUtils-Helpers-0.022.tar.gz
+c476c0bf806e26abe68e64d2a20e17e4 ExtUtils-Helpers-0.025.tar.gz
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-ExtUtils-Helpers.git/commit/?h=master&id=fb977f9bca877834d43acd281bb7d7073f23afa0
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
https://lists.fedoraproject.org/admin/lists/[email protected]