From f9f4345206343ee5e7a6f931da0aab226ea8f0bd Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 09:19:08 +0100 Subject: [PATCH] automatic version update by autodist [release 2.01080605-1mamba;Thu Nov 22 2012] --- README.md | 3 ++ perl-Math-Pari.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 perl-Math-Pari.spec diff --git a/README.md b/README.md index 8ef5d10..6687caf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-Math-Pari +Package Math::Pari is a Perl interface to famous library PARI for numerical/scientific/number-theoretic calculations. +It allows use of most PARI functions (>500) as Perl functions, and (almost) seamless merging of PARI and Perl data. + diff --git a/perl-Math-Pari.spec b/perl-Math-Pari.spec new file mode 100644 index 0000000..9a57626 --- /dev/null +++ b/perl-Math-Pari.spec @@ -0,0 +1,74 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Math-Pari +Version: 2.01080605 +Release: 1mamba +Summary: Math::Pari - Perl interface to the PARI library +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://www.cpan.org/authors/id/I/IL/ILYAZ/modules/Math-Pari-%{version}.tar.gz +License: GPL +BuildRequires: perl-devel >= %perl_major_ver +BuildRequires: pari >= 2.3.2-2 +BuildRequires: libpari-devel >= 2.3.2-2 +BuildRequires: perl-Term-Gnuplot +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/perl-root + +# perl Makefile.PL: +### Math::Pari support of GP/PARI library version 2.3.* should be +### considered cursory only. One may need to downgrade to 2.1.7, +### or run Makefile.PL with option machine=none if the tests fail. + +%description +Package Math::Pari is a Perl interface to famous library PARI for numerical/scientific/number-theoretic calculations. +It allows use of most PARI functions (>500) as Perl functions, and (almost) seamless merging of PARI and Perl data. + +%prep +%setup -q -n Math-Pari-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor + +%make +%make test || : + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Thu Nov 22 2012 Automatic Build System 2.01080605-1mamba +- automatic version update by autodist + +* Wed Nov 05 2008 Silvan Calarco 2.010800-2mamba +- automatic rebuild by autodist + +* Wed Nov 05 2008 Silvan Calarco 2.010800-1mamba +- update to 2.010800 + +* Wed Sep 12 2007 Aleph0 2.010709-1mamba +- update to 2.010709 +- spec file fixed and updated + +* Thu May 06 2004 Silvan Calarco 2.010501-1qilnx +- first build