%define upstream_name Dist-Zilla-Plugin-MakeMaker-Awesome %define upstream_version 0.05 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: A more awesome MakeMaker plugin for Dist::Zilla 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::File::InMemory) BuildRequires: perl(Dist::Zilla::Plugin::MakeMaker) BuildRequires: perl(Dist::Zilla::Role::BuildRunner) BuildRequires: perl(Dist::Zilla::Role::InstallTool) BuildRequires: perl(Dist::Zilla::Role::TestRunner) BuildRequires: perl(Dist::Zilla::Role::TextTemplate) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Moose) BuildRequires: perl(Moose::Autobox) BuildRequires: perl(MooseX::Types::Moose) BuildRequires: perl(namespace::autoclean) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} Obsoletes: perl-Dist-Zilla-Plugin-OverridableMakeMaker %description the Dist::Zilla manpage's Dist::Zilla::Plugin::MakeMaker plugin is limited, if you want to stray from the marked path and do something that would normally be done in a 'package MY' section or otherwise run custom code in your _Makefile.PL_ you're out of luck. This plugin is 100% compatable with the Dist::Zilla::Plugin::MakeMaker manpage, but if you need something more complex you can just subclass it: Then, in your _dist.ini_: %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 Changes META.yml LICENSE README META.json %{_mandir}/man3/* %perl_vendorlib/* %changelog * Fri Apr 09 2010 Jérôme Quelin <jquelin@mandriva.org> 0.50.0-1mdv2010.1 + Revision: 533498 - import perl-Dist-Zilla-Plugin-MakeMaker-Awesome * Fri Apr 09 2010 cpan2dist 0.04-1mdv - initial mdv release, generated with cpan2dist