From c4b3f56b14504c205644ca3d4045ddaa674d4f73 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Thu, 7 Dec 2006 02:35:56 +0000 Subject: [PATCH] auto-import perl-Test-Distribution-1.26-1.fc6 on branch devel from perl-Test-Distribution-1.26-1.fc6.src.rpm --- .cvsignore | 1 + perl-Test-Distribution.spec | 67 +++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 perl-Test-Distribution.spec diff --git a/.cvsignore b/.cvsignore index e69de29..c07bffc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-Distribution-1.26.tar.gz diff --git a/perl-Test-Distribution.spec b/perl-Test-Distribution.spec new file mode 100644 index 0000000..a08cc70 --- /dev/null +++ b/perl-Test-Distribution.spec @@ -0,0 +1,67 @@ +Name: perl-Test-Distribution +Version: 1.26 +Release: 1%{?dist} +Summary: Perform tests on all modules of a distribution +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-Distribution/ +Source0: http://www.cpan.org/authors/id/S/SR/SRSHAH/Test-Distribution-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: perl(File::Find::Rule) >= 0.03 +BuildRequires: perl(Module::Build) +BuildRequires: perl(Module::CoreList) >= 1.93 +BuildRequires: perl(Module::Signature) +BuildRequires: perl(Pod::Coverage) >= 0.17 +BuildRequires: perl(Test::Pod) >= 0.95 +BuildRequires: perl(Test::Pod::Coverage) + +# these are considered "optional"; autoreq doesn't pick them up +Requires: perl(File::Find::Rule) >= 0.03 +Requires: perl(Module::CoreList) >= 1.93 +Requires: perl(Module::Signature) +Requires: perl(Pod::Coverage) >= 0.17 +Requires: perl(Test::Pod) >= 0.95 +Requires: perl(Test::Pod::Coverage) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +When using this module in a test script, it goes through all the modules in +your distribution, checks their POD, checks that they compile ok and checks +that they all define a $VERSION. + +%prep +%setup -q -n Test-Distribution-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf %{buildroot} + +./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +# these will cause problems otherwise... +rm debug*list + +./Build test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Dec 06 2006 Chris Weyl 1.26-1 +- Specfile autogenerated by cpanspec 1.69.1. diff --git a/sources b/sources index e69de29..d8a3c6c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +64dc13f51f60f6022bb8e628f1297957 Test-Distribution-1.26.tar.gz