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