%define upstream_name MooseX-OneArgNew %define upstream_version 0.002 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Teach ->new to accept single, non-hashref arguments License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0 BuildRequires: perl(Moose) BuildRequires: perl(Moose::Util::TypeConstraints) BuildRequires: perl(MooseX::Role::Parameterized) BuildRequires: perl(Test::More) >= 0.960.0 BuildRequires: perl(namespace::autoclean) BuildArch: noarch %description MooseX::OneArgNew lets your constructor take a single argument, which will be translated into the value for a one-entry hashref. It is a the parameterized role|MooseX::Role::Parameterized manpage with two parameters: * type The Moose type that the single argument must be for the one-arg form to work. This should be an existing type, and may be either a string type or a MooseX::Type. %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 LICENSE META.json META.yml README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.2.0-2.mga3 + Revision: 370223 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Jun 17 2011 jquelin <jquelin> 0.2.0-1.mga2 + Revision: 109137 - update to 0.002 * Mon Feb 21 2011 jquelin <jquelin> 0.1.0-1.mga1 + Revision: 55435 - fix spec file - imported package perl-MooseX-OneArgNew