diff --git a/README.md b/README.md index 5595ee0..0a53757 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # perl-Test-Object +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. + diff --git a/perl-Test-Object-0.07-Makefile.PL.patch b/perl-Test-Object-0.07-Makefile.PL.patch new file mode 100644 index 0000000..5722984 --- /dev/null +++ b/perl-Test-Object-0.07-Makefile.PL.patch @@ -0,0 +1,12 @@ +diff -ruN Test-Object-0.07-orig/Makefile.PL Test-Object-0.07/Makefile.PL +--- Test-Object-0.07-orig/Makefile.PL 2006-09-07 01:48:07.000000000 +0100 ++++ Test-Object-0.07/Makefile.PL 2006-09-07 15:33:14.000000000 +0100 +@@ -7,7 +7,7 @@ + requires 'Exporter' => 0; + requires 'Scalar::Util' => '1.16'; + requires 'Test::More' => '0.42'; +-requires 'Test::Builder' => '0.33'; ++requires 'Test::Builder' => '0.32'; + requires 'Test::Builder::Tester' => '1.02'; + requires 'File::Spec' => '0.80'; + diff --git a/perl-Test-Object.spec b/perl-Test-Object.spec new file mode 100644 index 0000000..a2ef044 --- /dev/null +++ b/perl-Test-Object.spec @@ -0,0 +1,56 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Test-Object +Version: 0.07 +Release: 1mamba +Summary: Test::Object - Thoroughly testing objects via registered handlers +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Test-Object-%{version}.tar.gz +Patch0: perl-Test-Object-0.07-Makefile.PL.patch +License: GPL, Artistic +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::Builder) +BuildRequires: perl(Test::Builder::Tester) +BuildRequires: perl(Test::Pod) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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} +%patch0 -p1 + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test AUTOMATED_TESTING=1 + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/Test/ +%{_mandir}/man3/*.3pm.gz +%doc Changes LICENSE README + +%changelog +* Fri Feb 18 2011 gil 0.07-1mamba +- package created by autospec