%global pkg_name Math-Decimal %global pkg_version 0.004 %global rpm_pkg_version 0.004 %global rpm_pkg_release 1.n0i.2 Summary: Arithmetic in decimal Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/modules/by-module/Math/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(Module::Build) BuildRequires: perl(Params::Classify) BuildRequires: perl(Test::More) BuildRequires: perl(XSLoader) BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(parent) %description Math::Decimal performs basic arithmetic with arbitrary-precision numbers expressed in decimal in ordinary Perl strings. The numbers can be arbitrarily large, and can involve arbitrarily small fractions, and all results are exact. This differs from Perl's standard arithmetic, which is limited-precision binary (floating point) arithmetic. However, because Perl performs implicit conversions between strings and numbers, using decimal in the string form, it is extremely easy to exchange values between this module and Perl's native arithmetic. %prep %setup -q -n %{pkg_name}-%{pkg_version} [ -f Makefile.PL ] || cat < Makefile.PL use Module::Build::Compat; Module::Build::Compat->run_build_pl(args => \@ARGV); Module::Build::Compat->write_makefile(); EOF %build %{perl_build} %install %{perl_install} %files %defattr(-,root,root,-) %{perl_files} %doc Changes README %changelog * Mon Apr 02 2018 Marius Feraru - 0.004-1.n0i.2 - version 0.004 * Wed Jun 30 2010 Marius Feraru - 0.001-1.n0i.1 - initial packaging