1bdf5b
# Run optional tests
1bdf5b
%bcond_without perl_CPAN_Meta_Requirements_enables_optional_test
1bdf5b
1bdf5b
Name:           perl-CPAN-Meta-Requirements
1bdf5b
Version:        2.140
1bdf5b
Release:        461%{?dist}
1bdf5b
Summary:        Set of version requirements for a CPAN dist
1bdf5b
License:        GPL+ or Artistic
1bdf5b
URL:            https://metacpan.org/release/CPAN-Meta-Requirements
1bdf5b
Source0:        https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-%{version}.tar.gz
1bdf5b
BuildArch:      noarch
1bdf5b
# Build
1bdf5b
BuildRequires:  coreutils
1bdf5b
BuildRequires:  findutils
1bdf5b
BuildRequires:  make
1bdf5b
BuildRequires:  perl-interpreter
1bdf5b
BuildRequires:  perl-generators
1bdf5b
BuildRequires:  perl(ExtUtils::MakeMaker)
1bdf5b
# Module
1bdf5b
BuildRequires:  perl(B)
1bdf5b
BuildRequires:  perl(Carp)
1bdf5b
BuildRequires:  perl(strict)
1bdf5b
BuildRequires:  perl(version) >= 0.88
1bdf5b
BuildRequires:  perl(warnings)
1bdf5b
# Test
1bdf5b
BuildRequires:  perl(File::Spec)
1bdf5b
BuildRequires:  perl(Test::More)
1bdf5b
# Extra Tests (not run when bootstrapping due to circular build dependencies)
1bdf5b
%if !%{defined perl_bootstrap} && ! ( 0%{?rhel} ) && %{with perl_CPAN_Meta_Requirements_enables_optional_test}
1bdf5b
BuildRequires:  perl(blib)
1bdf5b
BuildRequires:  perl(CPAN::Meta) >= 2.120900
1bdf5b
BuildRequires:  perl(English)
1bdf5b
BuildRequires:  perl(File::Temp)
1bdf5b
BuildRequires:  perl(IO::Handle)
1bdf5b
BuildRequires:  perl(IPC::Open3)
1bdf5b
BuildRequires:  perl(Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire)
1bdf5b
BuildRequires:  perl(Perl::Critic::Policy::Miscellanea::RequireRcsKeywords)
1bdf5b
BuildRequires:  perl(Pod::Coverage::TrustPod)
1bdf5b
BuildRequires:  perl(Pod::Wordlist)
1bdf5b
BuildRequires:  perl(Test::CPAN::Meta)
1bdf5b
BuildRequires:  perl(Test::MinimumVersion)
1bdf5b
BuildRequires:  perl(Test::Perl::Critic)
1bdf5b
BuildRequires:  perl(Test::Pod) >= 1.41
1bdf5b
BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
1bdf5b
BuildRequires:  perl(Test::Portability::Files)
1bdf5b
BuildRequires:  perl(Test::Spelling) >= 0.12, hunspell-en
1bdf5b
BuildRequires:  perl(Test::Version) >= 1
1bdf5b
%endif
1bdf5b
# Runtime
1bdf5b
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
1bdf5b
Requires:       perl(B)
1bdf5b
Requires:       perl(version) >= 0.88
1bdf5b
1bdf5b
# CPAN-Meta-Requirements was split from CPAN-Meta
1bdf5b
Conflicts:      perl-CPAN-Meta < 2.120921
1bdf5b
1bdf5b
# Had a six-digit version in a previous life
1bdf5b
%global six_digit_version %(LC_ALL=C; printf '%.6f' '%{version}')
1bdf5b
1bdf5b
# Provide the six-digit version of the module
1bdf5b
%if "%{version}" != "%{six_digit_version}"
1bdf5b
Provides:       perl(CPAN::Meta::Requirements) = %{six_digit_version}
1bdf5b
%global __provides_exclude ^perl\\(CPAN::Meta::Requirements\\)
1bdf5b
%endif
1bdf5b
1bdf5b
%description
1bdf5b
A CPAN::Meta::Requirements object models a set of version constraints like
1bdf5b
those specified in the META.yml or META.json files in CPAN distributions. It
1bdf5b
can be built up by adding more and more constraints, and it will reduce them
1bdf5b
to the simplest representation.
1bdf5b
1bdf5b
Logically impossible constraints will be identified immediately by thrown
1bdf5b
exceptions.
1bdf5b
1bdf5b
%prep
1bdf5b
%setup -q -n CPAN-Meta-Requirements-%{version}
1bdf5b
1bdf5b
%build
1bdf5b
perl Makefile.PL INSTALLDIRS=vendor UNINST=0
1bdf5b
make %{?_smp_mflags}
1bdf5b
1bdf5b
%install
1bdf5b
make pure_install DESTDIR=%{buildroot}
1bdf5b
find %{buildroot} -type f -name .packlist -delete
1bdf5b
%{_fixperms} -c %{buildroot}
1bdf5b
1bdf5b
%check
1bdf5b
make test AUTHOR_TESTING=1
1bdf5b
%if !%{defined perl_bootstrap} && ! ( 0%{?rhel} ) && %{with perl_CPAN_Meta_Requirements_enables_optional_test}
1bdf5b
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
1bdf5b
%endif
1bdf5b
1bdf5b
%files
1bdf5b
%license LICENSE
1bdf5b
%doc Changes CONTRIBUTING.mkdn perlcritic.rc README
1bdf5b
%{perl_vendorlib}/CPAN/
1bdf5b
%{_mandir}/man3/CPAN::Meta::Requirements.3*
1bdf5b
1bdf5b
%changelog
1bdf5b
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.140-461
1bdf5b
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
1bdf5b
  Related: rhbz#1991688
1bdf5b
1bdf5b
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.140-460
1bdf5b
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
1bdf5b
1bdf5b
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.140-459
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1bdf5b
1bdf5b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.140-458
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1bdf5b
1bdf5b
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-457
1bdf5b
- Perl 5.32 re-rebuild of bootstrapped packages
1bdf5b
1bdf5b
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-456
1bdf5b
- Increase release to favour standalone package
1bdf5b
1bdf5b
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.140-441
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1bdf5b
1bdf5b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.140-440
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1bdf5b
1bdf5b
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-439
1bdf5b
- Perl 5.30 re-rebuild of bootstrapped packages
1bdf5b
1bdf5b
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-438
1bdf5b
- Increase release to favour standalone package
1bdf5b
1bdf5b
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.140-419
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1bdf5b
1bdf5b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.140-418
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1bdf5b
1bdf5b
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-417
1bdf5b
- Perl 5.28 re-rebuild of bootstrapped packages
1bdf5b
1bdf5b
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-416
1bdf5b
- Increase release to favour standalone package
1bdf5b
1bdf5b
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.140-396
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1bdf5b
1bdf5b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.140-395
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1bdf5b
1bdf5b
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-394
1bdf5b
- Perl 5.26 re-rebuild of bootstrapped packages
1bdf5b
1bdf5b
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-393
1bdf5b
- Perl 5.26 rebuild
1bdf5b
1bdf5b
* Thu Apr  6 2017 Paul Howarth <paul@city-fan.org> - 2.140-7
1bdf5b
- Introduce build-condition for optional tests
1bdf5b
- Simplify find command using -delete
1bdf5b
- Switch to hunspell for spell check
1bdf5b
1bdf5b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.140-6
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1bdf5b
1bdf5b
* Fri Jul 22 2016 Petr Pisar <ppisar@redhat.com> - 2.140-5
1bdf5b
- Do not use perl to compute Provides version
1bdf5b
1bdf5b
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-4
1bdf5b
- Perl 5.24 re-rebuild of bootstrapped packages
1bdf5b
1bdf5b
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-3
1bdf5b
- Perl 5.24 rebuild
1bdf5b
1bdf5b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.140-2
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1bdf5b
1bdf5b
* Mon Dec 14 2015 Paul Howarth <paul@city-fan.org> - 2.140-1
1bdf5b
- Update to 2.140
1bdf5b
  - Added method for getting structured requirements
1bdf5b
  - Skips impossible tests on Perls earlier than 5.8.0 (before v-string magic)
1bdf5b
  - On Perls before 5.8.1, pad 1-part and 2-part literal v-strings to avoid old
1bdf5b
    version.pm bugs with v-strings less than 3 characters
1bdf5b
  - Protect internal _isa_version from non-refs that pass ->isa('version')
1bdf5b
  - Much better error messages, explaining what conflicted and how
1bdf5b
  - Repackage with fixed tests
1bdf5b
  - Expanded dist.ini from author bundle to individual plugins
1bdf5b
1bdf5b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.133-4
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1bdf5b
1bdf5b
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.133-3
1bdf5b
- Perl 5.22 re-rebuild of bootstrapped packages
1bdf5b
1bdf5b
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.133-2
1bdf5b
- Perl 5.22 rebuild
1bdf5b
1bdf5b
* Sun Feb 22 2015 Paul Howarth <paul@city-fan.org> - 2.133-1
1bdf5b
- Update to 2.133
1bdf5b
  - In fixing preservation of "0.00", some Module => 0 optimizations were lost;
1bdf5b
    this restores those optimizations
1bdf5b
1bdf5b
* Fri Jan 23 2015 Paul Howarth <paul@city-fan.org> - 2.132-1
1bdf5b
- Update to 2.132
1bdf5b
  - Precision of version requirement "0.00" is preserved when merging
1bdf5b
    requirements
1bdf5b
1bdf5b
* Wed Dec 24 2014 Paul Howarth <paul@city-fan.org> - 2.131-1
1bdf5b
- Update to 2.131
1bdf5b
  - Merging Module => 0 into requirements is now optimized
1bdf5b
  - Scalar::Utils removed as a prerequisite
1bdf5b
1bdf5b
* Thu Nov 20 2014 Paul Howarth <paul@city-fan.org> - 2.130-1
1bdf5b
- Update to 2.130
1bdf5b
  - from_string_hash can take optional constructor arguments
1bdf5b
  - bad_version_hook callback gets module name as well as version string
1bdf5b
  - undefined/empty versions given to from_string_hash or
1bdf5b
    add_string_requirement now carp and are coerced to "0" instead of being
1bdf5b
    fatal; this is more consistent with how the other requirement functions
1bdf5b
    work
1bdf5b
- Provide six-digit version in a more robust way
1bdf5b
1bdf5b
* Fri Nov 14 2014 Paul Howarth <paul@city-fan.org> - 2.129-1
1bdf5b
- Update to 2.129
1bdf5b
  - from_string_hash can now accept v-strings as hash values
1bdf5b
1bdf5b
* Thu Sep 18 2014 Petr Pisar <ppisar@redhat.com> - 2.128-1
1bdf5b
- 2.128 bump
1bdf5b
1bdf5b
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.126-3
1bdf5b
- Perl 5.20 re-rebuild of bootstrapped packages
1bdf5b
1bdf5b
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.126-2
1bdf5b
- Perl 5.20 rebuild
1bdf5b
1bdf5b
* Thu Jul 31 2014 Paul Howarth <paul@city-fan.org> - 2.126-1
1bdf5b
- Update to 2.126
1bdf5b
  - Fixed compatibility with version.pm 0.77
1bdf5b
  - Minor documentation fixes
1bdf5b
  - Modernized distribution meta files
1bdf5b
- Use %%license
1bdf5b
1bdf5b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.125-2
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1bdf5b
1bdf5b
* Fri Mar 28 2014 Paul Howarth <paul@city-fan.org> - 2.125-1
1bdf5b
- Update to 2.125
1bdf5b
  - On Perls prior to v5.12, CPAN::Meta::Requirements will force UNINST=1 when
1bdf5b
    necessary to remove stale copies from ExtUtils::MakeMaker
1bdf5b
  - Updated Makefile.PL logic to support PERL_NO_HIGHLANDER
1bdf5b
- README.PATCHING renamed to CONTRIBUTING
1bdf5b
- Classify buildreqs by usage
1bdf5b
- Add note about logically-impossible constraints to %%description
1bdf5b
1bdf5b
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.122-292
1bdf5b
- Perl 5.18 re-rebuild of bootstrapped packages
1bdf5b
1bdf5b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.122-291
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1bdf5b
1bdf5b
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 2.122-290
1bdf5b
- Increase release to favour standalone package
1bdf5b
1bdf5b
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.122-8
1bdf5b
- Perl 5.18 rebuild
1bdf5b
1bdf5b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.122-7
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1bdf5b
1bdf5b
* Fri Jul 20 2012 Marcela Mašláňová <mmaslano@redhat.com> - 2.122-6
1bdf5b
- Conditionalize Test::*
1bdf5b
1bdf5b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.122-5
1bdf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1bdf5b
1bdf5b
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 2.122-4
1bdf5b
- Perl 5.16 re-rebuild of bootstrapped packages
1bdf5b
1bdf5b
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.122-3
1bdf5b
- Perl 5.16 rebuild
1bdf5b
1bdf5b
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com>
1bdf5b
- Skip some tests on bootstrap
1bdf5b
1bdf5b
* Mon May 07 2012 Iain Arnell <iarnell@gmail.com> 2.122-1
1bdf5b
- update to latest upstream version
1bdf5b
1bdf5b
* Tue Apr 03 2012 Iain Arnell <iarnell@gmail.com> 2.121-3
1bdf5b
- provide perl(CPAN::Meta::Requirements) with six decimal places
1bdf5b
1bdf5b
* Mon Apr 02 2012 Iain Arnell <iarnell@gmail.com> 2.121-2
1bdf5b
- clean up spec following review
1bdf5b
- run release/author tests too
1bdf5b
1bdf5b
* Sun Apr 01 2012 Iain Arnell <iarnell@gmail.com> 2.121-1
1bdf5b
- Specfile autogenerated by cpanspec 1.79.