rpms/perl-UNIVERSAL-isa/devel perl-UNIVERSAL-isa.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jose Pedro Oliveira (jpo) fedora-extras-commits at redhat.com
Tue Jan 31 14:52:53 UTC 2006


Author: jpo

Update of /cvs/extras/rpms/perl-UNIVERSAL-isa/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7816/devel

Modified Files:
	.cvsignore sources 
Added Files:
	perl-UNIVERSAL-isa.spec 
Log Message:
auto-import perl-UNIVERSAL-isa-0.05-2 on branch devel from perl-UNIVERSAL-isa-0.05-2.src.rpm


--- NEW FILE perl-UNIVERSAL-isa.spec ---
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.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-UNIVERSAL-isa/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	31 Jan 2006 14:52:16 -0000	1.1
+++ .cvsignore	31 Jan 2006 14:52:53 -0000	1.2
@@ -0,0 +1 @@
+UNIVERSAL-isa-0.05.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-UNIVERSAL-isa/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	31 Jan 2006 14:52:16 -0000	1.1
+++ sources	31 Jan 2006 14:52:53 -0000	1.2
@@ -0,0 +1 @@
+15df976064b0b3d21b2fb8808fe9c471  UNIVERSAL-isa-0.05.tar.gz




More information about the fedora-extras-commits mailing list