From 2a921690b4631f85818fa8c6f3c2795b88ec2f30 Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Mon, 23 Jul 2007 21:44:21 +0000 Subject: [PATCH] Import. --- .cvsignore | 1 + perl-Test-Class.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 58 insertions(+) create mode 100644 perl-Test-Class.spec diff --git a/.cvsignore b/.cvsignore index e69de29..c7c4d80 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-Class-0.24.tar.gz diff --git a/perl-Test-Class.spec b/perl-Test-Class.spec new file mode 100644 index 0000000..b60b3e6 --- /dev/null +++ b/perl-Test-Class.spec @@ -0,0 +1,56 @@ +Name: perl-Test-Class +Version: 0.24 +Release: 1%{?dist} +Summary: Easily create test classes in an xUnit/JUnit style +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-Class/ +Source0: http://www.cpan.org/authors/id/A/AD/ADIE/Test-Class-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(Contextual::Return) +BuildRequires: perl(Devel::Symdump) >= 2.03 +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::Builder::Tester) +BuildRequires: perl(Test::Exception) >= 0.15 +BuildRequires: perl(Test::More) +Requires: perl(Devel::Symdump) >= 2.03 +Requires: perl(Test::Exception) >= 0.15 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Test::Class provides a simple way of creating classes and objects to test +your code in an xUnit style. + +%prep +%setup -q -n Test-Class-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Jul 16 2007 Steven Pritchard 0.24-1 +- Specfile autogenerated by cpanspec 1.71. +- BR Contextual::Return, Test::Builder::Tester, and Test::More. +- Drop explicit perl BR. diff --git a/sources b/sources index e69de29..bf50331 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +dc27881e002abb283b96e083e7eb49c4 Test-Class-0.24.tar.gz