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