%define upstream_name Math-Pari %define upstream_version 2.01080604 %define pari_version 2.3.3 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 3 Epoch: 1 Summary: Perl interface to PARI License: GPLv2+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz Source1: ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/pari-%{pari_version}.tar.gz BuildRequires: perl-devel %description This package is a Perl interface to famous library PARI for numerical/scientific/number-theoretic calculations. It allows use of most PARI functions as Perl functions, and (almost) seamless merging of PARI and Perl data. See ftp://megrez.math.u-bordeaux.fr/pub/pari for more information about PARI. %prep %setup -q -n %{upstream_name}-%{upstream_version} %setup -q -a 1 -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor paridir=pari-%{pari_version} < /dev/null %make CFLAGS="%{optflags}" %ifnarch x86_64 %check %{__make} test %endif %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(644,root,root,755) %doc README Changes META.yml %{perl_vendorarch}/Math %{perl_vendorarch}/auto/Math %{_mandir}/*/*