# # - Math::Calc::Units - # This spec file was automatically generated by cpan2rpm [ver: 2.027] # (ALT Linux revision) # The following arguments were used: # Math-Calc-Units-1.06.tar.gz # For more information on cpan2rpm please visit: http://perl.arix.com/ # %define module Math-Calc-Units %define m_distro Math-Calc-Units %define m_name Math::Calc::Units %define m_author_id unknown %define _enable_test 1 Name: perl-Math-Calc-Units Version: 1.07 Release: alt1.1 Summary: Human-readable unit-aware calculator License: Artistic Group: Development/Perl Url: http://www.cpan.org Packager: Dmitry Lebkov BuildArch: noarch Source: http://www.cpan.org/authors/id/S/SF/SFINK/Math-Calc-Units-1.07.tar.gz # Automatically added by buildreq on Thu May 01 2008 BuildRequires: perl-devel %description "Math::Calc::Units" is a simple calculator that keeps track of units. It currently handles combinations of byte sizes and duration only, although adding any other multiplicative types is easy. Any unknown type is treated as a unique user type (with some effort to map English plurals to their singular forms). The primary intended use is via the "ucalc" script that prints out all of the "readable" variants of a value. For example, "3 bytes" will only produce "3 byte", but "3 byte / sec" produces the original along with "180 byte / minute", "10.55 kilobyte / hour", etc. The "Math::Calc::Units" interface only provides for string-based computations, which could result in a large loss of precision for some applications. If you need the exact result, you may pass in an extra parameter 'exact' to "calc" or "convert", causing them to return a 2-element list containing the numerical result and a string describing the units of that result: my ($value, $units) = convert("10MB/sec", "GB/day"); (In scalar context, they just return the numeric value.) %prep %setup -q -n %m_distro-%version %build %perl_vendor_build %install %perl_vendor_install %files %_bindir/ucalc %perl_vendor_privlib/M* %changelog * Mon Nov 22 2010 Igor Vlasenko 1.07-alt1.1 - repair after perl 5.12 upgrade using girar-nmu * Tue Jul 13 2010 Igor Vlasenko 1.07-alt1 - automated CPAN update * Fri Sep 05 2008 Dmitry Lebkov 1.06-alt2 - list of packaged directories fixed * Thu May 01 2008 Dmitry Lebkov 1.06-alt1 - first build for ALT Linux Sisyphus