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