From f00060ebb491d8ac77e6147842880f42d3b0f16e Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Mon, 10 Apr 2006 18:23:07 +0000 Subject: [PATCH] auto-import perl-Test-Deep-0.093-1 on branch devel from perl-Test-Deep-0.093-1.src.rpm --- .cvsignore | 1 + perl-Test-Deep.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+) create mode 100644 perl-Test-Deep.spec diff --git a/.cvsignore b/.cvsignore index e69de29..a3ad7ac 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-Deep-0.093.tar.gz diff --git a/perl-Test-Deep.spec b/perl-Test-Deep.spec new file mode 100644 index 0000000..84e7614 --- /dev/null +++ b/perl-Test-Deep.spec @@ -0,0 +1,57 @@ +Name: perl-Test-Deep +Version: 0.093 +Release: 1%{?dist} +Summary: Extremely flexible deep comparison +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-Deep/ +Source0: http://www.cpan.org/authors/id/F/FD/FDALY/Test-Deep-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(Test::NoWarnings) >= 0.02 +BuildRequires: perl(Test::Tester) >= 0.04 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Test::Deep gives you very flexible ways to check that the result you +got is the result you were expecting. At it's simplest it compares two +structures by going through each level, ensuring that the values +match, that arrays and hashes have the same elements and that +references are blessed into the correct class. It also handles +circular data structures without getting caught in an infinite loop. + +%prep +%setup -q -n Test-Deep-%{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+rwX,go+rX,go-w $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc CHANGES README TODO +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Apr 08 2006 Steven Pritchard 0.093-1 +- Specfile autogenerated by cpanspec 1.64. +- Improve description. +- Fix License. +- Remove explicit dependency on Test::Tester and Test::NoWarnings. diff --git a/sources b/sources index e69de29..ae90c77 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b47659e09457a72157d3db5b5be62f75 Test-Deep-0.093.tar.gz