3 %bcond_without tests # do not perform "make test"
6 %define pnam BigInt-Constant
7 Summary: Math::BigInt::Constant - arbitrary sized constant integers
8 Summary(pl.UTF-8): Math::BigInt::Constant - stałe całkowite o dowolnym rozmiarze
9 Name: perl-Math-BigInt-Constant
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: a62d900bcbb2ea84cfb69a557d4bf0a8
17 URL: http://search.cpan.org/dist/Math-BigInt-Constant/
18 BuildRequires: perl(Math::BigFloat) >= 1.26
19 BuildRequires: perl-Math-BigInt >= 1.74
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 Requires: perl(Math::BigFloat) >= 1.26
23 Requires: perl-Math-BigInt >= 1.74
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module lets you define constant BigInts on a per-object basis.
29 The usual "use Math::BigInt ':constant'" will catch all integer
30 constants in the script at compile time, but will not let you create
31 constant values on the fly, nor work for strings and/or floating point
34 %description -l pl.UTF-8
35 Ten moduł pozwala definiować stałe BigInty dla każdego obiektu. Zwykłe
36 "use Math::BigInt ':constant'" wyłapie wszystkie stałe całkowite w
37 skrypcie w czasie kompilacji, ale nie pozwoli na tworzenie stałych
38 wartości w locie, ani nie będzie działać z łańcuchami czy stałymi
39 zmiennoprzecinkowymi typu "1e5".
42 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc BUGS CHANGES LICENSE README TODO
63 %{perl_vendorlib}/Math/BigFloat/Constant.pm
64 %{perl_vendorlib}/Math/BigInt/Constant.pm