[perl-UNIVERSAL-isa] update to 1.20120726
Tom Callaway
spot at fedoraproject.org
Sun Jan 20 20:30:17 UTC 2013
commit 3acaf21e9b662b220b7ef71cdb04925a217a7466
Author: Tom Callaway <spot at fedoraproject.org>
Date: Sun Jan 20 15:32:46 2013 -0500
update to 1.20120726
.gitignore | 1 +
perl-UNIVERSAL-isa.spec | 40 ++++++++++++++++------------------------
sources | 2 +-
3 files changed, 18 insertions(+), 25 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fb19124..5e12d77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
UNIVERSAL-isa-1.03.tar.gz
+/UNIVERSAL-isa-1.20120726.tar.gz
diff --git a/perl-UNIVERSAL-isa.spec b/perl-UNIVERSAL-isa.spec
index e9c1b29..42072d1 100644
--- a/perl-UNIVERSAL-isa.spec
+++ b/perl-UNIVERSAL-isa.spec
@@ -1,20 +1,19 @@
Name: perl-UNIVERSAL-isa
-Version: 1.03
-Release: 10%{?dist}
+Version: 1.20120726
+Release: 1%{?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://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/UNIVERSAL-isa-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
BuildArch: noarch
-BuildRequires: perl(Module::Build)
+BuildRequires: perl(CGI)
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl(Test::More)
-
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+%{?perl_default_filter}
+
%description
Whenever you use "isa" in UNIVERSAL as a function, a kitten using
Test::MockObject dies. Normally, the kittens would be helpless, but
@@ -27,39 +26,32 @@ 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
-
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
+%{_fixperms} %{buildroot}
%check
-./Build test
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
+make test
%files
-%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/UNIVERSAL/
%{_mandir}/man3/*.3pm*
-
%changelog
+* Sun Jan 20 2013 Tom Callaway <spot at fedoraproject.org> - 1.20120726-1
+- update to 1.20120726
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.03-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
diff --git a/sources b/sources
index 8dbc9e4..80b7b03 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0643f2e04cd0b5739fc0908af291c609 UNIVERSAL-isa-1.03.tar.gz
+d4a001886e24221d91de889209667d1c UNIVERSAL-isa-1.20120726.tar.gz
More information about the scm-commits
mailing list