| 1 | Name: perl-UNIVERSAL-isa
|
|---|
| 2 | Version: 1.20171012
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Vendor: bww bitwise works GmbH
|
|---|
| 5 | Summary: Hack around module authors using UNIVERSAL::isa as a function
|
|---|
| 6 | Group: Development/Libraries
|
|---|
| 7 | License: GPL+ or Artistic
|
|---|
| 8 | URL: https://metacpan.org/release/UNIVERSAL-isa
|
|---|
| 9 | Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/UNIVERSAL-isa-%{version}.tar.gz
|
|---|
| 10 | BuildArch: noarch
|
|---|
| 11 | BuildRequires: coreutils
|
|---|
| 12 | BuildRequires: findutils
|
|---|
| 13 | BuildRequires: make
|
|---|
| 14 | BuildRequires: perl-generators
|
|---|
| 15 | #BuildRequires: perl-interpreter
|
|---|
| 16 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
|---|
| 17 | BuildRequires: perl(File::Spec)
|
|---|
| 18 | BuildRequires: perl(overload)
|
|---|
| 19 | BuildRequires: perl(Scalar::Util)
|
|---|
| 20 | BuildRequires: perl(strict)
|
|---|
| 21 | BuildRequires: perl(Test::More)
|
|---|
| 22 | BuildRequires: perl(warnings)
|
|---|
| 23 | BuildRequires: perl(warnings::register)
|
|---|
| 24 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|---|
| 25 |
|
|---|
| 26 | %{?perl_default_filter}
|
|---|
| 27 |
|
|---|
| 28 | %description
|
|---|
| 29 | Whenever you use "isa" in UNIVERSAL as a function, a kitten using
|
|---|
| 30 | Test::MockObject dies. Normally, the kittens would be helpless, but
|
|---|
| 31 | if they use UNIVERSAL::isa (the module whose docs you are reading),
|
|---|
| 32 | the kittens can live long and prosper.
|
|---|
| 33 |
|
|---|
| 34 | This module replaces UNIVERSAL::isa with a version that makes sure
|
|---|
| 35 | that if it's called as a function on objects which override isa,
|
|---|
| 36 | isa will be called on those objects as a method.
|
|---|
| 37 |
|
|---|
| 38 | In all other cases the real UNIVERSAL::isa is just called directly.
|
|---|
| 39 |
|
|---|
| 40 | %prep
|
|---|
| 41 | %setup -q -n UNIVERSAL-isa-%{version}
|
|---|
| 42 | %{__perl} -i -e 's{^#!%{__perl}\b}{##!%{__perl}}' lib/UNIVERSAL/isa.pm
|
|---|
| 43 |
|
|---|
| 44 | %build
|
|---|
| 45 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|---|
| 46 | make %{?_smp_mflags}
|
|---|
| 47 | make manifypods
|
|---|
| 48 |
|
|---|
| 49 | %install
|
|---|
| 50 | make pure_install DESTDIR=%{buildroot}
|
|---|
| 51 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|---|
| 52 | %{_fixperms} %{buildroot}
|
|---|
| 53 |
|
|---|
| 54 | %check
|
|---|
| 55 | #make test
|
|---|
| 56 |
|
|---|
| 57 | %files
|
|---|
| 58 | %license LICENCE
|
|---|
| 59 | %doc Changes README
|
|---|
| 60 | %{perl_vendorlib}/UNIVERSAL/
|
|---|
| 61 | %{_mandir}/man3/*.3pm*
|
|---|
| 62 |
|
|---|
| 63 | %changelog
|
|---|
| 64 | * Fri Sep 28 2018 Elbert Pol <elbert.pol@gmail.com> 1.20171012-1
|
|---|
| 65 | - First OS/2 rpm release
|
|---|