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