]>
Commit | Line | Data |
---|---|---|
0cd367bf | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
14a7728f | 5 | %define pdir Math |
6 | %define pnam BigInteger | |
6d8cc556 JB |
7 | Summary: Math::BigInteger - arbitrary length integer extension module for Perl |
8 | Summary(pl.UTF-8): Math::BigInteger - moduł rozszerzenia liczb całkowitych dowolnej długości | |
ec52f2cf | 9 | Name: perl-Math-BigInteger |
5ab415e6 | 10 | Version: 1.01 |
9a267c26 | 11 | Release: 21 |
58667b39 | 12 | # if used in a product, Systemics should be given attribution |
13 | License: free use, distributable | |
ec52f2cf | 14 | Group: Development/Languages/Perl |
6d8cc556 | 15 | Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz |
5ab415e6 | 16 | # Source0-md5: a4aa79e070f3f5f8e7f01443fdc03b8e |
b3d12359 | 17 | Patch0: %{name}-Fputc_to_fputc.patch |
6d8cc556 | 18 | URL: http://search.cpan.org/dist/Math-BigInteger/ |
a56cbe03 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
4e123771 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
744e13ac | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ec52f2cf | 22 | |
23 | %description | |
ac8fffb9 | 24 | Math::BigInteger module gives access to Eric Young's bignum library. |
6d8cc556 | 25 | This provides a faster alternative to the Math::BigInt library. |
ec52f2cf | 26 | |
aa076c67 JR |
27 | %description -l pl.UTF-8 |
28 | Moduł Math::BigInteger umożliwia dostęp do biblioteki bignum Erica | |
6d8cc556 | 29 | Younga. Jest to szybsza alternatywa dla biblioteki Math::BigInt. |
ec52f2cf | 30 | |
31 | %prep | |
4d78445f | 32 | %setup -q -n %{pdir}-%{pnam}-%{version} |
b3d12359 | 33 | %patch0 -p0 |
ec52f2cf | 34 | |
35 | %build | |
4e123771 | 36 | %{__perl} Makefile.PL \ |
f8ac4351 | 37 | INSTALLDIRS=vendor |
0cd367bf | 38 | %{__make} \ |
60efccc3 | 39 | CC="%{__cc}" \ |
0cd367bf | 40 | OPTIMIZE="%{rpmcflags}" |
41 | ||
42 | %{?with_tests:%{__make} test} | |
ec52f2cf | 43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
ec52f2cf | 46 | |
0cd367bf | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
ec52f2cf | 49 | |
ec52f2cf | 50 | %clean |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
58667b39 | 55 | %doc README COPYRIGHT |
4e123771 | 56 | %{perl_vendorarch}/Math/BigInteger.pm |
57 | %dir %{perl_vendorarch}/auto/Math/BigInteger | |
4e123771 | 58 | %attr(755,root,root) %{perl_vendorarch}/auto/Math/BigInteger/BigInteger.so |
ec52f2cf | 59 | %{_mandir}/man3/* |