From da2dc705d65bd19d8b940748c6055029709750b8 Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Mon, 13 Feb 2006 16:24:09 +0000 Subject: [PATCH] auto-import perl-UNIVERSAL-can-1.11-1 on branch devel from perl-UNIVERSAL-can-1.11-1.src.rpm --- .cvsignore | 1 + perl-UNIVERSAL-can.spec | 73 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 perl-UNIVERSAL-can.spec diff --git a/.cvsignore b/.cvsignore index e69de29..22465d6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +UNIVERSAL-can-1.11.tar.gz diff --git a/perl-UNIVERSAL-can.spec b/perl-UNIVERSAL-can.spec new file mode 100644 index 0000000..e712659 --- /dev/null +++ b/perl-UNIVERSAL-can.spec @@ -0,0 +1,73 @@ +Name: perl-UNIVERSAL-can +Version: 1.11 +Release: 1%{?dist} +Summary: Hack around people calling UNIVERSAL::can() as a function + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/UNIVERSAL-can/ +Source0: http://www.cpan.org/authors/id/C/CH/CHROMATIC/UNIVERSAL-can-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::Warn) >= 0.08 +BuildRequires: perl(Test::Simple) >= 0.60 +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +The UNIVERSAL class provides a few default methods so that all objects +can use them. Object orientation allows programmers to override these +methods in subclasses to provide more specific and appropriate behavior. + +Some authors call methods in the UNIVERSAL class on potential invocants +as functions, bypassing any possible overriding. This is wrong and you +should not do it. Unfortunately, not everyone heeds this warning and +their bad code can break your good code. + + +%prep +%setup -q -n UNIVERSAL-can-%{version} + + +%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,-) +%doc Changes README +%{perl_vendorlib}/UNIVERSAL/ +%{_mandir}/man3/*.3* + + +%changelog +* Fri Feb 10 2006 Jose Pedro Oliveira - 1.11-1 +- Update to 1.11. +- No longer build requires perl(Test::Exception). + +* Thu Feb 9 2006 Jose Pedro Oliveira - 1.03-2 +- Missing build requirement: perl(Test::Exception). + +* Wed Feb 8 2006 Jose Pedro Oliveira - 1.03-1 +- Update to 1.03. + +* Tue Dec 27 2005 Jose Pedro Oliveira - 1.01-1 +- First build. diff --git a/sources b/sources index e69de29..2c88b91 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a11167ca16c6d9767bab1ee41332f096 UNIVERSAL-can-1.11.tar.gz