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