From feabfca3951ecfa81bc95aa6718ad49f57d074d5 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Apr 18 2006 18:33:50 +0000 Subject: auto-import perl-Math-Pari-2.010704-2.fc5 on branch devel from perl-Math-Pari-2.010704-2.fc5.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..e5703e3 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,2 @@ +Math-Pari-2.010704.tar.gz +pari-2.1.7.tgz diff --git a/perl-Math-Pari.spec b/perl-Math-Pari.spec new file mode 100644 index 0000000..87ae439 --- /dev/null +++ b/perl-Math-Pari.spec @@ -0,0 +1,90 @@ +# This package includes the pari library source even though that is +# being introduced to Fedora Extras in its own right (#169703). The +# rationale for this is: +# (a) This package patches the library source code +# (b) This package integrates very tightly with the library and may +# break if the library is changed underneath it +# (c) Functionality is lost if built against an external PARI library +# (see the INSTALL file in the distribution) + +Summary: Perl interface to PARI +Name: perl-Math-Pari +Version: 2.010704 +# You'll need to replace pariversion with a hardcoded version number if you're +# testing with a development version of PARI, as this expression evaluates +# the latest version of GP/PARI the perl module was tested with. +%define pariversion %(echo %{version} | %{__perl} -pi -e 's/(\\d+)\\.(\\d\\d)(\\d\\d).*/sprintf("%d.%d.%d",$1,$2,$3)/e') +Release: 2%{?dist} +License: Artistic or GPL +Group: Development/Libraries +Url: http://search.cpan.org/dist/Math-Pari/ +Source0: http://search.cpan.org/CPAN/authors/id/I/IL/ILYAZ/modules/Math-Pari-%{version}.tar.gz +Source1: http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%{pariversion}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This package is a Perl interface to the 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. + +%prep +%setup -q -n Math-Pari-%{version} -a 1 + +# Remove redundant provides (there's also a versioned one) +%global provfilt /bin/sh -c "%{__perl_provides} | %{__grep} -Fvx 'perl(Math::Pari)'" +%define __perl_provides %{provfilt} + +%build +# machine=linux-none needed to avoid breakage of 64-bit builds +# other flags cribbed from pari.spec (#169703) +export DLCFLAGS=-fPIC +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor \ + OPTIMIZE="%{optflags} -fomit-frame-pointer" \ + machine=none +%{__make} %{?_smp_mflags} + +%check +%{__make} test + +%install +%{__rm} -rf %{buildroot} +%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} +/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' +/usr/bin/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec %{__rm} -f {} ';' +/usr/bin/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';' +%{__chmod} -R u+w %{buildroot}/* + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,0755) +%doc Changes README +%dir %{perl_vendorarch}/Math/ +%exclude %doc %{perl_vendorarch}/Math/libPARI.dumb.pod +%doc %{perl_vendorarch}/Math/libPARI.pod +%{perl_vendorarch}/Math/*.pm +%{perl_vendorarch}/auto/Math/ +%{_mandir}/man3/Math::Pari.3pm* +%{_mandir}/man3/Math::PariInit.3pm* +%{_mandir}/man3/Math::libPARI.3pm* +%exclude %{_mandir}/man3/Math::libPARI.dumb.3pm* + +%changelog +* Tue Apr 18 2006 Paul Howarth 2.010704-2 +- Omit dumb docs (#175198) + +* Mon Mar 20 2006 Paul Howarth 2.010704-1 +- Update to 2.010704 + +* Fri Mar 17 2006 Paul Howarth 2.010703-2 +- Simplify %%{__perl_requires} filter + +* Wed Feb 1 2006 Paul Howarth 2.010703-1 +- Update to 2.010703 +- Make pari version number calculation more robust + +* Wed Dec 7 2005 Paul Howarth 2.010702-1 +- Initial build diff --git a/sources b/sources index e69de29..1df7f84 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +0397da31fbe4f5485c4e7094c3661c5a Math-Pari-2.010704.tar.gz +357b7a42e89e2761a5367bbcbfcca5f2 pari-2.1.7.tgz