From 1f5eedbec0bcf1a84ad9715e7f01f70b75908dbb Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Thu, 7 Sep 2006 13:40:09 +0000 Subject: [PATCH] auto-import perl-Test-Object-0.06-1 on branch devel from perl-Test-Object-0.06-1.src.rpm --- .cvsignore | 1 + perl-Test-Object.spec | 58 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+) create mode 100644 perl-Test-Object.spec diff --git a/.cvsignore b/.cvsignore index e69de29..e5c83b5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-Object-0.06.tar.gz diff --git a/perl-Test-Object.spec b/perl-Test-Object.spec new file mode 100644 index 0000000..1bd8f88 --- /dev/null +++ b/perl-Test-Object.spec @@ -0,0 +1,58 @@ +Name: perl-Test-Object +Version: 0.06 +Release: 1%{?dist} +Summary: Thoroughly testing objects via registered handlers + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Test-Object/ +Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Test-Object-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(Scalar::Util) >= 1.16 +BuildRequires: perl(Test::Builder::Tester) >= 1.02 +BuildRequires: perl(Test::Pod) >= 1.00 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Test::Object is a testing package designed to allow you to easily test +what you believe is a valid object against the expected behaviour of +all of the classes in its inheritance tree in one single call. + + +%prep +%setup -q -n Test-Object-%{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 -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/Test/ +%{_mandir}/man3/*.3pm* + + +%changelog +* Wed Sep 06 2006 Jose Pedro Oliveira - 0.06-1 +- First build. diff --git a/sources b/sources index e69de29..64b8360 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1e87ce051e903f82a1dbd8d2f00c9ffc Test-Object-0.06.tar.gz