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

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