diff --git a/.cvsignore b/.cvsignore index e69de29..277b4b6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +B-Keywords-1.05.tar.gz diff --git a/perl-B-Keywords.spec b/perl-B-Keywords.spec new file mode 100644 index 0000000..afe24e0 --- /dev/null +++ b/perl-B-Keywords.spec @@ -0,0 +1,61 @@ +Name: perl-B-Keywords +Version: 1.05 +Release: 1%{?dist} +Summary: Lists of reserved barewords and symbol names + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/B-Keywords/ +Source0: http://www.cpan.org/authors/id/J/JJ/JJORE/B-Keywords-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +BuildRequires: perl(YAML) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +%{summary}. + + +%prep +%setup -q -n B-Keywords-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +# Skip the Perl::Critic tests for two reasons: +# 1) it fails a couple of tests +# 2) it causes bootstrap problems +# (Perl::Critic 0.23 requires this module) +mv t/05critic.t t/05critic.t.skip +AUTHOR_TESTS=1 make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE +%{perl_vendorlib}/B/ +%{_mandir}/man3/*.3pm* + + +%changelog +* Sat Jan 20 2007 Jose Pedro Oliveira - 1.05-1 +- First build. diff --git a/sources b/sources index e69de29..c318597 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f8b40e7dc864fc27fc69638e58cc651c B-Keywords-1.05.tar.gz