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