%define pkg_name UNIVERSAL-isa %define pkg_version 0.06 %define rpm_pkg_version 0.06 %define rpm_pkg_release 2.n0i.6 Summary: Hack around stupid module authors using UNIVERSAL::isa as a function Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/C/CH/CHROMATIC/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) %{!?_without_test:BuildRequires: perl(Scalar::Util)} %{!?_without_test:BuildRequires: perl(Test::More)} %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 -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes README %changelog * Tue May 22 2007 Marius Feraru - 0.06-2.n0i.6 - spec file (re)created using N0i::CPAN::RPMizer 804.027 - rebuild * Sat Mar 04 2006 Marius Feraru - 0.06-1.n0i.5 - version 0.06 * Thu Nov 10 2005 Marius Feraru 0.05-1.n0i.4 - version 0.05 * Tue Sep 13 2005 Marius Feraru 0.04-1.n0i.3 - version 0.04 * Tue Sep 06 2005 Marius Feraru 0.03-1.n0i.2 - version 0.03 * Thu Sep 01 2005 Marius Feraru 0.02-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.10 - rebuild on perl 5.8.7