[perl-Perl-OSType] Update to 1.008

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 84a57de4596d6a141811ff437d13becd58697dcf
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Fri Jan 30 12:13:53 2015 +0000

    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

 ...patch => Perl-OSType-1.008-old-Test::More.patch |   12 ++----
 ...ords.patch => Perl-OSType-1.008-stopwords.patch |    2 +-
 perl-Perl-OSType.spec                              |   43 ++++++++++++++------
 sources                                            |    2 +-
 4 files changed, 36 insertions(+), 23 deletions(-)
---
diff --git a/Perl-OSType-1.005-old-Test::More.patch b/Perl-OSType-1.008-old-Test::More.patch
similarity index 67%
rename from Perl-OSType-1.005-old-Test::More.patch
rename to Perl-OSType-1.008-old-Test::More.patch
index 11f447a..0606d13 100644
--- a/Perl-OSType-1.005-old-Test::More.patch
+++ b/Perl-OSType-1.008-old-Test::More.patch
@@ -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);
  
diff --git a/Perl-OSType-1.007-stopwords.patch b/Perl-OSType-1.008-stopwords.patch
similarity index 90%
rename from Perl-OSType-1.007-stopwords.patch
rename to Perl-OSType-1.008-stopwords.patch
index 01a3498..6fb643b 100644
--- a/Perl-OSType-1.007-stopwords.patch
+++ b/Perl-OSType-1.008-stopwords.patch
@@ -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
  
diff --git a/perl-Perl-OSType.spec b/perl-Perl-OSType.spec
index a7fd7af..e9d08b0 100644
--- a/perl-Perl-OSType.spec
+++ b/perl-Perl-OSType.spec
@@ -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@xxxxxxxxxxxx> - 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@xxxxxxxxxx> - 1.007-311
 - Perl 5.20 re-rebuild of bootstrapped packages
 
diff --git a/sources b/sources
index 420cf2e..281735a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7b0795b82471322ec32d267c333dc895  Perl-OSType-1.007.tar.gz
+25ff1d6305cee23e160ce78a7ef5e38d  Perl-OSType-1.008.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux