@ -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