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
This commit is contained in:
parent
037cc9bdbf
commit
fb977f9bca
@ -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;
|
|
@ -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
|
Name: perl-ExtUtils-Helpers
|
||||||
Version: 0.022
|
Version: 0.025
|
||||||
Release: 10%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Various portability utilities for module builders
|
Summary: Various portability utilities for module builders
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/ExtUtils-Helpers
|
URL: https://metacpan.org/release/ExtUtils-Helpers
|
||||||
Source0: http://cpan.metacpan.org/authors/id/L/LE/LEONT/ExtUtils-Helpers-%{version}.tar.gz
|
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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Build
|
# Build
|
||||||
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: findutils
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: perl
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
# Module
|
# Module (File::Copy only needed for VMS support, not packaged)
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(Config)
|
BuildRequires: perl(Config)
|
||||||
BuildRequires: perl(Exporter) >= 5.57
|
BuildRequires: perl(Exporter) >= 5.57
|
||||||
BuildRequires: perl(File::Basename)
|
BuildRequires: perl(File::Basename)
|
||||||
BuildRequires: perl(File::Copy)
|
|
||||||
BuildRequires: perl(File::Spec::Functions)
|
BuildRequires: perl(File::Spec::Functions)
|
||||||
BuildRequires: perl(Module::Load)
|
|
||||||
BuildRequires: perl(strict)
|
BuildRequires: perl(strict)
|
||||||
BuildRequires: perl(Text::ParseWords) >= 3.24
|
BuildRequires: perl(Text::ParseWords) >= 3.24
|
||||||
BuildRequires: perl(warnings)
|
BuildRequires: perl(warnings)
|
||||||
# Test Suite
|
# Test Suite
|
||||||
BuildRequires: perl(Cwd)
|
BuildRequires: perl(Cwd)
|
||||||
BuildRequires: perl(File::Spec)
|
|
||||||
BuildRequires: perl(IO::Handle)
|
|
||||||
BuildRequires: perl(IPC::Open3)
|
|
||||||
BuildRequires: perl(lib)
|
BuildRequires: perl(lib)
|
||||||
BuildRequires: perl(Test::More)
|
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
|
# Runtime
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
@ -51,10 +38,9 @@ modules.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n ExtUtils-Helpers-%{version}
|
%setup -q -n ExtUtils-Helpers-%{version}
|
||||||
|
|
||||||
# Test suite needs patching if we have Test::More < 0.88
|
# Don't include VMS and Windows helpers, which may pull in unwelcome dependencies
|
||||||
%if %{old_test_more}
|
rm -f lib/ExtUtils/Helpers/{VMS,Windows}.pm
|
||||||
%patch3
|
perl -ni -e 'print unless /^lib\/ExtUtils\/Helpers\/(VMS|Windows)\.pm$/;' MANIFEST
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
@ -63,24 +49,37 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make pure_install DESTDIR=%{buildroot}
|
make pure_install DESTDIR=%{buildroot}
|
||||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
find %{buildroot} -type f -name .packlist -delete
|
||||||
%{_fixperms} %{buildroot}
|
%{_fixperms} %{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test AUTHOR_TESTING=1 RELEASE_TESTING=1
|
make test
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Changes LICENSE README
|
%if 0%{?_licensedir:1}
|
||||||
|
%license LICENSE
|
||||||
|
%else
|
||||||
|
%doc LICENSE
|
||||||
|
%endif
|
||||||
|
%doc Changes README
|
||||||
%{perl_vendorlib}/ExtUtils/
|
%{perl_vendorlib}/ExtUtils/
|
||||||
%{_mandir}/man3/ExtUtils::Helpers.3pm*
|
%{_mandir}/man3/ExtUtils::Helpers.3*
|
||||||
%{_mandir}/man3/ExtUtils::Helpers::Unix.3pm*
|
%{_mandir}/man3/ExtUtils::Helpers::Unix.3*
|
||||||
%{_mandir}/man3/ExtUtils::Helpers::VMS.3pm*
|
|
||||||
%{_mandir}/man3/ExtUtils::Helpers::Windows.3pm*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 2 2016 Paul Howarth <paul@city-fan.org> - 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 <jplesnik@redhat.com> - 0.022-10
|
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.022-10
|
||||||
- Perl 5.24 re-rebuild of bootstrapped packages
|
- Perl 5.24 re-rebuild of bootstrapped packages
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user