]> git.pld-linux.org Git - packages/perl-Math-GMP.git/blame - perl-Math-GMP.spec
- release 3
[packages/perl-Math-GMP.git] / perl-Math-GMP.spec
CommitLineData
819a3195
JB
1#
2# Conditional build:
8f074c76 3%bcond_without tests # do not perform "make test"
819a3195
JB
4#
5%include /usr/lib/rpm/macros.perl
8f40f919 6%define pdir Math
7%define pnam GMP
cf173634 8Summary: Math::GMP Perl module - high speed arbitrary size integer math
f5f08e44 9Summary(pl.UTF-8): Moduł Perla Math::GMP - szybka arytmetyka liczb całkowitych o dowolnym rozmiarze
819a3195 10Name: perl-Math-GMP
203855cd 11Version: 2.04
211d6f39 12Release: 3
819a3195
JB
13License: LGPL
14Group: Development/Languages/Perl
937aa30f 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
203855cd 16# Source0-md5: 291e5847986c7591cd70c1788c979a98
243e7762 17BuildRequires: perl-devel >= 1:5.8.0
819a3195 18BuildRequires: gmp-devel
5ca700ef 19BuildRequires: rpmbuild(macros) >= 1.213
beb32ec3 20BuildRequires: rpm-perlprov >= 4.1-13
819a3195
JB
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Math::GMP gives you access to the fast GMP library for fast big
25integer math.
26
199b19b9
JR
27%description -l pl.UTF-8
28Math::GMP daje dostęp do szybkiej biblioteki GMP dla szybkich
29obliczeń na dużych liczbach całkowitych.
819a3195
JB
30
31%prep
32%setup -q -n %{pdir}-%{pnam}-%{version}
33
5ca700ef 34%ifarch %{x8664} alpha ia64 ppc64 s390x sparc64
3689ac00
JB
35# original reference values expect 32-bit long
36%{__perl} -pi -e 's/^\+9999999999(9*):[0-9]+$/+9999999999$1:9999999999$1/' t/gmppm.t
37%endif
38
819a3195 39%build
beb32ec3 40%{__perl} Makefile.PL \
24a828ac 41 INSTALLDIRS=vendor
8f074c76 42%{__make} \
abf9dac3 43 CC="%{__cc}" \
8f074c76 44 OPTIMIZE="%{rpmcflags}"
819a3195 45
8f074c76 46%{?with_tests:%{__make} test}
819a3195
JB
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
59%doc Changes LICENSE README
beb32ec3 60%{perl_vendorarch}/Math/GMP.pm
61%dir %{perl_vendorarch}/auto/Math/GMP
62%{perl_vendorarch}/auto/Math/GMP/GMP.bs
63%attr(755,root,root) %{perl_vendorarch}/auto/Math/GMP/GMP.so
64%{perl_vendorarch}/auto/Math/GMP/autosplit.ix
819a3195 65%{_mandir}/man3/*
This page took 0.08041 seconds and 4 git commands to generate.