Update to 1.005
- New upstream release 1.005 - Ensured no non-core test dependencies - Various non-functional changes to files and metadata included with the distribution - Add patch with additional stopwords for the spell checker - Reinstate EPEL support as we no longer require Capture::Tiny
This commit is contained in:
parent
da5e5cb153
commit
48e91b9c20
34
Perl-OSType-1.005-old-Test::More.patch
Normal file
34
Perl-OSType-1.005-old-Test::More.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
--- 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...
|
||||||
|
|
||||||
|
@@ -65,5 +65,3 @@ can_ok( $test_pkg, @functions );
|
||||||
|
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();
|
11
Perl-OSType-1.005-stopwords.patch
Normal file
11
Perl-OSType-1.005-stopwords.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- lib/Perl/OSType.pm
|
||||||
|
+++ lib/Perl/OSType.pm
|
||||||
|
@@ -103,6 +103,8 @@
|
||||||
|
|
||||||
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
|
+=for :stopwords Unix Win32 Windows
|
||||||
|
+
|
||||||
|
Modules that provide OS-specific behaviors often need to know if
|
||||||
|
the current operating system matches a more generic type of
|
||||||
|
operating systems. For example, 'linux' is a type of 'Unix' operating system
|
@ -1,11 +1,17 @@
|
|||||||
|
# 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-Perl-OSType
|
Name: perl-Perl-OSType
|
||||||
Version: 1.004
|
Version: 1.005
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Map Perl operating system names to generic types
|
Summary: Map Perl operating system names to generic types
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://search.cpan.org/dist/Perl-OSType/
|
URL: http://search.cpan.org/dist/Perl-OSType/
|
||||||
Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Perl-OSType-%{version}.tar.gz
|
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.005-stopwords.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Build
|
# Build
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
@ -15,10 +21,11 @@ BuildRequires: perl(strict)
|
|||||||
BuildRequires: perl(warnings)
|
BuildRequires: perl(warnings)
|
||||||
# Test Suite
|
# Test Suite
|
||||||
BuildRequires: perl(blib)
|
BuildRequires: perl(blib)
|
||||||
BuildRequires: perl(Capture::Tiny)
|
|
||||||
BuildRequires: perl(constant)
|
BuildRequires: perl(constant)
|
||||||
BuildRequires: perl(File::Spec::Functions)
|
BuildRequires: perl(File::Spec::Functions)
|
||||||
BuildRequires: perl(File::Temp)
|
BuildRequires: perl(File::Temp)
|
||||||
|
BuildRequires: perl(IO::Handle)
|
||||||
|
BuildRequires: perl(IPC::Open3)
|
||||||
BuildRequires: perl(List::Util)
|
BuildRequires: perl(List::Util)
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
# Optional tests, not run for this dual-lived module when bootstrapping
|
# Optional tests, not run for this dual-lived module when bootstrapping
|
||||||
@ -52,11 +59,20 @@ systems are given the type 'Windows' rather than 'Win32').
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n Perl-OSType-%{version}
|
%setup -q -n Perl-OSType-%{version}
|
||||||
|
|
||||||
|
# Fix test suite for Test::More < 0.88
|
||||||
|
%if %{old_test_more}
|
||||||
|
%patch1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# More stopwords for the spell checker
|
||||||
|
%patch2
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
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 -exec rm -f {} \;
|
||||||
%{_fixperms} %{buildroot}
|
%{_fixperms} %{buildroot}
|
||||||
@ -64,15 +80,26 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
%if !%{defined perl_bootstrap} && 0%{?fedora}
|
%if !%{defined perl_bootstrap} && 0%{?fedora}
|
||||||
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
LANG=en_US make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Changes CONTRIBUTING LICENSE README
|
%doc Changes CONTRIBUTING LICENSE README
|
||||||
%{perl_vendorlib}/Perl/
|
%{perl_vendorlib}/Perl/
|
||||||
%{_mandir}/man3/Perl::OSType.3pm*
|
%{_mandir}/man3/Perl::OSType.3pm*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 11 2013 Paul Howarth <paul@city-fan.org> - 1.005-1
|
||||||
|
- Update to 1.005
|
||||||
|
- Ensured no non-core test dependencies
|
||||||
|
- Various non-functional changes to files and metadata included with
|
||||||
|
the distribution
|
||||||
|
- Add patch with additional stopwords for the spell checker
|
||||||
|
- Reinstate EPEL support as we no longer require Capture::Tiny
|
||||||
|
|
||||||
* Thu Aug 22 2013 Paul Howarth <paul@city-fan.org> - 1.004-1
|
* Thu Aug 22 2013 Paul Howarth <paul@city-fan.org> - 1.004-1
|
||||||
- Update to 1.004
|
- Update to 1.004
|
||||||
- 'bitrig' is a Unix
|
- 'bitrig' is a Unix
|
||||||
|
Loading…
Reference in New Issue
Block a user