diff --git a/.cvsignore b/.cvsignore index e69de29..a78089f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Math-BaseCnv-1.4.75O6Pbr.tgz diff --git a/perl-Math-BaseCnv-makefile.patch b/perl-Math-BaseCnv-makefile.patch new file mode 100644 index 0000000..c3414e8 --- /dev/null +++ b/perl-Math-BaseCnv-makefile.patch @@ -0,0 +1,10 @@ +--- Makefile.PL.orig 2007-08-30 14:19:34.000000000 +0200 ++++ Makefile.PL 2007-08-30 14:20:01.000000000 +0200 +@@ -8,6 +8,7 @@ + 'AUTHOR' => 'Pip Stuart ', + 'EXE_FILES' => [ + ], ++ 'PL_FILES' => {}, + 'PREREQ_PM' => { + 'Memoize' => 0, + 'Test' => 0, diff --git a/perl-Math-BaseCnv.spec b/perl-Math-BaseCnv.spec new file mode 100644 index 0000000..7188141 --- /dev/null +++ b/perl-Math-BaseCnv.spec @@ -0,0 +1,63 @@ +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 + 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 - 1.4.75O6Pbr-2 +- Clean up spec. +* Thu Aug 30 2007 Xavier Bachelot - 1.4.75O6Pbr-1 +- Initial build. diff --git a/sources b/sources index e69de29..853f1c3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +60d5fb31db63e3d7a9807b0df37c4a80 Math-BaseCnv-1.4.75O6Pbr.tgz