From b814937a4beb776e9bb67c6153531a4983b05130 Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Tue, 31 Jan 2006 14:52:53 +0000 Subject: [PATCH] auto-import perl-UNIVERSAL-isa-0.05-2 on branch devel from perl-UNIVERSAL-isa-0.05-2.src.rpm --- .cvsignore | 1 + perl-UNIVERSAL-isa.spec | 64 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 66 insertions(+) create mode 100644 perl-UNIVERSAL-isa.spec diff --git a/.cvsignore b/.cvsignore index e69de29..4df9f19 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +UNIVERSAL-isa-0.05.tar.gz diff --git a/perl-UNIVERSAL-isa.spec b/perl-UNIVERSAL-isa.spec new file mode 100644 index 0000000..677a0db --- /dev/null +++ b/perl-UNIVERSAL-isa.spec @@ -0,0 +1,64 @@ +Name: perl-UNIVERSAL-isa +Version: 0.05 +Release: 2%{?dist} +Summary: Hack around module authors using UNIVERSAL::isa as a function + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/UNIVERSAL-isa/ +Source0: http://www.cpan.org/authors/id/N/NU/NUFFIN/UNIVERSAL-isa-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(Module::Build) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%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 UNIVERSAL-isa-%{version} +%{__perl} -pi -e 's{^#!%{__perl}\b}{##!%{__perl}}' lib/UNIVERSAL/isa.pm + + +%build +%{__perl} Build.PL installdirs=vendor +./Build + + +%install +rm -rf $RPM_BUILD_ROOT +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +./Build test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{perl_vendorlib}/UNIVERSAL/ +%{_mandir}/man3/*.3* + + +%changelog +* Tue Jan 31 2006 Jose Pedro Oliveira - 0.05-2 +- Source URL correction. + +* Tue Dec 27 2005 Jose Pedro Oliveira - 0.05-1 +- First build. diff --git a/sources b/sources index e69de29..7fd48bc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +15df976064b0b3d21b2fb8808fe9c471 UNIVERSAL-isa-0.05.tar.gz