%define upstream_name strictures %define upstream_version 2.000005 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: 3 Summary: strictures perl module License: GPL+ or Artistic Group: Development/Perl Url: http://metacpan.org/pod/strictures Source0: http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Test::More) BuildRequires: perl-devel Provides: perl(strictures) BuildArch: noarch %description I've been writing the equivalent of this module at the top of my code for about a year now. I figured it was time to make it shorter. Things like the importer in 'use Moose' don't help me because they turn warnings on but don't make them fatal - which from my point of view is useless because I want an exception to tell me my code isn't warnings clean. Any time I see a warning from my code, that indicates a mistake. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build perl Makefile.PL INSTALLDIRS=vendor %make %check %make test %install %makeinstall_std %files %doc README META.yml Changes %{_mandir}/man3/* %{perl_vendorlib}/* %changelog * Sat Jun 25 2011 Guillaume Rousse 1.2.2-2mdv2011.0 + Revision: 687048 - fix dependencies * Fri Jun 17 2011 Guillaume Rousse 1.2.2-1 + Revision: 685797 - import perl-strictures