Name: perl-common-sense Version: 1.0 Release: 2%{?dist} # see LICENSE License: GPL+ or Artistic Group: Development/Libraries Summary: "Common sense" Perl defaults Source: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-%{version}.tar.gz Url: http://search.cpan.org/dist/common-sense BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) %{?perl_default_filter} %description This module implements some sane defaults for Perl programs, as defined by two typical (or not so typical - use your common sense) specimens of Perl coders: use strict qw(vars subs); use feature qw(say state switch); no warnings; %prep %setup -q -n common-sense-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE Changes README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Sun Sep 27 2009 Chris Weyl 1.0-2 - update summary (though now we deviate from upstream) * Mon Aug 31 2009 Chris Weyl 1.0-1 - auto-update to 1.0 (by cpan-spec-update 0.01) * Fri Aug 21 2009 Chris Weyl 0.04-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)