[5844] | 1 | #TODO: BR: Test::Pod::No404s when available |
---|
| 2 | #TODO: BR: Test::Pod::LinkCheck when available |
---|
| 3 | |
---|
| 4 | Name: perl-Class-Load-XS |
---|
| 5 | Version: 0.04 |
---|
| 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 |
---|
| 12 | # =================================================================== |
---|
| 13 | # Module build requirements |
---|
| 14 | # =================================================================== |
---|
| 15 | BuildRequires: perl(Module::Build) |
---|
| 16 | # =================================================================== |
---|
| 17 | # Module requirements |
---|
| 18 | # =================================================================== |
---|
| 19 | BuildRequires: perl(Class::Load) >= 0.15 |
---|
| 20 | # =================================================================== |
---|
| 21 | # Regular test suite requirements |
---|
| 22 | # =================================================================== |
---|
| 23 | BuildRequires: perl(constant) |
---|
| 24 | BuildRequires: perl(Module::Implementation) >= 0.04 |
---|
| 25 | BuildRequires: perl(Test::Fatal) |
---|
| 26 | BuildRequires: perl(Test::More) |
---|
| 27 | BuildRequires: perl(Test::Requires) |
---|
| 28 | BuildRequires: perl(Test::Without::Module) |
---|
| 29 | BuildRequires: perl(version) |
---|
| 30 | # =================================================================== |
---|
| 31 | # Author/Release test requirements |
---|
| 32 | # =================================================================== |
---|
| 33 | BuildRequires: perl(Test::CPAN::Changes) |
---|
| 34 | BuildRequires: perl(Test::EOL) |
---|
| 35 | BuildRequires: perl(Test::NoTabs) |
---|
| 36 | BuildRequires: perl(Test::Pod) |
---|
| 37 | # =================================================================== |
---|
| 38 | # Runtime requirements |
---|
| 39 | # =================================================================== |
---|
| 40 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 41 | Requires: perl(Class::Load) >= 0.15 |
---|
| 42 | |
---|
| 43 | %{?perl_default_filter} |
---|
| 44 | |
---|
| 45 | %description |
---|
| 46 | This module provides an XS implementation for portions of Class::Load. |
---|
| 47 | See Class::Load for API details. |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | %setup -q -n Class-Load-XS-%{version} |
---|
| 51 | |
---|
| 52 | %build |
---|
| 53 | perl Build.PL installdirs=vendor optimize="%{optflags}" |
---|
| 54 | ./Build |
---|
| 55 | |
---|
| 56 | %install |
---|
| 57 | ./Build install destdir=%{buildroot} create_packlist=0 |
---|
| 58 | find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' |
---|
| 59 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
| 60 | %{_fixperms} %{buildroot} |
---|
| 61 | |
---|
| 62 | %check |
---|
| 63 | RELEASE_TESTING=1 ./Build test |
---|
| 64 | |
---|
| 65 | %files |
---|
| 66 | %doc Changes LICENSE README |
---|
| 67 | %{perl_vendorarch}/auto/Class/ |
---|
| 68 | %{perl_vendorarch}/Class/ |
---|
| 69 | %{_mandir}/man3/Class::Load::XS.3pm* |
---|
| 70 | |
---|
| 71 | %changelog |
---|
| 72 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.04-1 |
---|
| 73 | - initial package for Vine Linux |
---|
| 74 | |
---|
| 75 | * Thu Feb 9 2012 Paul Howarth <paul@city-fan.org> - 0.04-1 |
---|
| 76 | - Update to 0.04: |
---|
| 77 | - Some small test changes for the latest Module::Implementation and |
---|
| 78 | Class::Load |
---|
| 79 | - Bump Class::Load version requirement to 0.15 |
---|
| 80 | - BR: perl(constant), perl(Module::Implementation) ≥ 0.04, |
---|
| 81 | perl(Test::Requires), perl(Test::Without::Module) and perl(version) for test |
---|
| 82 | suite |
---|
| 83 | |
---|
| 84 | * Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 0.03-2 |
---|
| 85 | - Rebuild for gcc 4.7 in Rawhide |
---|
| 86 | |
---|
| 87 | * Fri Nov 18 2011 Paul Howarth <paul@city-fan.org> - 0.03-1 |
---|
| 88 | - Update to 0.03: |
---|
| 89 | - Explicitly include Test::Fatal as a test prerequisite (CPAN RT#72493) |
---|
| 90 | |
---|
| 91 | * Wed Nov 16 2011 Paul Howarth <paul@city-fan.org> - 0.02-2 |
---|
| 92 | - Sanitize spec for Fedora submission |
---|
| 93 | |
---|
| 94 | * Wed Nov 16 2011 Paul Howarth <paul@city-fan.org> - 0.02-1 |
---|
| 95 | - Initial RPM version |
---|