]>
Commit | Line | Data |
---|---|---|
249eae50 JB |
1 | # |
2 | # Conditional build: | |
27bf9897 | 3 | %bcond_without tests # do not perform "make test" |
f807e198 | 4 | |
eade7ffc | 5 | %define pdir Math |
6 | %define pnam BigInt-Constant | |
f807e198 | 7 | %include /usr/lib/rpm/macros.perl |
249eae50 | 8 | Summary: Math::BigInt::Constant - arbitrary sized constant integers |
203dcca1 | 9 | Summary(pl.UTF-8): Math::BigInt::Constant - stałe całkowite o dowolnym rozmiarze |
249eae50 | 10 | Name: perl-Math-BigInt-Constant |
23f6dbfe | 11 | Version: 1.08 |
12 | Release: 1 | |
2ca9b563 | 13 | # same as perl |
249eae50 JB |
14 | License: GPL v1+ or Artistic |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
23f6dbfe | 17 | # Source0-md5: a62d900bcbb2ea84cfb69a557d4bf0a8 |
f807e198 | 18 | URL: http://search.cpan.org/dist/Math-BigInt-Constant/ |
249eae50 | 19 | BuildRequires: perl(Math::BigFloat) >= 1.26 |
23f6dbfe | 20 | BuildRequires: perl-Math-BigInt >= 1.74 |
0e50fa3c | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
249eae50 | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
249eae50 | 23 | Requires: perl(Math::BigFloat) >= 1.26 |
23f6dbfe | 24 | Requires: perl-Math-BigInt >= 1.74 |
249eae50 JB |
25 | BuildArch: noarch |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | This module lets you define constant BigInts on a per-object basis. | |
30 | The usual "use Math::BigInt ':constant'" will catch all integer | |
31 | constants in the script at compile time, but will not let you create | |
32 | constant values on the fly, nor work for strings and/or floating point | |
33 | constants like "1e5". | |
34 | ||
0af4c434 JR |
35 | %description -l pl.UTF-8 |
36 | Ten moduł pozwala definiować stałe BigInty dla każdego obiektu. Zwykłe | |
37 | "use Math::BigInt ':constant'" wyłapie wszystkie stałe całkowite w | |
38 | skrypcie w czasie kompilacji, ale nie pozwoli na tworzenie stałych | |
39 | wartości w locie, ani nie będzie działać z łańcuchami czy stałymi | |
249eae50 JB |
40 | zmiennoprzecinkowymi typu "1e5". |
41 | ||
42 | %prep | |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
45 | %build | |
46 | %{__perl} Makefile.PL \ | |
47 | INSTALLDIRS=vendor | |
249eae50 JB |
48 | %{__make} |
49 | ||
27bf9897 | 50 | %{?with_tests:%{__make} test} |
249eae50 JB |
51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
23f6dbfe | 63 | %doc BUGS CHANGES LICENSE README TODO |
64 | %{perl_vendorlib}/Math/BigFloat/Constant.pm | |
249eae50 JB |
65 | %{perl_vendorlib}/Math/BigInt/Constant.pm |
66 | %{_mandir}/man3/* |