[5844] | 1 | #TODO: BR: Test::Pod::No404s when available |
---|
| 2 | #TODO: BR: Test::Pod::LinkCheck when available |
---|
| 3 | |
---|
| 4 | Name: perl-Class-Load-XS |
---|
[9176] | 5 | Version: 0.09 |
---|
[5844] | 6 | Release: 1%{?_dist_release} |
---|
| 7 | Summary: XS implementation of parts of Class::Load |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | License: Artistic 2.0 |
---|
| 10 | URL: http://search.cpan.org/dist/Class-Load-XS/ |
---|
| 11 | Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Load-XS-%{version}.tar.gz |
---|
[9176] | 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[5844] | 14 | # =================================================================== |
---|
| 15 | # Module build requirements |
---|
| 16 | # =================================================================== |
---|
[9176] | 17 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
[5844] | 18 | BuildRequires: perl(Module::Build) |
---|
| 19 | # =================================================================== |
---|
| 20 | # Module requirements |
---|
| 21 | # =================================================================== |
---|
[9176] | 22 | BuildRequires: perl(Class::Load) >= 0.20 |
---|
[5844] | 23 | # =================================================================== |
---|
| 24 | # Regular test suite requirements |
---|
| 25 | # =================================================================== |
---|
| 26 | BuildRequires: perl(constant) |
---|
| 27 | BuildRequires: perl(Module::Implementation) >= 0.04 |
---|
| 28 | BuildRequires: perl(Test::Fatal) |
---|
[9176] | 29 | BuildRequires: perl(Test::More) >= 0.88 |
---|
[5844] | 30 | BuildRequires: perl(Test::Requires) |
---|
| 31 | BuildRequires: perl(Test::Without::Module) |
---|
| 32 | BuildRequires: perl(version) |
---|
| 33 | # =================================================================== |
---|
| 34 | # Author/Release test requirements |
---|
| 35 | # =================================================================== |
---|
[9176] | 36 | #BuildRequires: perl(Test::CPAN::Changes) |
---|
[5844] | 37 | BuildRequires: perl(Test::EOL) |
---|
| 38 | BuildRequires: perl(Test::NoTabs) |
---|
| 39 | BuildRequires: perl(Test::Pod) |
---|
| 40 | # =================================================================== |
---|
| 41 | # Runtime requirements |
---|
| 42 | # =================================================================== |
---|
| 43 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 44 | Requires: perl(Class::Load) >= 0.15 |
---|
| 45 | |
---|
| 46 | %{?perl_default_filter} |
---|
| 47 | |
---|
| 48 | %description |
---|
| 49 | This module provides an XS implementation for portions of Class::Load. |
---|
| 50 | See Class::Load for API details. |
---|
| 51 | |
---|
| 52 | %prep |
---|
| 53 | %setup -q -n Class-Load-XS-%{version} |
---|
| 54 | |
---|
| 55 | %build |
---|
[9176] | 56 | perl Makefile.PL INSTALLDIRS=vendor optimize="%{optflags}" |
---|
| 57 | make %{?_smp_mflags} |
---|
[5844] | 58 | |
---|
[9176] | 59 | |
---|
[5844] | 60 | %install |
---|
[9176] | 61 | rm -rf %{buildroot} |
---|
| 62 | make pure_install DESTDIR=%{buildroot} |
---|
| 63 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
[5844] | 64 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
| 65 | %{_fixperms} %{buildroot} |
---|
| 66 | |
---|
| 67 | %check |
---|
[9176] | 68 | RELEASE_TESTING=1 make test |
---|
[5844] | 69 | |
---|
[9176] | 70 | %clean |
---|
| 71 | rm -rf %{buildroot} |
---|
| 72 | |
---|
[5844] | 73 | %files |
---|
| 74 | %doc Changes LICENSE README |
---|
| 75 | %{perl_vendorarch}/auto/Class/ |
---|
| 76 | %{perl_vendorarch}/Class/ |
---|
| 77 | %{_mandir}/man3/Class::Load::XS.3pm* |
---|
| 78 | |
---|
| 79 | %changelog |
---|
[9176] | 80 | * Sun Dec 21 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.09-1 |
---|
| 81 | - updated to 0.09 |
---|
| 82 | - built with perl-5.16.3 |
---|
| 83 | |
---|
[5844] | 84 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.04-1 |
---|
| 85 | - initial package for Vine Linux |
---|
| 86 | |
---|
| 87 | * Thu Feb 9 2012 Paul Howarth <paul@city-fan.org> - 0.04-1 |
---|
| 88 | - Update to 0.04: |
---|
| 89 | - Some small test changes for the latest Module::Implementation and |
---|
| 90 | Class::Load |
---|
| 91 | - Bump Class::Load version requirement to 0.15 |
---|
| 92 | - BR: perl(constant), perl(Module::Implementation) ≥ 0.04, |
---|
| 93 | perl(Test::Requires), perl(Test::Without::Module) and perl(version) for test |
---|
| 94 | suite |
---|
| 95 | |
---|
| 96 | * Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 0.03-2 |
---|
| 97 | - Rebuild for gcc 4.7 in Rawhide |
---|
| 98 | |
---|
| 99 | * Fri Nov 18 2011 Paul Howarth <paul@city-fan.org> - 0.03-1 |
---|
| 100 | - Update to 0.03: |
---|
| 101 | - Explicitly include Test::Fatal as a test prerequisite (CPAN RT#72493) |
---|
| 102 | |
---|
| 103 | * Wed Nov 16 2011 Paul Howarth <paul@city-fan.org> - 0.02-2 |
---|
| 104 | - Sanitize spec for Fedora submission |
---|
| 105 | |
---|
| 106 | * Wed Nov 16 2011 Paul Howarth <paul@city-fan.org> - 0.02-1 |
---|
| 107 | - Initial RPM version |
---|