Name: perl-Math-BaseCnv
Version: 1.4.75O6Pbr
Release: 2%{?dist}
Summary: Fast functions to CoNVert between number Bases
Group: Development/Libraries
License: GPLv2
URL: http://search.cpan.org/dist/Math-BaseCnv
Source0: http://search.cpan.org/CPAN/authors/id/P/PI/PIP/Math-BaseCnv-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: perl-Math-BaseCnv-makefile.patch
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
BaseCnv provides a few simple functions for converting between arbitrary
number bases. It is as fast as I currently know how to make it (of course
relying only on the lovely Perl). If you would rather utilize an object syntax
for number-base conversion, please see Ken Williams's
<Ken@Forum.Swarthmore.Edu> fine Math::BaseCalc module.
%prep
%setup -q -n Math-BaseCnv-%{version}
%patch1 -p0
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc CHANGES README ex
%{perl_vendorlib}/*
%{_mandir}/man3/Math::BaseCnv.3pm.gz
%changelog
* Fri Dec 21 2007 Xavier Bachelot <xavier@bachelot.org> - 1.4.75O6Pbr-2
- Clean up spec.
* Thu Aug 30 2007 Xavier Bachelot <xavier@bachelot.org> - 1.4.75O6Pbr-1
- Initial build.