%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Test-CPAN-Meta Version: 0.25 Release: 1mamba Summary: Test::CPAN::Meta - Validation of the META.yml file in a CPAN distribution. Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/B/BA/BARBIE/Test-CPAN-Meta-%{version}.tar.gz License: GPL, Artistic ## AUTOBUILDREQ-BEGIN BuildRequires: perl-Test-Simple BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Parse::CPAN::Meta) BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::Builder::Tester) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl-devel Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This module was written to ensure that a META.yml file, provided with a standard distribution uploaded to CPAN, meets the specifications that are slowly being introduced to module uploads, via the use of package makers and installers such as ExtUtils::MakeMaker, Module::Build and Module::Install. %prep %setup -q -n Test-CPAN-Meta-%{version} iconv -f iso-8859-1 -t utf-8 LICENSE > LICENSE.tmp mv -f LICENSE.tmp LICENSE %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir %{perl_vendorlib}/Test/CPAN %{perl_vendorlib}/Test/CPAN/* #%{_mandir}/man3/*.3pm.gz %doc LICENSE %changelog * Thu May 07 2015 Automatic Build System 0.25-1mamba - automatic update by autodist * Sun Jan 25 2015 Automatic Build System 0.24-1mamba - automatic update by autodist * Thu Apr 11 2013 Automatic Build System 0.23-1mamba - automatic version update by autodist * Wed Sep 05 2012 Automatic Build System 0.22-1mamba - automatic version update by autodist * Tue May 01 2012 Automatic Build System 0.21-1mamba - automatic version update by autodist * Sun Aug 07 2011 Automatic Build System 0.18-1mamba - automatic version update by autodist * Fri Feb 18 2011 gil 0.17-1mamba - package created by autospec