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