From ac6c21bea9bdb9fddd8e87d7a1ed831cce7f56a4 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Thu, 7 Sep 2006 04:53:21 +0000 Subject: [PATCH] auto-import perl-Sub-Install-0.922-1.fc5 on branch devel from perl-Sub-Install-0.922-1.fc5.src.rpm --- .cvsignore | 1 + perl-Sub-Install.spec | 54 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 56 insertions(+) create mode 100644 perl-Sub-Install.spec diff --git a/.cvsignore b/.cvsignore index e69de29..17b7368 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Sub-Install-0.922.tar.gz diff --git a/perl-Sub-Install.spec b/perl-Sub-Install.spec new file mode 100644 index 0000000..1a73c83 --- /dev/null +++ b/perl-Sub-Install.spec @@ -0,0 +1,54 @@ +Name: perl-Sub-Install +Version: 0.922 +Release: 1%{?dist} +Summary: Install subroutines into packages easily +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Sub-Install/ +Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Install-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage) + +%description +This module makes it easy to install subroutines into packages without the +unslightly mess of no strict or typeglobs lying about where just anyone +can see them. + +%prep +%setup -q -n Sub-Install-%{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 +# you'll note a number of tests are skipped due to Test::Output not being +# present. However, Test::Output requires Sub::Exporter which requires... +# Sub::Install. Holy circular loop, Batman! :) +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Sep 02 2006 Chris Weyl 0.922-1 +- Specfile autogenerated by cpanspec 1.69.1. diff --git a/sources b/sources index e69de29..65af289 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +48e8e9f72cdd5b3f5f7115b8b7de3ddf Sub-Install-0.922.tar.gz