Update to 0.06

- New upstream release 0.06
  - Fix race condition in a forked environment
    (https://github.com/miyagawa/Data-Section-Simple/pull/4)
- Update patch for building with Test::More < 0.88
- Don't run the release tests for EPEL-5 or EPEL-6 builds
epel9
Paul Howarth 11 years ago
parent 48cb03ab8b
commit 60eb23fd03

@ -1,6 +1,5 @@
diff -up Data-Section-Simple-0.04/t/basic.t.orig Data-Section-Simple-0.04/t/basic.t
--- Data-Section-Simple-0.04/t/basic.t.orig 2013-03-29 00:50:51.000000000 +0000
+++ Data-Section-Simple-0.04/t/basic.t 2013-04-01 14:13:21.566927338 +0100
--- t/basic.t
+++ t/basic.t
@@ -1,6 +1,6 @@
use strict;
use Data::Section::Simple qw(get_data_section);
@ -18,9 +17,8 @@ diff -up Data-Section-Simple-0.04/t/basic.t.orig Data-Section-Simple-0.04/t/basi
__DATA__
@@ foo.html
diff -up Data-Section-Simple-0.04/t/data.t.orig Data-Section-Simple-0.04/t/data.t
--- Data-Section-Simple-0.04/t/data.t.orig 2013-03-29 00:50:51.000000000 +0000
+++ Data-Section-Simple-0.04/t/data.t 2013-04-01 14:13:21.566927338 +0100
--- t/data.t
+++ t/data.t
@@ -1,6 +1,6 @@
use lib "t";
use DataInCode;
@ -37,9 +35,27 @@ diff -up Data-Section-Simple-0.04/t/data.t.orig Data-Section-Simple-0.04/t/data.
-
-
-
diff -up Data-Section-Simple-0.04/t/no-datat.t.orig Data-Section-Simple-0.04/t/no-datat.t
--- Data-Section-Simple-0.04/t/no-datat.t.orig 2013-03-29 00:50:51.000000000 +0000
+++ Data-Section-Simple-0.04/t/no-datat.t 2013-04-01 14:14:04.310838315 +0100
--- t/multi-processes.t
+++ t/multi-processes.t
@@ -1,6 +1,6 @@
use strict;
use Data::Section::Simple qw(get_data_section);
-use Test::More;
+use Test::More tests => 1;
my $expect =<<HTML;
<html>
@@ -22,8 +22,6 @@ while (waitpid(-1,0) > 0) {
ok(!$failed);
-done_testing;
-
__DATA__
@@ foo.html
--- t/no-datat.t
+++ t/no-datat.t
@@ -1,7 +1,5 @@
use strict;
use Data::Section::Simple qw(get_data_section);
@ -49,9 +65,8 @@ diff -up Data-Section-Simple-0.04/t/no-datat.t.orig Data-Section-Simple-0.04/t/n
is get_data_section('foo.html'), undef, 'Do not die.';
-
-done_testing;
diff -up Data-Section-Simple-0.04/t/pkg_oo.t.orig Data-Section-Simple-0.04/t/pkg_oo.t
--- Data-Section-Simple-0.04/t/pkg_oo.t.orig 2013-03-29 00:50:51.000000000 +0000
+++ Data-Section-Simple-0.04/t/pkg_oo.t 2013-04-01 14:13:21.566927338 +0100
--- t/pkg_oo.t
+++ t/pkg_oo.t
@@ -4,7 +4,7 @@ use Data::Section::Simple;
use lib "t";
use Foo;

@ -2,25 +2,30 @@
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
Name: perl-Data-Section-Simple
Version: 0.05
Release: 3%{?dist}
Version: 0.06
Release: 1%{?dist}
Summary: Read data from __DATA__
License: GPL+ or Artistic
Group: Development/Libraries
URL: https://github.com/miyagawa/Data-Section-Simple
Source0: http://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Data-Section-Simple-%{version}.tar.gz
Patch1: Data-Section-Simple-0.04-old-Test::More.patch
Patch1: Data-Section-Simple-0.06-old-Test::More.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
# Build
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(warnings)
# Module
BuildRequires: perl(base)
BuildRequires: perl(Exporter)
BuildRequires: perl(strict)
# Test Suite
BuildRequires: perl(lib)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
%if 0%{?fedora} || 0%{?rhel} > 6
BuildRequires: perl(Test::Pod) >= 1.41
%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -33,7 +38,7 @@ section of the file.
# Hack for old Test::More versions
%if %{old_test_more}
%patch1 -p1
%patch1
%endif
%build
@ -47,7 +52,11 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}
%check
%if 0%{?fedora} || 0%{?rhel} > 6
make test RELEASE_TESTING=1
%else
make test
%endif
%clean
rm -rf %{buildroot}
@ -58,6 +67,13 @@ rm -rf %{buildroot}
%{_mandir}/man3/Data::Section::Simple.3pm*
%changelog
* Sat Apr 12 2014 Paul Howarth <paul@city-fan.org> - 0.06-1
- Update to 0.06
- Fix race condition in a forked environment
(https://github.com/miyagawa/Data-Section-Simple/pull/4)
- Update patch for building with Test::More < 0.88
- Don't run the release tests for EPEL-5 or EPEL-6 builds
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

@ -1 +1 @@
082979ccfb4017bc952902d129887ce9 Data-Section-Simple-0.05.tar.gz
e2cc4cecefb51a15250eda14563599d4 Data-Section-Simple-0.06.tar.gz

Loading…
Cancel
Save