]> git.pld-linux.org Git - packages/perl-Math-BigInt-GMP.git/blame - perl-Math-BigInt-GMP.spec
- perl req/prov fix
[packages/perl-Math-BigInt-GMP.git] / perl-Math-BigInt-GMP.spec
CommitLineData
4793e390
JB
1#
2# Conditional build:
aa36dada 3%bcond_without tests # do not perform "make test"
4793e390
JB
4#
5%include /usr/lib/rpm/macros.perl
e462768e 6%define pdir Math
7%define pnam BigInt-GMP
4793e390 8Summary: Math::BigInt::GMP - use the GMP library for Math::BigInt routines
006988d1 9Summary(pl.UTF-8): Math::BigInt::GMP - wykorzystanie biblioteki GMP do funkcji Math::BigInt
4793e390 10Name: perl-Math-BigInt-GMP
7b464fc6 11Version: 1.6001
fcc2fb45 12Release: 3
1b145397 13# same as perl
4793e390
JB
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
30181285 16Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
7b464fc6 17# Source0-md5: c1697f2f2aaa640faf56fbd268cd54c1
30181285 18URL: http://search.cpan.org/dist/Math-BigInt-GMP/
4793e390 19BuildRequires: gmp-devel
7b464fc6 20BuildRequires: perl-Math-BigInt >= 1.999801
4ac5f1c8 21BuildRequires: perl-devel >= 1:5.8.0
4793e390 22BuildRequires: rpm-perlprov >= 4.1-13
7b464fc6
JB
23%if %{with tests}
24BuildRequires: perl-Test-Simple >= 0.94
25%endif
26Requires: perl-Math-BigInt >= 1.999801
4793e390
JB
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30Math::BigInt::GMP provides support for big integer calculations via
31means of the GMP C-library. Math::BigInt::GMP now no longer uses
32Math::GMP, but provides it's own XS layer to access the GMP C-library.
33This cuts out another (perl sub routine) layer and also reduces the
34memory footprint by not loading Math::GMP and Carp at all.
35
89628c43
JR
36%description -l pl.UTF-8
37Math::BigInt::GMP dostarcza obsługę obliczeń na wielkich liczbach
38całkowitych z wykorzystaniem funkcjonalności biblioteki C GMP. Moduł
39ten już nie używa Math::GMP, ale dostarcza własną warstwę XS do
40odwoływania się do biblioteki GMP w C. Dzięki temu nie ma kolejnej
41warstwy (podprocedury Perla), a wykorzystanie pamięci jest mniejsze
42dzięki nie wczytywaniu modułów Math::GMP i Carp.
4793e390
JB
43
44%prep
45%setup -q -n %{pdir}-%{pnam}-%{version}
46
47%build
48%{__perl} Makefile.PL \
49 INSTALLDIRS=vendor
4793e390 50%{__make} \
d63d924f 51 CC="%{__cc}" \
4793e390
JB
52 OPTIMIZE="%{rpmcflags}"
53
aa36dada 54%{?with_tests:%{__make} test}
4793e390
JB
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
67%doc BUGS CHANGES CREDITS LICENSE README TODO
68%{perl_vendorarch}/Math/BigInt/GMP.pm
69%dir %{perl_vendorarch}/auto/Math/BigInt/GMP
4793e390 70%attr(755,root,root) %{perl_vendorarch}/auto/Math/BigInt/GMP/GMP.so
2a50c562 71%{_mandir}/man3/Math::BigInt::GMP.3pm*
This page took 0.235679 seconds and 4 git commands to generate.