diff --git a/pari-2.1.7.diff b/pari-2.1.7.diff new file mode 100644 index 0000000..7d2215d --- /dev/null +++ b/pari-2.1.7.diff @@ -0,0 +1,32 @@ +diff -ru pari-2.1.7.orig//src/graph/Gnuplot.h pari-2.1.7/src/graph/Gnuplot.h +--- pari-2.1.7.orig//src/graph/Gnuplot.h 2000-11-03 22:00:24.000000000 +0100 ++++ pari-2.1.7/src/graph/Gnuplot.h 2008-12-29 13:21:20.000000000 +0100 +@@ -377,6 +377,7 @@ + UNKNOWN_null() + { + croak("gnuplot-like plotting environment not loaded yet"); ++ return 0; + } + + static void myterm_table_not_loaded_v(void); +@@ -434,6 +435,7 @@ + myterm_table_not_loaded_di(int flag) + { + myterm_table_not_loaded_v(); ++ return 0.; + } + + static int +@@ -653,10 +655,10 @@ + + #ifdef GNUPLOT_OUTLINE_STDOUT + int +-StartOutput() {} ++StartOutput() { return 0; } + + int +-EndOutput() {} ++EndOutput() { return 0; } + + int + OutLine(char *s) diff --git a/perl-Math-Pari.spec b/perl-Math-Pari.spec index 5f8a458..dc00305 100644 --- a/perl-Math-Pari.spec +++ b/perl-Math-Pari.spec @@ -9,6 +9,7 @@ License: GPL/Artistic Group: Development/Libraries/Perl Source: %{modname}-%{version}.tar.bz2 Source1: pari-2.1.7.tar.bz2 +Patch1: pari-2.1.7.diff BuildRoot: %{_tmppath}/%{name}-root %description @@ -23,6 +24,7 @@ Authors: %prep %setup -q -n %{modname}-%{version} -a 1 +%patch1 -p0 %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" @@ -31,7 +33,6 @@ make #make test %install -rm -rf %{buildroot} make DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_process_packlist @@ -42,11 +43,8 @@ rm -rf %{buildroot} %defattr(-, root, root) %doc README Changes TODO %doc %{_mandir}/man?/* -%{perl_vendorarch}/Math/Pari.pm -%{perl_vendorarch}/Math/PariInit.pm -%{perl_vendorarch}/Math/libPARI.dumb.pod -%{perl_vendorarch}/Math/libPARI.pod -%{perl_vendorarch}/auto/Math/Pari +%{perl_vendorarch}/Math +%{perl_vendorarch}/auto/Math /var/adm/perl-modules/%{name} %changelog