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