| 1 | Name: perl-Class-C3
|
|---|
| 2 | Version: 0.33
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Pragma to use the C3 method resolution order algorithm
|
|---|
| 5 | License: GPL+ or Artistic
|
|---|
| 6 | Vendor: bww bitwise works GmbH
|
|---|
| 7 | URL: http://search.cpan.org/dist/Class-C3/
|
|---|
| 8 | Source0: http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/Class-C3-%{version}.tar.gz
|
|---|
| 9 | BuildArch: noarch
|
|---|
| 10 | # Build
|
|---|
| 11 | BuildRequires: coreutils
|
|---|
| 12 | BuildRequires: findutils
|
|---|
| 13 | BuildRequires: make
|
|---|
| 14 | #BuildRequires: perl-interpreter >= 4:5.9.5
|
|---|
| 15 | BuildRequires: perl-generators
|
|---|
| 16 | # Build (dependencies of bundled ExtUtils::HasCompiler)
|
|---|
| 17 | BuildRequires: perl(base)
|
|---|
| 18 | BuildRequires: perl(Carp)
|
|---|
| 19 | BuildRequires: perl(Config)
|
|---|
| 20 | BuildRequires: perl(DynaLoader)
|
|---|
| 21 | BuildRequires: perl(Exporter)
|
|---|
| 22 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 23 | BuildRequires: perl(File::Basename)
|
|---|
| 24 | BuildRequires: perl(File::Spec::Functions)
|
|---|
| 25 | BuildRequires: perl(File::Temp)
|
|---|
| 26 | BuildRequires: perl(strict)
|
|---|
| 27 | BuildRequires: perl(warnings)
|
|---|
| 28 | # Module
|
|---|
| 29 | BuildRequires: perl(Algorithm::C3) >= 0.07
|
|---|
| 30 | BuildRequires: perl(Scalar::Util) >= 1.10
|
|---|
| 31 | # Test Suite
|
|---|
| 32 | #BuildRequires: perl(File::Glob)
|
|---|
| 33 | #BuildRequires: perl(lib)
|
|---|
| 34 | #BuildRequires: perl(NEXT)
|
|---|
| 35 | #BuildRequires: perl(Sub::Name)
|
|---|
| 36 | #BuildRequires: perl(Test::Exception) >= 0.15
|
|---|
| 37 | #BuildRequires: perl(Test::More) >= 0.88
|
|---|
| 38 | # MRO::Compat itself requires Class::C3
|
|---|
| 39 | #%if 0%{!?perl_bootstrap:1}
|
|---|
| 40 | #BuildRequires: perl(MRO::Compat)
|
|---|
| 41 | #%endif
|
|---|
| 42 | # Dependencies
|
|---|
| 43 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 44 | Requires: perl(Algorithm::C3) >= 0.07
|
|---|
| 45 | Requires: perl(Scalar::Util) >= 1.10
|
|---|
| 46 |
|
|---|
| 47 | # Let people "use c3;"
|
|---|
| 48 | Provides: perl(c3) = %{version}
|
|---|
| 49 |
|
|---|
| 50 | %description
|
|---|
| 51 | This is a pragma to change Perl 5's standard method resolution order from
|
|---|
| 52 | depth-first left-to-right (a.k.a - pre-order) to the more sophisticated C3
|
|---|
| 53 | method resolution order.
|
|---|
| 54 |
|
|---|
| 55 | %prep
|
|---|
| 56 | %setup -q -n Class-C3-%{version}
|
|---|
| 57 |
|
|---|
| 58 | %build
|
|---|
| 59 | perl Makefile.PL INSTALLDIRS=vendor
|
|---|
| 60 | make %{?_smp_mflags}
|
|---|
| 61 | make manifypods
|
|---|
| 62 |
|
|---|
| 63 | %install
|
|---|
| 64 | make pure_install DESTDIR=%{buildroot}
|
|---|
| 65 | find %{buildroot} -type f -name .packlist -delete
|
|---|
| 66 | cp -p opt/c3.pm %{buildroot}%{perl_vendorlib}/
|
|---|
| 67 | %{_fixperms} %{buildroot}
|
|---|
| 68 |
|
|---|
| 69 | %check
|
|---|
| 70 | #make test
|
|---|
| 71 |
|
|---|
| 72 | %files
|
|---|
| 73 | %doc Changes README
|
|---|
| 74 | %{perl_vendorlib}/c3.pm
|
|---|
| 75 | %{perl_vendorlib}/Class/
|
|---|
| 76 | #%{_mandir}/man3/Class::C3.3*
|
|---|
| 77 | %{_mandir}/man3/*.3*
|
|---|
| 78 |
|
|---|
| 79 | %changelog
|
|---|
| 80 | * Thu Mar 13 2018 Elbert Pol <elbert.pol@gmail.com> - 0.33-1
|
|---|
| 81 | - initial rpm for OS2
|
|---|