update to 1.20120726

epel9
Tom Callaway 12 years ago
parent e12b011aee
commit 3acaf21e9b

1
.gitignore vendored

@ -1 +1,2 @@
UNIVERSAL-isa-1.03.tar.gz
/UNIVERSAL-isa-1.20120726.tar.gz

@ -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@fedoraproject.org> - 1.20120726-1
- update to 1.20120726
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

@ -1 +1 @@
0643f2e04cd0b5739fc0908af291c609 UNIVERSAL-isa-1.03.tar.gz
d4a001886e24221d91de889209667d1c UNIVERSAL-isa-1.20120726.tar.gz

Loading…
Cancel
Save