File perl-Test-MockObject.spec of Package perl-Test-MockObject

%define _real_name Test-MockObject
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)

Summary: Perl extension for emulating troublesome interfaces
Name: perl-Test-MockObject
Version: 1.09
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~chromatic/Test-MockObject-1.09/lib/Test/MockObject.pm

Buildarch: noarch

BuildRequires: perl-UNIVERSAL-can perl-UNIVERSAL-isa
Requires: perl-UNIVERSAL-can perl-UNIVERSAL-isa perl-Scalar-List-Utils perl-Test-Exception

Source: http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/Test-MockObject-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Perl extension for emulating troublesome interfaces

%prep
%setup -n %{_real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor"  destdir="%{buildroot}"
%{__make}

%install
%{__rm} -rf %{buildroot}
%{__make} install
%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%{_mandir}/man3/*.gz
%dir %{perl_vendorlib}/Test/
%dir %{perl_vendorlib}/Test/MockObject
%{perl_vendorlib}/Test/MockObject.pm
%{perl_vendorlib}/Test/MockObject/Extends.pm


%changelog
* Tue Feb 03 2009 Leo Eraly <leo@unstable.be> - 1.18-1
- Initial package
openSUSE Build Service is sponsored by