Name: perl-CPANPLUS-Dist-Build
Version: 0.05
Release: 2%{?dist}
Summary: Module::Build extension for CPANPLUS
License: GPL or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/CPANPLUS-Dist-Build/
Source0: http://www.cpan.org/authors/id/K/KW/KWILLIAMS/CPANPLUS-Dist-Build-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# core
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::More)
# cpan
BuildRequires: perl(CPANPLUS) >= 0.072
BuildRequires: perl(IPC::Cmd) >= 0.23
BuildRequires: perl(Locale::Maketext::Simple)
BuildRequires: perl(Module::Build) >= 0.28
BuildRequires: perl(Module::Load::Conditional) >= 0.06
BuildRequires: perl(Module::Pluggable) >= 2.4
BuildRequires: perl(Params::Check) >= 0.22
# not picked up automatically for some reason...
Requires: perl(Module::Build) >= 0.28
%description
CPANPLUS::Dist::Build is a distribution class for Module::Build related
modules. Using this package, you can create, install and uninstall perl
modules. It inherits from CPANPLUS::Dist.
%prep
%setup -q -n CPANPLUS-Dist-Build-%{version}
find t/ -type f -name .hidden -exec rm -f {} \;
sed -i '/.*hidden/d' MANIFEST
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
%check
make test
# otherwise bits of the test run are packaged up in doc...
rm -rf t/dummy-perl/lib/perl5 t/dummy-cpanplus
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes README t/
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon May 28 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.05-2
- bump
* Sun May 13 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.05-1
- Specfile autogenerated by cpanspec 1.71.