Name: perl-Test-CPAN-Meta-JSON Version: 0.10 Release: 2%{?dist} Summary: Validate a META.json file within a CPAN distribution Group: Development/Libraries License: Artistic 2.0 URL: http://search.cpan.org/dist/Test-CPAN-Meta-YAML/ Source0: http://search.cpan.org/CPAN/authors/id/B/BA/BARBIE/Test-CPAN-Meta-JSON-%{version}.tar.gz Patch0: Test-CPAN-Meta-JSON-0.10-utf8.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(IO::File) BuildRequires: perl(JSON) >= 2.15 BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::Builder::Tester) BuildRequires: perl(Test::CPAN::Meta::YAML) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description This module was written to ensure that a META.json file, provided with a standard distribution uploaded to CPAN, meets the specifications that are slowly being introduced to module uploads, via the use of ExtUtils::MakeMaker, Module::Build and Module::Install. See CPAN::Meta for further details of the CPAN Meta Specification. %prep %setup -q -n Test-CPAN-Meta-JSON-%{version} # Recode LICENSE as UTF-8 %patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null %{_fixperms} %{buildroot} %check make test AUTOMATED_TESTING=1 %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes LICENSE README examples/ %{perl_vendorlib}/Test/ %{_mandir}/man3/Test::CPAN::Meta::JSON.3pm* %{_mandir}/man3/Test::CPAN::Meta::JSON::Version.3pm* %changelog * Wed Aug 10 2011 Paul Howarth <paul@city-fan.org> - 0.10-2 - Sanitize for Fedora/EPEL submission * Wed Aug 10 2011 Paul Howarth <paul@city-fan.org> - 0.10-1 - Initial RPM version