source: spec/trunk/SPECS/perl-UNIVERSAL-isa.spec@ 1567

Last change on this file since 1567 was 1495, checked in by tellie, 7 years ago

spec: perl-UNIVERSAL-isa: Release version 1.20171012-1.

File size: 2.0 KB
Line 
1Name: perl-UNIVERSAL-isa
2Version: 1.20171012
3Release: 1%{?dist}
4Vendor: bww bitwise works GmbH
5Summary: Hack around module authors using UNIVERSAL::isa as a function
6Group: Development/Libraries
7License: GPL+ or Artistic
8URL: https://metacpan.org/release/UNIVERSAL-isa
9Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/UNIVERSAL-isa-%{version}.tar.gz
10BuildArch: noarch
11BuildRequires: coreutils
12BuildRequires: findutils
13BuildRequires: make
14BuildRequires: perl-generators
15#BuildRequires: perl-interpreter
16BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
17BuildRequires: perl(File::Spec)
18BuildRequires: perl(overload)
19BuildRequires: perl(Scalar::Util)
20BuildRequires: perl(strict)
21BuildRequires: perl(Test::More)
22BuildRequires: perl(warnings)
23BuildRequires: perl(warnings::register)
24Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
25
26%{?perl_default_filter}
27
28%description
29Whenever you use "isa" in UNIVERSAL as a function, a kitten using
30Test::MockObject dies. Normally, the kittens would be helpless, but
31if they use UNIVERSAL::isa (the module whose docs you are reading),
32the kittens can live long and prosper.
33
34This module replaces UNIVERSAL::isa with a version that makes sure
35that if it's called as a function on objects which override isa,
36isa will be called on those objects as a method.
37
38In 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
45perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
46make %{?_smp_mflags}
47make manifypods
48
49%install
50make pure_install DESTDIR=%{buildroot}
51find $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
Note: See TracBrowser for help on using the repository browser.