Name: perl-UNIVERSAL-isa Version: 1.20171012 Release: 1%{?dist} Vendor: bww bitwise works GmbH Summary: Hack around module authors using UNIVERSAL::isa as a function Group: Development/Libraries License: GPL+ or Artistic URL: https://metacpan.org/release/UNIVERSAL-isa Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/UNIVERSAL-isa-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-generators #BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63 BuildRequires: perl(File::Spec) BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) BuildRequires: perl(strict) BuildRequires: perl(Test::More) BuildRequires: perl(warnings) BuildRequires: perl(warnings::register) 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 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} -i -e 's{^#!%{__perl}\b}{##!%{__perl}}' lib/UNIVERSAL/isa.pm %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} make manifypods %install make pure_install DESTDIR=%{buildroot} find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' %{_fixperms} %{buildroot} %check #make test %files %license LICENCE %doc Changes README %{perl_vendorlib}/UNIVERSAL/ %{_mandir}/man3/*.3pm* %changelog * Fri Sep 28 2018 Elbert Pol 1.20171012-1 - First OS/2 rpm release