ae65b1
%if ! (0%{?rhel})
ae65b1
# Run extra test
ae65b1
%bcond_without perl_Data_Section_enables_extra_test
ae65b1
# Run optional test
ae65b1
%bcond_without perl_Data_Section_enables_optional_test
ae65b1
%else
ae65b1
%bcond_with perl_Data_Section_enables_extra_test
ae65b1
%bcond_with perl_Data_Section_enables_optional_test
ae65b1
%endif
ae65b1
ae65b1
Name:           perl-Data-Section
ae65b1
Version:        0.200007
ae65b1
Release:        8%{?dist}
ae65b1
Summary:        Read multiple hunks of data out of your DATA section
ae65b1
License:        GPL+ or Artistic
ae65b1
URL:            https://metacpan.org/release/Data-Section
ae65b1
Source0:        https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Data-Section-%{version}.tar.gz
ae65b1
BuildArch:      noarch
ae65b1
# Build
ae65b1
BuildRequires:  coreutils
ae65b1
BuildRequires:  findutils
ae65b1
BuildRequires:  make
ae65b1
BuildRequires:  perl-interpreter
ae65b1
BuildRequires:  perl-generators
ae65b1
BuildRequires:  perl(ExtUtils::MakeMaker)
ae65b1
# Runtime
ae65b1
BuildRequires:  perl(Encode)
ae65b1
BuildRequires:  perl(MRO::Compat) >= 0.09
ae65b1
BuildRequires:  perl(strict)
ae65b1
BuildRequires:  perl(Sub::Exporter) >= 0.979
ae65b1
BuildRequires:  perl(warnings)
ae65b1
# Test Suite
ae65b1
BuildRequires:  perl(base)
ae65b1
BuildRequires:  perl(lib)
ae65b1
BuildRequires:  perl(Test::FailWarnings)
ae65b1
BuildRequires:  perl(Test::More) >= 0.96
ae65b1
BuildRequires:  perl(utf8)
ae65b1
%if %{with perl_Data_Section_enables_optional_test}
ae65b1
# Optional Tests
ae65b1
BuildRequires:  perl(CPAN::Meta) >= 2.120900
ae65b1
%endif
ae65b1
%if %{with perl_Data_Section_enables_extra_test}
ae65b1
# Extra Tests
ae65b1
BuildRequires:  perl(Test::Pod) >= 1.41
ae65b1
%endif
ae65b1
# Dependencies
ae65b1
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
ae65b1
ae65b1
%description
ae65b1
Data::Section provides an easy way to access multiple named chunks of
ae65b1
line-oriented data in your module's DATA section. It was written to allow
ae65b1
modules to store their own templates, but probably has other uses.
ae65b1
ae65b1
%prep
ae65b1
%setup -q -n Data-Section-%{version}
ae65b1
ae65b1
%build
ae65b1
perl Makefile.PL INSTALLDIRS=vendor
ae65b1
make %{?_smp_mflags}
ae65b1
ae65b1
%install
ae65b1
make pure_install DESTDIR=$RPM_BUILD_ROOT
ae65b1
find $RPM_BUILD_ROOT -type f -name .packlist -delete
ae65b1
%{_fixperms} -c $RPM_BUILD_ROOT
ae65b1
ae65b1
%check
ae65b1
make test
ae65b1
%if %{with perl_Data_Section_enables_extra_test}
ae65b1
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
ae65b1
%endif
ae65b1
ae65b1
%files
ae65b1
%license LICENSE
ae65b1
%doc Changes README
ae65b1
%{perl_vendorlib}/Data/
ae65b1
%{_mandir}/man3/Data::Section.3*
ae65b1
ae65b1
%changelog
ae65b1
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.200007-8
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ae65b1
ae65b1
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.200007-7
ae65b1
- Perl 5.30 rebuild
ae65b1
ae65b1
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.200007-6
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ae65b1
ae65b1
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.200007-5
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ae65b1
ae65b1
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.200007-4
ae65b1
- Perl 5.28 rebuild
ae65b1
ae65b1
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.200007-3
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ae65b1
ae65b1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.200007-2
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ae65b1
ae65b1
* Fri Jul  7 2017 Paul Howarth <paul@city-fan.org> - 0.200007-1
ae65b1
- Update to 0.200007
ae65b1
  - Rename the test library "Parent.pm" to "Mother.pm" to avoid conflict with
ae65b1
    core "parent.pm" on case-insensitive systems
ae65b1
- Drop legacy Group: tag
ae65b1
- Simplify find command using -delete
ae65b1
- Classify buildreqs by usage
ae65b1
ae65b1
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.200006-9
ae65b1
- Perl 5.26 rebuild
ae65b1
ae65b1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.200006-8
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ae65b1
ae65b1
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.200006-7
ae65b1
- Perl 5.24 rebuild
ae65b1
ae65b1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.200006-6
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ae65b1
ae65b1
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.200006-5
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ae65b1
ae65b1
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.200006-4
ae65b1
- Perl 5.22 rebuild
ae65b1
ae65b1
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.200006-3
ae65b1
- Perl 5.20 rebuild
ae65b1
ae65b1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.200006-2
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ae65b1
ae65b1
* Mon Mar 10 2014 Paul Howarth <paul@city-fan.org> - 0.200006-1
ae65b1
- Update to 0.200006
ae65b1
  - Skip tests on Win32 pre-5.14 related to line endings; perl munges the data
ae65b1
    before we're able to get at it
ae65b1
ae65b1
* Wed Dec 11 2013 Paul Howarth <paul@city-fan.org> - 0.200005-1
ae65b1
- Update to 0.200005
ae65b1
  - Open DATA handles both :raw and :bytes to avoid content munging on Win32
ae65b1
  - This is not yet a perfect solution for Win32
ae65b1
ae65b1
* Mon Dec  2 2013 Paul Howarth <paul@city-fan.org> - 0.200004-1
ae65b1
- Update to 0.200004
ae65b1
  - Avoid confusion between \n, \x0d\x0a, and Win32
ae65b1
ae65b1
* Mon Nov  4 2013 Paul Howarth <paul@city-fan.org> - 0.200003-1
ae65b1
- Update to 0.200003
ae65b1
  [THIS MIGHT BREAK STUFF]
ae65b1
  - Add an "encoding" parameter to set encoding of data section contents; this
ae65b1
    defaults to UTF-8
ae65b1
- Drop support for old distributions as we now need Test::FailWarnings, which
ae65b1
  isn't available there
ae65b1
ae65b1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.101622-3
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ae65b1
ae65b1
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.101622-2
ae65b1
- Perl 5.18 rebuild
ae65b1
ae65b1
* Thu Jun 20 2013 Paul Howarth <paul@city-fan.org> - 0.101622-1
ae65b1
- Update to 0.101622
ae65b1
  - Add a link to an Advent article about Data-Section
ae65b1
  - Update bugtracker, repo, etc.
ae65b1
- Run the release tests separately
ae65b1
- BR: perl(base), perl(File::Find), perl(File::Temp) and perl(lib) for the test
ae65b1
  suite
ae65b1
- Drop BR: perl(Pod::Coverage::TrustPod) and perl(Test::Pod::Coverage) as
ae65b1
  upstream has dropped their Pod coverage test
ae65b1
- Update patch for building with old Test::More versions
ae65b1
ae65b1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.101621-5
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ae65b1
ae65b1
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.101621-4
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ae65b1
ae65b1
* Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 0.101621-3
ae65b1
- Perl 5.16 rebuild
ae65b1
ae65b1
* Wed Mar  7 2012 Paul Howarth <paul@city-fan.org> - 0.101621-2
ae65b1
- Add test suite patch to support building with Test::More < 0.88 so that we
ae65b1
  can build for EPEL-5, only applying the patch when necessary
ae65b1
- BR: at least version 0.09 of perl(MRO::Compat)
ae65b1
- BR: perl(Pod::Coverage::TrustPod), perl(Test::Pod) and
ae65b1
  perl(Test::Pod::Coverage) for full test coverage
ae65b1
- Run the release tests too
ae65b1
- Drop redundant explicit versioned dependency on perl(Sub::Exporter)
ae65b1
- Don't need to remove empty directories from buildroot
ae65b1
- Don't use macros for commands
ae65b1
- Use DESTDIR rather than PERL_INSTALL_ROOT
ae65b1
- Drop %%defattr, redundant since rpm 4.4
ae65b1
- Make %%files list more explicit
ae65b1
ae65b1
* Mon Jan 30 2012 Daniel P. Berrange <berrange@redhat.com> - 0.101621-1
ae65b1
- Update to 0.101621 release (rhbz #785362)
ae65b1
ae65b1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.101620-6
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ae65b1
ae65b1
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.101620-5
ae65b1
- Perl mass rebuild
ae65b1
ae65b1
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.101620-4
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ae65b1
ae65b1
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.101620-3
ae65b1
- 661697 rebuild for fixing problems with vendorach/lib
ae65b1
ae65b1
* Wed Jun 30 2010 Mark Chappell <tremble@fedoraproject.org> - 0.101620-2
ae65b1
- Add in missing BuildRequires MRO::Compat
ae65b1
ae65b1
* Wed Jun 30 2010 Mark Chappell <tremble@fedoraproject.org> - 0.101620-1
ae65b1
- Update for release 0.101620
ae65b1
ae65b1
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.093410-3
ae65b1
- Mass rebuild with perl-5.12.0
ae65b1
ae65b1
* Tue Jan 12 2010 Daniel P. Berrange <berrange@redhat.com> - 0.093410-2
ae65b1
- Fix source URL
ae65b1
ae65b1
* Thu Jan  7 2010 Daniel P. Berrange <berrange@redhat.com> - 0.093410-1
ae65b1
- Update to 0.093410 release
ae65b1
ae65b1
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.091820-3
ae65b1
- rebuild against perl 5.10.1
ae65b1
ae65b1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.091820-2
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ae65b1
ae65b1
* Wed Jul 22 2009 Daniel P. Berrange <berrange@redhat.com> - 0.091820-1
ae65b1
- Update to 0.091820 release
ae65b1
ae65b1
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.005-3
ae65b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ae65b1
ae65b1
* Sat Sep 06 2008 Daniel P. Berrange <berrange@redhat.com> 0.005-2
ae65b1
- Add Test::More BR
ae65b1
ae65b1
* Fri Sep 05 2008 Daniel P. Berrange <berrange@redhat.com> 0.005-1
ae65b1
- Specfile autogenerated by cpanspec 1.77.