Blame SPECS/perl-CPAN-Meta-Requirements.spec

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