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