[perl-Perl-OSType] Update to 1.003

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

 



commit 1410c09cb708f6352053f7343bf5addc9b5a8598
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Thu Mar 21 11:15:00 2013 +0000

    Update to 1.003
    
    - New upstream release 1.003
      - Fixed detection of VOS; $^O reports 'vos', not 'VOS'
      - Additional release tests
    - BR: perl(File::Spec::Functions), perl(List::Util),
      perl(Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire),
      perl(Pod::Wordlist::hanekomu), perl(Test::MinimumVersion),
      perl(Test::Perl::Critic), perl(Test::Spelling) and perl(Test::Version)
    - Identify purpose of each build requirement
    - Update patches for building on old distributions
    - Don't run extra tests for EPEL-5/6 builds

 .gitignore                             |    2 +-
 Perl-OSType-1.002-old-EU::MM.patch     |   30 ----------------
 Perl-OSType-1.002-old-Test::More.patch |   18 ---------
 Perl-OSType-1.003-old-EU::MM.patch     |   30 ++++++++++++++++
 Perl-OSType-1.003-old-Test::More.patch |   35 ++++++++++++++++++
 perl-Perl-OSType.spec                  |   60 ++++++++++++++++++++++++-------
 sources                                |    2 +-
 7 files changed, 113 insertions(+), 64 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b924dd5..fea3f01 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/Perl-OSType-1.002.tar.gz
+/Perl-OSType-[0-9.]*.tar.gz
diff --git a/Perl-OSType-1.003-old-EU::MM.patch b/Perl-OSType-1.003-old-EU::MM.patch
new file mode 100644
index 0000000..a4fdb83
--- /dev/null
+++ b/Perl-OSType-1.003-old-EU::MM.patch
@@ -0,0 +1,30 @@
+--- Makefile.PL
++++ Makefile.PL
+@@ -4,7 +4,7 @@ use warnings;
+ 
+ use 5.006;
+ 
+-use ExtUtils::MakeMaker 6.30;
++use ExtUtils::MakeMaker;
+ 
+ 
+ 
+@@ -21,7 +21,7 @@ my %WriteMakefileArgs = (
+     "constant" => 0
+   },
+   "CONFIGURE_REQUIRES" => {
+-    "ExtUtils::MakeMaker" => "6.30"
++    "ExtUtils::MakeMaker" => "0"
+   },
+   "DISTNAME" => "Perl-OSType",
+   "EXE_FILES" => [],
+@@ -55,6 +55,9 @@ unless ( eval { ExtUtils::MakeMaker->VER
+ delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+   unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+ 
++delete $WriteMakefileArgs{LICENSE}
++  unless eval { ExtUtils::MakeMaker->VERSION(6.31) };
++
+ WriteMakefile(%WriteMakefileArgs);
+ 
+ 
diff --git a/Perl-OSType-1.003-old-Test::More.patch b/Perl-OSType-1.003-old-Test::More.patch
new file mode 100644
index 0000000..d173617
--- /dev/null
+++ b/Perl-OSType-1.003-old-Test::More.patch
@@ -0,0 +1,35 @@
+--- t/OSType.t
++++ t/OSType.t
+@@ -1,7 +1,7 @@
+ use strict;
+ use warnings;
+ 
+-use Test::More 0.88;
++use Test::More tests => 19;
+ 
+ use constant NON_EXISTENT_OS => 'titanix'; #the system they said could not go down...
+ 
+@@ -66,6 +66,3 @@ can_ok( $test_pkg, @functions );
+   ok( is_os_type( 'VOS' ),    "$fcn: true" );
+   ok( ! is_os_type(), "$fcn: false if no type provided" );
+ }
+-
+-done_testing;
+-
+--- 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;
+ 
+ # generated by Dist::Zilla::Plugin::Test::Version 0.002004
+ BEGIN { eval "use Test::Version; 1;" or die $@; }
+@@ -18,5 +18,4 @@ push @imports, $params
+ 
+ Test::Version->import(@imports);
+ 
+-version_all_ok;
+-done_testing;
++version_all_ok();
diff --git a/perl-Perl-OSType.spec b/perl-Perl-OSType.spec
index 63cc1f1..2768273 100644
--- a/perl-Perl-OSType.spec
+++ b/perl-Perl-OSType.spec
@@ -1,34 +1,54 @@
-# We don't really need ExtUtils::MakeMaker ≥ 6.31
-%global old_eumm %(perl -MExtUtils::MakeMaker -e 'print (($ExtUtils::MakeMaker::VERSION < 6.31) ? 1 : 0);' 2>/dev/null || echo 0)
+# We don't really need ExtUtils::MakeMaker ≥ 6.30
+%global old_eumm %(perl -MExtUtils::MakeMaker -e 'print (($ExtUtils::MakeMaker::VERSION < 6.30) ? 1 : 0);' 2>/dev/null || echo 0)
 
 # 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.002
-Release:	242%{?dist}
+Version:	1.003
+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
-Patch0:		Perl-OSType-1.002-old-EU::MM.patch
-Patch1:		Perl-OSType-1.002-old-Test::More.patch
+Patch0:		Perl-OSType-1.003-old-EU::MM.patch
+Patch1:		Perl-OSType-1.003-old-Test::More.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:	noarch
-BuildRequires:	perl(constant)
-BuildRequires:	perl(Exporter)
+# Build
 BuildRequires:	perl(ExtUtils::MakeMaker)
+# Module
+BuildRequires:	perl(Exporter)
+# Test Suite
+BuildRequires:	perl(constant)
+BuildRequires:	perl(File::Spec::Functions)
 BuildRequires:	perl(File::Temp)
+BuildRequires:	perl(List::Util)
 BuildRequires:	perl(Test::More)
 # Optional tests, not run for this dual-lived module when bootstrapping
-%if !%{defined perl_bootstrap}
+# Also not run for EPEL-5/6 builds due to package unavailability
+%if !%{defined perl_bootstrap} && ( 0%{?fedora} || 0%{?rhel} > 6 )
+BuildRequires:	perl(Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire)
 BuildRequires:	perl(Pod::Coverage::TrustPod)
+BuildRequires:	perl(Pod::Wordlist::hanekomu)
 BuildRequires:	perl(Test::CPAN::Meta)
+BuildRequires:	perl(Test::MinimumVersion)
+BuildRequires:	perl(Test::Perl::Critic)
 BuildRequires:	perl(Test::Pod)
 BuildRequires:	perl(Test::Pod::Coverage)
 BuildRequires:	perl(Test::Portability::Files)
+BuildRequires:	perl(Test::Spelling), %{speller}-en
+BuildRequires:	perl(Test::Version)
 %endif
+# Runtime
 Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
@@ -44,14 +64,14 @@ systems are given the type 'Windows' rather than 'Win32').
 %prep
 %setup -q -n Perl-OSType-%{version}
 
-# We don't really need ExtUtils::MakeMaker ≥ 6.31
+# We don't really need ExtUtils::MakeMaker ≥ 6.30
 %if %{old_eumm}
-%patch0 -p1
+%patch0
 %endif
 
 # Fix test suite for Test::More < 0.88
 %if %{old_test_more}
-%patch1 -p1
+%patch1
 %endif
 
 %build
@@ -66,7 +86,7 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
 
 %check
 make test
-%if !%{defined perl_bootstrap}
+%if !%{defined perl_bootstrap} && ( 0%{?fedora} || 0%{?rhel} > 6 )
 make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
 %endif
 
@@ -74,11 +94,23 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
 rm -rf %{buildroot}
 
 %files
-%doc Changes LICENSE README
+%doc Changes CONTRIBUTING LICENSE README
 %{perl_vendorlib}/Perl/
 %{_mandir}/man3/Perl::OSType.3pm*
 
 %changelog
+* Thu Mar 21 2013 Paul Howarth <paul@xxxxxxxxxxxx> - 1.003-1
+- Update to 1.003
+  - Fixed detection of VOS; $^O reports 'vos', not 'VOS'
+  - Additional release tests
+- BR: perl(File::Spec::Functions), perl(List::Util),
+  perl(Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire),
+  perl(Pod::Wordlist::hanekomu), perl(Test::MinimumVersion),
+  perl(Test::Perl::Critic), perl(Test::Spelling) and perl(Test::Version)
+- Identify purpose of each build requirement
+- Update patches for building on old distributions
+- Don't run extra tests for EPEL-5/6 builds
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.002-242
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 
diff --git a/sources b/sources
index c15e687..482d645 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-73be06de32cd51cf5e6de37b5725e0ac  Perl-OSType-1.002.tar.gz
+1d559772093dd50d88c932417c0cb657  Perl-OSType-1.003.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