fix build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Math-Pari?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
98473c11a9
commit
2c3cb4f12c
32
pari-2.1.7.diff
Normal file
32
pari-2.1.7.diff
Normal 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)
|
@@ -9,6 +9,7 @@ License: GPL/Artistic
|
|||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Source: %{modname}-%{version}.tar.bz2
|
Source: %{modname}-%{version}.tar.bz2
|
||||||
Source1: pari-2.1.7.tar.bz2
|
Source1: pari-2.1.7.tar.bz2
|
||||||
|
Patch1: pari-2.1.7.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
BuildRoot: %{_tmppath}/%{name}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -23,6 +24,7 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version} -a 1
|
%setup -q -n %{modname}-%{version} -a 1
|
||||||
|
%patch1 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||||
@@ -31,7 +33,6 @@ make
|
|||||||
#make test
|
#make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
|
||||||
@@ -42,11 +43,8 @@ rm -rf %{buildroot}
|
|||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc README Changes TODO
|
%doc README Changes TODO
|
||||||
%doc %{_mandir}/man?/*
|
%doc %{_mandir}/man?/*
|
||||||
%{perl_vendorarch}/Math/Pari.pm
|
%{perl_vendorarch}/Math
|
||||||
%{perl_vendorarch}/Math/PariInit.pm
|
%{perl_vendorarch}/auto/Math
|
||||||
%{perl_vendorarch}/Math/libPARI.dumb.pod
|
|
||||||
%{perl_vendorarch}/Math/libPARI.pod
|
|
||||||
%{perl_vendorarch}/auto/Math/Pari
|
|
||||||
/var/adm/perl-modules/%{name}
|
/var/adm/perl-modules/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user