%define module UNIVERSAL-isa %define name perl-%{module} %define version 0.04 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} Summary: Hack around calling UNIVERSAL::isa() as a function License: GPL or Artistic Group: Development/Perl Source: http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/%{module}-%{version}.tar.bz2 Url: http://search.cpan.org/dist/%{module} %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRoot: %{_tmppath}/%{name}-%{version} BuildArch: noarch %description Whenever you use "isa" in UNIVERSAL as a function, a kitten using Test::MockObject dies. Normally, the kittens would be helpless, but if they use UNIVERSAL::isa (the module whose docs you are reading), the kittens can live long and prosper. This module replaces UNIVERSAL::isa with a version that makes sure that if it's called as a function on objects which override isa, isa will be called on those objects as a method. In all other cases the real UNIVERSAL::isa is just called directly. %prep %setup -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{perl_vendorlib}/UNIVERSAL %{_mandir}/*/* %changelog * Tue Sep 20 2005 Guillaume Rousse <guillomovitch@mandriva.org> 0.04-1mdk - first mdk release