31fc207
#TODO: BR: Test::Pod::No404s when available
31fc207
#TODO: BR: Test::Pod::LinkCheck when available
31fc207
31fc207
Name:		perl-Class-Load-XS
917540e
Version:	0.06
917540e
Release:	1%{?dist}
31fc207
Summary:	XS implementation of parts of Class::Load
31fc207
Group:		Development/Libraries
31fc207
License:	Artistic 2.0
31fc207
URL:		http://search.cpan.org/dist/Class-Load-XS/
31fc207
Source0:	http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Load-XS-%{version}.tar.gz
31fc207
# ===================================================================
31fc207
# Module build requirements
31fc207
# ===================================================================
31fc207
BuildRequires:	perl(Module::Build)
31fc207
# ===================================================================
31fc207
# Module requirements
31fc207
# ===================================================================
917540e
BuildRequires:	perl(Class::Load) >= 0.20
31fc207
# ===================================================================
31fc207
# Regular test suite requirements
31fc207
# ===================================================================
3f3181d
BuildRequires:	perl(constant)
3f3181d
BuildRequires:	perl(Module::Implementation) >= 0.04
31fc207
BuildRequires:	perl(Test::Fatal)
31fc207
BuildRequires:	perl(Test::More)
3f3181d
BuildRequires:	perl(Test::Requires)
3f3181d
BuildRequires:	perl(Test::Without::Module)
3f3181d
BuildRequires:	perl(version)
31fc207
# ===================================================================
31fc207
# Author/Release test requirements
31fc207
# ===================================================================
31fc207
BuildRequires:	perl(Test::CPAN::Changes)
31fc207
BuildRequires:	perl(Test::EOL)
31fc207
BuildRequires:	perl(Test::NoTabs)
31fc207
BuildRequires:	perl(Test::Pod)
31fc207
# ===================================================================
31fc207
# Runtime requirements
31fc207
# ===================================================================
31fc207
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
31fc207
31fc207
%{?perl_default_filter}
31fc207
31fc207
%description
31fc207
This module provides an XS implementation for portions of Class::Load.
31fc207
See Class::Load for API details.
31fc207
31fc207
%prep
31fc207
%setup -q -n Class-Load-XS-%{version}
31fc207
31fc207
%build
31fc207
perl Build.PL installdirs=vendor optimize="%{optflags}"
31fc207
./Build
31fc207
31fc207
%install
31fc207
./Build install destdir=%{buildroot} create_packlist=0
31fc207
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
31fc207
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
31fc207
%{_fixperms} %{buildroot}
31fc207
31fc207
%check
31fc207
RELEASE_TESTING=1 ./Build test
31fc207
31fc207
%files
31fc207
%doc Changes LICENSE README
31fc207
%{perl_vendorarch}/auto/Class/
31fc207
%{perl_vendorarch}/Class/
31fc207
%{_mandir}/man3/Class::Load::XS.3pm*
31fc207
31fc207
%changelog
917540e
* Mon Oct  8 2012 Paul Howarth <paul@city-fan.org> - 0.06-1
917540e
- Update to 0.06:
917540e
  - Require Class::Load 0.20 in the code, not just the distro metadata
917540e
    (CPAN RT#80002)
917540e
  - Weird classes with either an ISA or VERSION constant would cause the XS to
917540e
    blow up badly (CPAN RT#79998)
917540e
  - Fixed some broken logic that lead to a segfault from the
917540e
    014-weird-constants.t test on some Perls (CPAN RT#80059)
917540e
- Bump perl(Class::Load) version requirement to 0.20
917540e
- Drop explicit requirement for perl(Class::Load), no longer needed
917540e
43f5e95
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-3
43f5e95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
43f5e95
71f98bc
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 0.04-2
71f98bc
- Perl 5.16 rebuild
71f98bc
3f3181d
* Thu Feb  9 2012 Paul Howarth <paul@city-fan.org> - 0.04-1
3f3181d
- Update to 0.04:
3f3181d
  - Some small test changes for the latest Module::Implementation and
3f3181d
    Class::Load
3f3181d
- Bump Class::Load version requirement to 0.15
3f3181d
- BR: perl(constant), perl(Module::Implementation) ≥ 0.04, 
3f3181d
  perl(Test::Requires), perl(Test::Without::Module) and perl(version) for test 
3f3181d
  suite
3f3181d
c660ad3
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 0.03-2
c660ad3
- Rebuild for gcc 4.7 in Rawhide
c660ad3
31fc207
* Fri Nov 18 2011 Paul Howarth <paul@city-fan.org> - 0.03-1
31fc207
- Update to 0.03:
31fc207
  - Explicitly include Test::Fatal as a test prerequisite (CPAN RT#72493)
31fc207
31fc207
* Wed Nov 16 2011 Paul Howarth <paul@city-fan.org> - 0.02-2
31fc207
- Sanitize spec for Fedora submission
31fc207
31fc207
* Wed Nov 16 2011 Paul Howarth <paul@city-fan.org> - 0.02-1
31fc207
- Initial RPM version