Update to 1.008
- New upstream release 1.008 - Added 'minix' as a Unix-type OS - Use %license where possible - Update patch for building on old distributions
This commit is contained in:
parent
e14e7e5da8
commit
84a57de459
|
@ -17,15 +17,11 @@
|
|||
-
|
||||
--- xt/release/test-version.t
|
||||
+++ xt/release/test-version.t
|
||||
@@ -1,6 +1,6 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More;
|
||||
+use Test::More tests => 2;
|
||||
@@ -15,8 +15,8 @@ my $params = {
|
||||
push @imports, $params
|
||||
if version->parse( $Test::Version::VERSION ) >= version->parse('1.002');
|
||||
|
||||
# generated by Dist::Zilla::Plugin::Test::Version 0.002004
|
||||
BEGIN { eval "use Test::Version; 1;" or die $@; }
|
||||
@@ -18,5 +18,4 @@ push @imports, $params
|
||||
+plan tests => 3;
|
||||
|
||||
Test::Version->import(@imports);
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
--- lib/Perl/OSType.pm
|
||||
+++ lib/Perl/OSType.pm
|
||||
@@ -104,6 +104,8 @@
|
||||
@@ -106,6 +106,8 @@ version 1.008
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
|
@ -1,19 +1,27 @@
|
|||
# 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)
|
||||
|
||||
# Select the appropriate system speller
|
||||
%if %(perl -e 'print (($] >= 5.010000) ? 1 : 0);')
|
||||
%global speller hunspell
|
||||
%else
|
||||
%global speller aspell
|
||||
%endif
|
||||
|
||||
Name: perl-Perl-OSType
|
||||
Version: 1.007
|
||||
Release: 311%{?dist}
|
||||
Version: 1.008
|
||||
Release: 1%{?dist}
|
||||
Summary: Map Perl operating system names to generic types
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Perl-OSType/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Perl-OSType-%{version}.tar.gz
|
||||
Patch1: Perl-OSType-1.005-old-Test::More.patch
|
||||
Patch2: Perl-OSType-1.007-stopwords.patch
|
||||
Patch1: Perl-OSType-1.008-old-Test::More.patch
|
||||
Patch2: Perl-OSType-1.008-stopwords.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
BuildArch: noarch
|
||||
# Build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17
|
||||
# Module
|
||||
BuildRequires: perl(Exporter)
|
||||
|
@ -22,28 +30,26 @@ BuildRequires: perl(warnings)
|
|||
# Test Suite
|
||||
BuildRequires: perl(blib)
|
||||
BuildRequires: perl(constant)
|
||||
BuildRequires: perl(File::Spec::Functions)
|
||||
BuildRequires: perl(List::Util)
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(Test::More)
|
||||
# Optional tests, not run for this dual-lived module when bootstrapping
|
||||
# Also not run for EPEL-5/6 builds due to package unavailability
|
||||
%if !%{defined perl_bootstrap} && 0%{?fedora}
|
||||
BuildRequires: perl(CPAN::Meta)
|
||||
BuildRequires: perl(CPAN::Meta::Requirements)
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
||||
BuildRequires: perl(CPAN::Meta::Prereqs)
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(IO::Handle)
|
||||
BuildRequires: perl(IPC::Open3)
|
||||
BuildRequires: perl(Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire)
|
||||
BuildRequires: perl(Pod::Coverage::TrustPod)
|
||||
BuildRequires: perl(Pod::Wordlist::hanekomu)
|
||||
BuildRequires: perl(Pod::Wordlist)
|
||||
BuildRequires: perl(Test::CPAN::Meta)
|
||||
BuildRequires: perl(Test::MinimumVersion)
|
||||
BuildRequires: perl(Test::Perl::Critic)
|
||||
BuildRequires: perl(Test::Pod) >= 1.41
|
||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
||||
BuildRequires: perl(Test::Portability::Files)
|
||||
BuildRequires: perl(Test::Spelling), aspell-en
|
||||
BuildRequires: perl(Test::Spelling), %{speller}-en
|
||||
BuildRequires: perl(Test::Version)
|
||||
%endif
|
||||
# Runtime
|
||||
|
@ -90,11 +96,22 @@ LANG=en_US make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
|||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%doc Changes CONTRIBUTING LICENSE README
|
||||
%if 0%{?_licensedir:1}
|
||||
%license LICENSE
|
||||
%else
|
||||
%doc LICENSE
|
||||
%endif
|
||||
%doc Changes CONTRIBUTING.mkdn README
|
||||
%{perl_vendorlib}/Perl/
|
||||
%{_mandir}/man3/Perl::OSType.3pm*
|
||||
%{_mandir}/man3/Perl::OSType.3*
|
||||
|
||||
%changelog
|
||||
* Fri Jan 30 2015 Paul Howarth <paul@city-fan.org> - 1.008-1
|
||||
- Update to 1.008
|
||||
- Added 'minix' as a Unix-type OS
|
||||
- Use %%license where possible
|
||||
- Update patch for building on old distributions
|
||||
|
||||
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.007-311
|
||||
- Perl 5.20 re-rebuild of bootstrapped packages
|
||||
|
||||
|
|
Loading…
Reference in New Issue