[5844] | 1 | # MRO is part of the Perl core since 5.9.5 |
---|
| 2 | %global mro_in_core %(perl -e 'print $] > 5.009005 ? 1 : 0;') |
---|
| 3 | |
---|
| 4 | Name: perl-MRO-Compat |
---|
[12120] | 5 | Version: 0.13 |
---|
[5844] | 6 | Release: 1%{?_dist_release} |
---|
| 7 | Summary: Mro::* interface compatibility for Perls < 5.9.5 |
---|
| 8 | License: GPL+ or Artistic |
---|
| 9 | Group: Development/Libraries |
---|
| 10 | URL: http://search.cpan.org/dist/MRO-Compat/ |
---|
| 11 | Source0: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/MRO-Compat-%{version}.tar.gz |
---|
[9143] | 12 | |
---|
[12120] | 13 | Vendor: Project Vine |
---|
| 14 | Distribution: Vine Linux |
---|
| 15 | |
---|
[9143] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[5844] | 17 | BuildArch: noarch |
---|
| 18 | # Build |
---|
[12120] | 19 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
[5844] | 20 | # Module |
---|
| 21 | %if ! %{mro_in_core} |
---|
[12120] | 22 | BuildRequires: perl(Class::C3) |
---|
| 23 | BuildRequires: perl(Class::C3::XS) |
---|
[5844] | 24 | %endif |
---|
| 25 | # Test |
---|
[12120] | 26 | BuildRequires: perl(Test::More) |
---|
[5844] | 27 | BuildRequires: perl(Test::Pod) |
---|
| 28 | BuildRequires: perl(Test::Pod::Coverage) |
---|
| 29 | # Runtime |
---|
| 30 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 31 | %if ! %{mro_in_core} |
---|
[12120] | 32 | Requires: perl(Class::C3) |
---|
| 33 | Requires: perl(Class::C3::XS) |
---|
[5844] | 34 | %endif |
---|
| 35 | |
---|
| 36 | %description |
---|
| 37 | The "mro" namespace provides several utilities for dealing with method |
---|
| 38 | resolution order and method caching in general in Perl 5.9.5 and higher. |
---|
| 39 | This module provides those interfaces for earlier versions of Perl (back |
---|
| 40 | to 5.6.0 anyways). |
---|
| 41 | |
---|
| 42 | It is a harmless no-op to use this module on 5.9.5+. That is to say, |
---|
| 43 | code which properly uses MRO::Compat will work unmodified on both older |
---|
| 44 | Perls and 5.9.5+. |
---|
| 45 | |
---|
| 46 | If you're writing a piece of software that would like to use the parts |
---|
| 47 | of 5.9.5+'s mro:: interfaces that are supported here, and you want |
---|
| 48 | compatibility with older Perls, this is the module for you. |
---|
| 49 | |
---|
| 50 | %prep |
---|
| 51 | %setup -q -n MRO-Compat-%{version} |
---|
| 52 | |
---|
| 53 | # Fix script interpreter |
---|
| 54 | perl -pi -e 's|^#!./perl|#!/usr/bin/perl|' t/15pkg_gen.t |
---|
| 55 | |
---|
| 56 | %build |
---|
| 57 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 58 | make %{?_smp_mflags} |
---|
| 59 | |
---|
| 60 | %install |
---|
| 61 | rm -rf %{buildroot} |
---|
| 62 | make pure_install DESTDIR=%{buildroot} |
---|
| 63 | find %{buildroot} -type f -name .packlist -exec rm -f {} \; |
---|
| 64 | find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null |
---|
| 65 | %{_fixperms} %{buildroot} |
---|
| 66 | |
---|
| 67 | %check |
---|
| 68 | make test |
---|
| 69 | |
---|
| 70 | %clean |
---|
| 71 | rm -rf %{buildroot} |
---|
| 72 | |
---|
| 73 | %files |
---|
| 74 | %defattr(-,root,root,-) |
---|
| 75 | %doc ChangeLog README t/ |
---|
| 76 | %{perl_vendorlib}/MRO/ |
---|
| 77 | %{_mandir}/man3/MRO::Compat.3pm* |
---|
| 78 | |
---|
| 79 | %changelog |
---|
[12120] | 80 | * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.13-1 |
---|
| 81 | - new upstream release. |
---|
| 82 | - rebuilt with perl-5.26. |
---|
| 83 | |
---|
[9143] | 84 | * Wed Dec 10 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.12-1 |
---|
| 85 | - updated to 0.12 |
---|
| 86 | - built with perl 5.16.3 |
---|
| 87 | |
---|
[5844] | 88 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.11-1 |
---|
| 89 | - initial build for Vine Linux |
---|
| 90 | |
---|
| 91 | * Thu Jan 26 2012 Paul Howarth <paul@city-fan.org> - 0.11-9 |
---|
| 92 | - Spec clean-up: |
---|
| 93 | - Only require Class::C3 with perl < 5.9.5 |
---|
| 94 | - Require Class::C3::XS for performance and consistency, but only with |
---|
| 95 | perl < 5.9.5 |
---|
| 96 | - Use DESTDIR rather than PERL_INSTALL_ROOT |
---|
| 97 | - Make %%files list more explicit |
---|
| 98 | - Classify buildreqs by build/module/test |
---|
| 99 | - Don't use macros for commands |
---|
| 100 | - Use tabs |
---|
| 101 | |
---|
| 102 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-8 |
---|
| 103 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 104 | |
---|
| 105 | * Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.11-7 |
---|
| 106 | - Perl mass rebuild |
---|
| 107 | |
---|
| 108 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-6 |
---|
| 109 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 110 | |
---|
| 111 | * Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.11-5 |
---|
| 112 | - Rebuild to fix problems with vendorarch/lib (#661697) |
---|
| 113 | |
---|
| 114 | * Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.11-4 |
---|
| 115 | - Mass rebuild with perl-5.12.0 |
---|
| 116 | |
---|
| 117 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.11-3 |
---|
| 118 | - Rebuild against perl 5.10.1 |
---|
| 119 | |
---|
| 120 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2 |
---|
| 121 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 122 | |
---|
| 123 | * Tue Jun 02 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.11-1 |
---|
| 124 | - Auto-update to 0.11 (by cpan-spec-update 0.01) |
---|
| 125 | - Altered br on perl(ExtUtils::MakeMaker) (0 => 6.42) |
---|
| 126 | - Altered br on perl(Class::C3) (0.19 => 0.20) |
---|
| 127 | |
---|
| 128 | * Thu Apr 02 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.10-1 |
---|
| 129 | - Update to 0.10 |
---|
| 130 | |
---|
| 131 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09-2 |
---|
| 132 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 133 | |
---|
| 134 | * Sat Jun 28 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.09 |
---|
| 135 | - Update to 0.09 |
---|
| 136 | |
---|
| 137 | * Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> - 0.07-1 |
---|
| 138 | - Update to 0.07 |
---|
| 139 | |
---|
| 140 | * Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-6 |
---|
| 141 | - Rebuild for new perl |
---|
| 142 | |
---|
| 143 | * Thu Dec 06 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-5 |
---|
| 144 | - Bump |
---|
| 145 | |
---|
| 146 | * Wed Dec 05 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-4 |
---|
| 147 | - Update INstall -> install |
---|
| 148 | |
---|
| 149 | * Wed Dec 05 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-3 |
---|
| 150 | - Add Test::Pod deps |
---|
| 151 | |
---|
| 152 | * Tue Dec 04 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-2 |
---|
| 153 | - Make Class::C3 dep explicit |
---|
| 154 | |
---|
| 155 | * Tue Sep 18 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-1 |
---|
| 156 | - Specfile autogenerated by cpanspec 1.71 |
---|