]> git.pld-linux.org Git - SPECS.git/blob - perl-Math-Fleximal.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / perl-Math-Fleximal.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Math
6 %define         pnam    Fleximal
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
10 Version:        0.06
11 Release:        2
12 # same as perl
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
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
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.
36
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.
49
50 %prep
51 %setup -q -n %{pdir}-%{pnam}-%{version}
52
53 %build
54 %{__perl} Build.PL \
55         installdirs=vendor \
56         destdir=$RPM_BUILD_ROOT
57 ./Build
58
59 %{?with_tests:./Build test}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 ./Build install
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc Changes README
72 %{perl_vendorlib}/Math/Fleximal.pm
73 %{_mandir}/man3/*
This page took 0.08498 seconds and 3 git commands to generate.