]>
Commit | Line | Data |
---|---|---|
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 | 7 | Summary: Math::GMP Perl module - high speed arbitrary size integer math |
f5f08e44 | 8 | Summary(pl.UTF-8): Moduł Perla Math::GMP - szybka arytmetyka liczb całkowitych o dowolnym rozmiarze |
819a3195 | 9 | Name: perl-Math-GMP |
77cddff5 | 10 | Version: 2.20 |
1a60e677 | 11 | Release: 4 |
488960c6 | 12 | License: LGPL v2+ |
819a3195 | 13 | Group: Development/Languages/Perl |
488960c6 | 14 | Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz |
77cddff5 | 15 | # Source0-md5: 817f68db8aa05ca82d0da6a6a5f02f03 |
488960c6 | 16 | URL: http://search.cpan.org/dist/Math-GMP/ |
819a3195 | 17 | BuildRequires: gmp-devel |
77cddff5 | 18 | BuildRequires: perl-Alien-GMP |
f0ff53b0 | 19 | BuildRequires: perl-Devel-CheckLib |
77cddff5 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
beb32ec3 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
488960c6 | 22 | BuildRequires: rpmbuild(macros) >= 1.213 |
819a3195 JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Math::GMP gives you access to the fast GMP library for fast big | |
27 | integer math. | |
28 | ||
199b19b9 JR |
29 | %description -l pl.UTF-8 |
30 | Math::GMP daje dostęp do szybkiej biblioteki GMP dla szybkich | |
31 | obliczeń 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 | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -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/* |