%define upstream_name Dist-Zilla-Plugin-NoAutomatedTesting %define upstream_version 0.02 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Avoid running under CPAN Testers License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Dist::Zilla) BuildArch: noarch %description CPAN Testers are great and do a worthy and thankless job, testing all the distributions uploaded to CPAN. But sometimes we don't want a distribution to be tested by these gallant individuals. Dist::Zilla::Plugin::NoAutomatedTesting is a the Dist::Zilla manpage plugin that mungles 'Makefile.PL' to detect that it is being run by a CPAN Tester and 'exit 0' if it is. As this plugin mungles the 'Makefile.PL' it is imperative that it is specified in 'dist.ini' AFTER '[MakeMaker]'. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc META.yml LICENSE README META.json Changes %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.20.0-2.mga3 + Revision: 366290 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jan 26 2011 jquelin <jquelin> 0.20.0-1.mga1 + Revision: 40502 - mageia rebuild - imported package perl-Dist-Zilla-Plugin-NoAutomatedTesting