%define upstream_name Devel-TakeHashArgs %define upstream_version 0.005 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 4 Summary: make a hash from @_ and set defaults in subs while checking that all mandatory arguments are present License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Exporter) BuildRequires: perl(Module::Build::Compat) BuildRequires: perl(Test::More) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} %description The module is a short utility I made after being sick and tired of writing redundant code to make a hash out of args when they are passed as key/value pairs including setting their defaults and checking for mandatory arguments. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README META.yml Changes %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sat Feb 13 2010 Jérôme Quelin <jquelin@mandriva.org> 0.5.0-4mdv2010.1 + Revision: 505272 - rebuild using %%perl_convert_version * Fri Sep 04 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.005-3mdv2010.0 + Revision: 430410 - rebuild * Fri Aug 08 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.005-2mdv2009.0 + Revision: 268429 - rebuild early 2009.0 package (before pixel changes) * Wed Apr 16 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.005-1mdv2009.0 + Revision: 194849 - update to new version 0.005 - update to new version 0.005 * Sat Apr 12 2008 Olivier Thauvin <nanardon@mandriva.org> 0.004-1mdv2009.0 + Revision: 192623 - import perl-Devel-TakeHashArgs