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