diff --git a/libsvm-2.84-2.patch b/libsvm-2.84-2.patch index dd46536..b5062e3 100644 --- a/libsvm-2.84-2.patch +++ b/libsvm-2.84-2.patch @@ -82,13 +82,13 @@ diff -up ./Makefile.orig ./Makefile + diff -up ./python/Makefile.orig ./python/Makefile --- ./python/Makefile.orig 2007-08-27 11:11:38.000000000 +1000 -+++ ./python/Makefile 2007-08-29 17:10:28.000000000 +1000 ++++ ./python/Makefile 2007-08-29 17:38:14.000000000 +1000 @@ -2,13 +2,19 @@ CC = g++ SWIG ?= swig #Windows: see ../README ../Makefile.win -PYTHON_INCLUDEDIR ?= /usr/include/python2.4 -+PYTHON_VERSION=${shell python -V 2> python.ver ; cat python.ver | /bin/awk 'BEGIN {FS= "[ .]"} {printf("%s.%s",$$2,$$3)}'; rm -f python.ver} ++PYTHON_VERSION=${shell python -V 2> /tmp/python.ver ; cat /tmp/python.ver | awk 'BEGIN {FS= "[ .]"} {printf("%s.%s",$$2,$$3)}'; rm -f /tmp/python.ver} + +ifndef PYTHON_INCLUDEDIR + diff --git a/libsvm.spec b/libsvm.spec index 6239e20..0ec43ea 100644 --- a/libsvm.spec +++ b/libsvm.spec @@ -37,7 +37,7 @@ Install this package if you want to develop programs with libsvm. %package python Summary: A Library for Support Vector Machines Group: Development/Libraries -BuildRequires: python >= 2.4 python-devel >= 2.4 +BuildRequires: python >= 2.4 python-devel >= 2.4 gawk Requires: python >= 2.4 Requires: %{name} = %{version}-%{release}