Update to 0.200003
- New upstream release 0.200003 [THIS MIGHT BREAK STUFF] - Add an "encoding" parameter to set encoding of data section contents; this defaults to UTF-8 - Drop support for old distributions as we now need Test::FailWarnings, which isn't available there
This commit is contained in:
parent
445fb3a808
commit
30d67d7a62
@ -1,22 +0,0 @@
|
|||||||
--- t/00-compile.t
|
|
||||||
+++ t/00-compile.t
|
|
||||||
@@ -34,7 +34,7 @@ sub _find_scripts {
|
|
||||||
my $found = $File::Find::name;
|
|
||||||
# nothing to skip
|
|
||||||
open my $FH, '<', $_ or do {
|
|
||||||
- note( "Unable to open $found in ( $! ), skipping" );
|
|
||||||
+ diag( "Unable to open $found in ( $! ), skipping" );
|
|
||||||
return;
|
|
||||||
};
|
|
||||||
my $shebang = <$FH>;
|
|
||||||
--- xt/release/changes_has_content.t
|
|
||||||
+++ xt/release/changes_has_content.t
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
|
|
||||||
use Test::More tests => 2;
|
|
||||||
|
|
||||||
-note 'Checking Changes';
|
|
||||||
+diag 'Checking Changes';
|
|
||||||
my $changes_file = 'Changes';
|
|
||||||
my $newver = '0.101622';
|
|
||||||
my $trial_token = '-TRIAL';
|
|
@ -1,61 +0,0 @@
|
|||||||
--- t/000-report-versions-tiny.t
|
|
||||||
+++ t/000-report-versions-tiny.t
|
|
||||||
@@ -1,12 +1,6 @@
|
|
||||||
use strict;
|
|
||||||
use warnings;
|
|
||||||
-use Test::More 0.88;
|
|
||||||
-# This is a relatively nice way to avoid Test::NoWarnings breaking our
|
|
||||||
-# expectations by adding extra tests, without using no_plan. It also helps
|
|
||||||
-# avoid any other test module that feels introducing random tests, or even
|
|
||||||
-# test plans, is a nice idea.
|
|
||||||
-our $success = 0;
|
|
||||||
-END { $success && done_testing; }
|
|
||||||
+use Test::More 0.47 tests => 1;
|
|
||||||
|
|
||||||
# List our own version used to generate this
|
|
||||||
my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.08\n";
|
|
||||||
@@ -53,7 +47,7 @@ eval { $v .= pmver('File::Find','any ver
|
|
||||||
eval { $v .= pmver('File::Temp','any version') };
|
|
||||||
eval { $v .= pmver('MRO::Compat','0.09') };
|
|
||||||
eval { $v .= pmver('Sub::Exporter','0.979') };
|
|
||||||
-eval { $v .= pmver('Test::More','0.96') };
|
|
||||||
+eval { $v .= pmver('Test::More','0.47') };
|
|
||||||
eval { $v .= pmver('Test::Pod','1.41') };
|
|
||||||
eval { $v .= pmver('base','any version') };
|
|
||||||
eval { $v .= pmver('lib','any version') };
|
|
||||||
@@ -73,7 +67,6 @@ EOT
|
|
||||||
|
|
||||||
diag($v);
|
|
||||||
ok(1, "we really didn't test anything, just reporting data");
|
|
||||||
-$success = 1;
|
|
||||||
|
|
||||||
# Work around another nasty module on CPAN. :/
|
|
||||||
no warnings 'once';
|
|
||||||
--- t/basic.t
|
|
||||||
+++ t/basic.t
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
use strict;
|
|
||||||
use warnings;
|
|
||||||
use lib 't/lib';
|
|
||||||
-use Test::More;
|
|
||||||
+use Test::More tests => 36;
|
|
||||||
|
|
||||||
use Parent;
|
|
||||||
use Child;
|
|
||||||
@@ -168,5 +168,3 @@ is_deeply(
|
|
||||||
{ n => \"foo$crlf" },
|
|
||||||
"windows newlines work",
|
|
||||||
);
|
|
||||||
-
|
|
||||||
-done_testing;
|
|
||||||
--- xt/release/changes_has_content.t
|
|
||||||
+++ xt/release/changes_has_content.t
|
|
||||||
@@ -14,8 +14,6 @@ SKIP: {
|
|
||||||
ok(_get_changes($newver), "$changes_file has content for $newver");
|
|
||||||
}
|
|
||||||
|
|
||||||
-done_testing;
|
|
||||||
-
|
|
||||||
# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit
|
|
||||||
# by Jerome Quelin
|
|
||||||
sub _get_changes
|
|
@ -1,28 +1,22 @@
|
|||||||
# We need to patch the test suite if we have an old version of Test::More
|
|
||||||
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
|
||||||
%global older_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.82) ? 1 : 0);' 2>/dev/null || echo 0)
|
|
||||||
|
|
||||||
Name: perl-Data-Section
|
Name: perl-Data-Section
|
||||||
Version: 0.101622
|
Version: 0.200003
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Read multiple hunks of data out of your DATA section
|
Summary: Read multiple hunks of data out of your DATA section
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://search.cpan.org/dist/Data-Section/
|
URL: http://search.cpan.org/dist/Data-Section/
|
||||||
Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Data-Section-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Data-Section-%{version}.tar.gz
|
||||||
Patch1: Data-Section-0.101622-old-Test::More.patch
|
|
||||||
Patch2: Data-Section-0.101622-note.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(base)
|
BuildRequires: perl(base)
|
||||||
|
BuildRequires: perl(Encode)
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
||||||
BuildRequires: perl(File::Find)
|
|
||||||
BuildRequires: perl(File::Temp)
|
|
||||||
BuildRequires: perl(lib)
|
BuildRequires: perl(lib)
|
||||||
BuildRequires: perl(MRO::Compat) >= 0.09
|
BuildRequires: perl(MRO::Compat) >= 0.09
|
||||||
BuildRequires: perl(Sub::Exporter) >= 0.979
|
BuildRequires: perl(Sub::Exporter) >= 0.979
|
||||||
BuildRequires: perl(Test::More) >= 0.47
|
BuildRequires: perl(Test::FailWarnings)
|
||||||
|
BuildRequires: perl(Test::More) >= 0.96
|
||||||
BuildRequires: perl(Test::Pod)
|
BuildRequires: perl(Test::Pod)
|
||||||
|
BuildRequires: perl(utf8)
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -33,20 +27,11 @@ modules to store their own templates, but probably has other uses.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n Data-Section-%{version}
|
%setup -q -n Data-Section-%{version}
|
||||||
|
|
||||||
# Hack for old Test::More versions
|
|
||||||
%if %{old_test_more}
|
|
||||||
%patch1
|
|
||||||
%endif
|
|
||||||
%if %{older_test_more}
|
|
||||||
%patch2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||||
%{_fixperms} $RPM_BUILD_ROOT
|
%{_fixperms} $RPM_BUILD_ROOT
|
||||||
@ -55,15 +40,20 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|||||||
make test
|
make test
|
||||||
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Changes LICENSE README
|
%doc Changes LICENSE README
|
||||||
%{perl_vendorlib}/Data/
|
%{perl_vendorlib}/Data/
|
||||||
%{_mandir}/man3/Data::Section.3pm*
|
%{_mandir}/man3/Data::Section.3pm*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 4 2013 Paul Howarth <paul@city-fan.org> - 0.200003-1
|
||||||
|
- Update to 0.200003
|
||||||
|
[THIS MIGHT BREAK STUFF]
|
||||||
|
- Add an "encoding" parameter to set encoding of data section contents; this
|
||||||
|
defaults to UTF-8
|
||||||
|
- Drop support for old distributions as we now need Test::FailWarnings, which
|
||||||
|
isn't available there
|
||||||
|
|
||||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.101622-3
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.101622-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user