]> git.pld-linux.org Git - packages/perl-Math-GMP.git/blame - perl-Math-GMP.spec
- updated to 2.17 (note: update do 2.19 requires packaging new modules)
[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
f0ff53b0
MK
11Version: 2.17
12Release: 1
488960c6 13License: LGPL v2+
819a3195 14Group: Development/Languages/Perl
488960c6 15Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
f0ff53b0 16# Source0-md5: f06e26dbf1a4836b55c47252ae66e33d
488960c6 17URL: http://search.cpan.org/dist/Math-GMP/
819a3195 18BuildRequires: gmp-devel
488960c6 19BuildRequires: perl-devel >= 1:5.8.0
f0ff53b0 20BuildRequires: perl-Devel-CheckLib
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)
61%doc Changes LICENSE README
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.039075 seconds and 4 git commands to generate.