9c25e5
Name:           perl-CPAN-Meta-Requirements
9c25e5
Version:        2.122
489d03
Release:        7%{?dist}
9c25e5
Summary:        Set of version requirements for a CPAN dist
9c25e5
License:        GPL+ or Artistic
9c25e5
Group:          Development/Libraries
9c25e5
URL:            http://search.cpan.org/dist/CPAN-Meta-Requirements/
9c25e5
Source0:        http://www.cpan.org/authors/id/D/DA/DAGOLDEN/CPAN-Meta-Requirements-%{version}.tar.gz
9c25e5
BuildArch:      noarch
9c25e5
BuildRequires:  perl(Carp)
9c25e5
BuildRequires:  perl(ExtUtils::MakeMaker)
9c25e5
BuildRequires:  perl(File::Find)
9c25e5
BuildRequires:  perl(File::Temp)
9c25e5
BuildRequires:  perl(Scalar::Util)
9c25e5
BuildRequires:  perl(Test::More)
9c25e5
%if !%{defined perl_bootstrap}
9c25e5
BuildRequires:  perl(Test::Script)
9c25e5
%endif
9c25e5
BuildRequires:  perl(version) >= 0.77
9c25e5
# for author/release tests
9c25e5
%if !%{defined perl_bootstrap} && ! ( 0%{?rhel} )
9c25e5
BuildRequires:  perl(Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire)
9c25e5
BuildRequires:  perl(Pod::Coverage::TrustPod)
9c25e5
BuildRequires:  perl(Pod::Wordlist::hanekomu)
9c25e5
BuildRequires:  perl(Test::CPAN::Meta)
9c25e5
BuildRequires:  perl(Test::Perl::Critic)
9c25e5
BuildRequires:  perl(Test::Pod)
9c25e5
BuildRequires:  perl(Test::Pod::Coverage)
9c25e5
BuildRequires:  perl(Test::Portability::Files)
9c25e5
BuildRequires:  perl(Test::Requires)
9c25e5
BuildRequires:  perl(Test::Spelling) aspell-en
9c25e5
BuildRequires:  perl(Test::Version)
9c25e5
%endif
9c25e5
9c25e5
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
9c25e5
9c25e5
%{?perl_default_filter}
9c25e5
9c25e5
# CPAN-Meta-Requirements was split from CPAN-Meta
9c25e5
Conflicts:      perl-CPAN-Meta < 2.120921
9c25e5
# and used to have six decimal places
9c25e5
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(CPAN::Meta::Requirements\\)
9c25e5
Provides:       perl(CPAN::Meta::Requirements) = %{version}000
9c25e5
9c25e5
%description
9c25e5
A CPAN::Meta::Requirements object models a set of version constraints like
9c25e5
those specified in the META.yml or META.json files in CPAN distributions.
9c25e5
It can be built up by adding more and more constraints, and it will reduce
9c25e5
them to the simplest representation.
9c25e5
9c25e5
%prep
9c25e5
%setup -q -n CPAN-Meta-Requirements-%{version}
9c25e5
9c25e5
%build
9c25e5
%{__perl} Makefile.PL INSTALLDIRS=vendor
9c25e5
make %{?_smp_mflags}
9c25e5
9c25e5
%install
9c25e5
make pure_install DESTDIR=%{buildroot}
9c25e5
9c25e5
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
9c25e5
9c25e5
%{_fixperms} %{buildroot}/*
9c25e5
9c25e5
%check
9c25e5
%if %{defined perl_bootstrap} || ( 0%{?rhel} )
9c25e5
rm -rf xt
9c25e5
%endif
9c25e5
make test TEST_FILES="t/*.t xt/*/*.t"
9c25e5
9c25e5
%files
9c25e5
%doc Changes LICENSE perlcritic.rc README README.PATCHING
9c25e5
%{perl_vendorlib}/*
9c25e5
%{_mandir}/man3/*
9c25e5
9c25e5
%changelog
489d03
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.122-7
489d03
- Mass rebuild 2013-12-27
489d03
9c25e5
* Fri Jul 20 2012 Marcela Mašláňová <mmaslano@redhat.com> - 2.122-6
9c25e5
- Conditionalize Test::*
9c25e5
9c25e5
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.122-5
9c25e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9c25e5
9c25e5
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 2.122-4
9c25e5
- Perl 5.16 re-rebuild of bootstrapped packages
9c25e5
9c25e5
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.122-3
9c25e5
- Perl 5.16 rebuild
9c25e5
9c25e5
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com>
9c25e5
- Skip some tests on bootstrap
9c25e5
9c25e5
* Mon May 07 2012 Iain Arnell <iarnell@gmail.com> 2.122-1
9c25e5
- update to latest upstream version
9c25e5
9c25e5
* Tue Apr 03 2012 Iain Arnell <iarnell@gmail.com> 2.121-3
9c25e5
- provide perl(CPAN::Meta::Requirements) with six decimal places
9c25e5
9c25e5
* Mon Apr 02 2012 Iain Arnell <iarnell@gmail.com> 2.121-2
9c25e5
- clean up spec following review
9c25e5
- run release/author tests too
9c25e5
9c25e5
* Sun Apr 01 2012 Iain Arnell <iarnell@gmail.com> 2.121-1
9c25e5
- Specfile autogenerated by cpanspec 1.79.