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