1 |
jquelin |
12861 |
%define upstream_name Math-Pari |
2 |
jquelin |
105674 |
%define upstream_version 2.01080605 |
3 |
jquelin |
12861 |
|
4 |
|
|
%define pari_version 2.3.3 |
5 |
|
|
|
6 |
jquelin |
105674 |
Name: perl-%{upstream_name} |
7 |
|
|
Version: %perl_convert_version %{upstream_version} |
8 |
umeabot |
369634 |
Release: %mkrel 3 |
9 |
jquelin |
105674 |
Epoch: 1 |
10 |
jquelin |
12861 |
|
11 |
jquelin |
105674 |
Summary: Perl interface to PARI |
12 |
|
|
License: GPLv2+ or Artistic |
13 |
|
|
Group: Development/Perl |
14 |
|
|
Url: http://search.cpan.org/dist/%{upstream_name} |
15 |
|
|
Source0: http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz |
16 |
|
|
Source1: ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/pari-%{pari_version}.tar.gz |
17 |
jquelin |
12861 |
|
18 |
jquelin |
105674 |
BuildRequires: perl(ExtUtils::MakeMaker) |
19 |
|
|
BuildRequires: perl-devel |
20 |
jquelin |
12861 |
%description |
21 |
|
|
This package is a Perl interface to famous library PARI for |
22 |
|
|
numerical/scientific/number-theoretic calculations. It allows use of |
23 |
|
|
most PARI functions as Perl functions, and (almost) seamless merging of |
24 |
|
|
PARI and Perl data. See ftp://megrez.math.u-bordeaux.fr/pub/pari for |
25 |
|
|
more information about PARI. |
26 |
|
|
|
27 |
|
|
%prep |
28 |
|
|
%setup -q -n %{upstream_name}-%{upstream_version} |
29 |
|
|
%setup -q -a 1 -n %{upstream_name}-%{upstream_version} |
30 |
|
|
|
31 |
|
|
%build |
32 |
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor paridir=pari-%{pari_version} < /dev/null |
33 |
|
|
%make CFLAGS="%{optflags}" |
34 |
|
|
|
35 |
|
|
%ifnarch x86_64 |
36 |
|
|
%check |
37 |
|
|
%{__make} test |
38 |
|
|
%endif |
39 |
|
|
|
40 |
|
|
%install |
41 |
|
|
rm -rf %{buildroot} |
42 |
|
|
%makeinstall_std |
43 |
|
|
|
44 |
|
|
%clean |
45 |
|
|
rm -rf %{buildroot} |
46 |
|
|
|
47 |
|
|
%files |
48 |
|
|
%defattr(644,root,root,755) |
49 |
jquelin |
105674 |
%doc Changes INSTALL META.yml README TODO |
50 |
jquelin |
12861 |
%{perl_vendorarch}/Math |
51 |
|
|
%{perl_vendorarch}/auto/Math |
52 |
jquelin |
105674 |
%{_mandir}/*/* |