%define upstream_name MouseX-StrictConstructor %define upstream_version 0.02 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Make your object constructors blow up on unknown attributes License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/MouseX/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Mouse) BuildRequires: perl(Test::More) BuildArch: noarch %description Simply loading this module makes your constructors "strict". If your constructor is called with an attribute argument that your class does not declare, then it dies. This is a great way to catch small typos. %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 README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.20.0-2.mga3 + Revision: 370381 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Apr 03 2011 jquelin <jquelin> 0.20.0-1.mga1 + Revision: 80054 - imported package perl-MouseX-StrictConstructor