3 %bcond_without tests # do not perform "make test"
7 Summary: Math::Fleximal - Integers with flexible representations
8 Summary(pl.UTF-8): Math::Fleximal - liczby całkowite z elastyczną reprezentacją
9 Name: perl-Math-Fleximal
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 885a886fd7d9e4e21dab121348ff39ac
17 URL: http://search.cpan.org/dist/Math-Fleximal/
18 BuildRequires: perl-Module-Build
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This is a package for doing integer arithmetic while using a different
26 base representation than normal. In base n arithmetic you have n
27 symbols which have a representation. Author was going to call them
28 "glyphs", but being text strings they are not really. On Tye McQueen's
29 whimsical suggestion the author settled on the name Math::Fleximal,
30 the set of text representations is called a "flex", and the
31 representation of individual digits are the "flecks". These names are
32 somewhat unofficial... This allows you to do basic arithmetic using
33 whatever digits you want, and to convert from one to another. Like
34 Math::BigInt it is able to handle very large numbers, though
35 performance is not very good.
37 %description -l pl.UTF-8
38 Ten pakiet służy do arytmetyki na liczbach całkowitych przy użyciu
39 innej niż normalna reprezentacji. W arytmetyce o podstawie n jest n
40 symboli mających reprezentację. Autor zamierzał nazwać je "glifami",
41 ale jako że są to łańcuchy tekstowe, nie była to najlepsza nazwa. Po
42 dziwnej sugestii Tye McQueena moduł został nazwany Math::Fleximal,
43 zbiór tekstowych reprezentacji "fleksem", a reprezentacje pojedynczych
44 cyfr "flekami". Te nazwy nie są oficjalne... Moduł pozwala na
45 wykonywanie podstawowych działań arytmetycznych przy użyciu dowolnych
46 cyfr i przeliczanie ich między różnymi reprezentacjami. Podobnie do
47 Math::BigInt moduł może liczyć na bardzo dużych liczbach, ale
48 wydajność nie jest najlepsza.
51 %setup -q -n %{pdir}-%{pnam}-%{version}
56 destdir=$RPM_BUILD_ROOT
59 %{?with_tests:./Build test}
62 rm -rf $RPM_BUILD_ROOT
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %{perl_vendorlib}/Math/Fleximal.pm