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