package created by autospec [release 0.07-1mamba;Fri Feb 18 2011]

This commit is contained in:
gil 2024-01-06 09:44:12 +01:00
parent 714ebe33c6
commit 1213882c66
3 changed files with 72 additions and 0 deletions

View File

@ -1,2 +1,6 @@
# perl-Test-Object # 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.

View File

@ -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';

56
perl-Test-Object.spec Normal file
View File

@ -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 <puntogil@libero.it>
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 <puntogil@libero.it> 0.07-1mamba
- package created by autospec