diff --git a/perl-Math-Pari.spec b/perl-Math-Pari.spec index 9d5ada5..41b59d3 100644 --- a/perl-Math-Pari.spec +++ b/perl-Math-Pari.spec @@ -17,7 +17,7 @@ Summary: Perl interface to PARI Name: perl-Math-Pari Version: %{module_version} -Release: 2%{?dist} +Release: 3%{?dist} License: GPL+ or Artistic Group: Development/Libraries Url: http://search.cpan.org/dist/Math-Pari/ @@ -27,6 +27,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(ExtUtils::MakeMaker) +# don't "provide" private Perl libs or the redundant unversioned perl(Math::Pari) one +%global _use_internal_dependency_generator 0 +%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u +%global __find_provides /bin/sh -c "%{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P} | %{__grep} -Fvx 'perl(Math::Pari)'" +%global __find_requires /bin/sh -c "%{__deploop R}" + %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 @@ -35,10 +41,6 @@ as Perl functions, and (almost) seamless merging of PARI and Perl data. %prep %setup -q -n Math-Pari-%{module_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} - # Remove spurious executable permission bits %{__chmod} -x Changes README Pari.pm PariInit.pm func_codes.h Pari.xs @@ -80,10 +82,13 @@ export DLCFLAGS=-fPIC %exclude %{_mandir}/man3/Math::libPARI.dumb.3pm* %changelog +* Sun Mar 8 2009 Paul Howarth - 2.010801-3 +- Filter out unwanted provides for perl shared objects + * Thu Feb 26 2009 Fedora Release Engineering - 2.010801-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild -* Wed Feb 11 2009 Paul Howarth 2.010801-1 +* Wed Feb 11 2009 Paul Howarth - 2.010801-1 - update to 2.010801, but build with pari-2.1.7 since 2.1.8 doesn't exist (upstream forgot their own numbering convention - CPAN RT#35493) - re-enable tests