Stephan Kulow
2008-12-29 12:32:32 +00:00
committed by Git OBS Bridge
parent 98473c11a9
commit 2c3cb4f12c
2 changed files with 36 additions and 6 deletions

32
pari-2.1.7.diff Normal file
View File

@@ -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)

View File

@@ -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