parent
c3eef3bdf2
commit
b814937a4b
@ -0,0 +1 @@
|
||||
UNIVERSAL-isa-0.05.tar.gz
|
@ -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 <jpo at di.uminho.pt> - 0.05-2
|
||||
- Source URL correction.
|
||||
|
||||
* Tue Dec 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-1
|
||||
- First build.
|
Loading…
Reference in new issue