diff --git a/.cvsignore b/.cvsignore index e69de29..441f837 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +common-sense-1.0.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..119df91 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-common-sense-1_0-2_fc11:HEAD:perl-common-sense-1.0-2.fc11.src.rpm:1254275232 diff --git a/perl-common-sense.spec b/perl-common-sense.spec new file mode 100644 index 0000000..5dbaba5 --- /dev/null +++ b/perl-common-sense.spec @@ -0,0 +1,64 @@ +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) diff --git a/sources b/sources index e69de29..8fb4f51 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c6fd2a8fd579f62c57211d7c8e4115f3 common-sense-1.0.tar.gz