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