rpms/libsvm/devel libsvm-2.85.patch,1.2,1.3 libsvm.spec,1.12,1.13
Ding-Yi Chen (dchen)
fedora-extras-commits at redhat.com
Tue Feb 5 01:07:29 UTC 2008
Author: dchen
Update of /cvs/pkgs/rpms/libsvm/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14335/devel
Modified Files:
libsvm-2.85.patch libsvm.spec
Log Message:
Fix svm-toy-gt build error
libsvm-2.85.patch:
Index: libsvm-2.85.patch
===================================================================
RCS file: /cvs/pkgs/rpms/libsvm/devel/libsvm-2.85.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- libsvm-2.85.patch 4 Feb 2008 23:46:32 -0000 1.2
+++ libsvm-2.85.patch 5 Feb 2008 01:07:17 -0000 1.3
@@ -240,8 +240,8 @@
assert os.path.exists(dataset_pathname),"dataset not found"
diff -up ./Makefile.orig ./Makefile
--- ./Makefile.orig 2007-11-06 23:32:49.000000000 +1000
-+++ ./Makefile 2008-02-04 17:22:47.000000000 +1000
-@@ -1,8 +1,46 @@
++++ ./Makefile 2008-02-05 11:00:21.000000000 +1000
+@@ -1,8 +1,41 @@
CXX? = g++
CFLAGS = -Wall -O3
+MAKE = make
@@ -259,21 +259,16 @@
+export INSTDIR
+
-+PROCESSOR=$(shell /bin/uname -p)
-+ifeq "${PROCESSOR}" "x86_64"
-+X86_64=64
-+else
-+X86_64=
-+endif
++IS_64=$(shell /bin/uname -i | awk '/64/ {print 64}')
+
+ifndef LIBDIR
-+LIB_INSTDIR=${INSTDIR}/lib${X86_64}
++LIB_INSTDIR=${INSTDIR}/lib${IS_64}
+else
+LIB_INSTDIR=${INSTDIR}/..${LIBDIR}
+endif
+
+ifndef LIBDIR
-+LIBDIR=/usr/lib${X86_64}
++LIBDIR=/usr/lib${IS_64}
+endif
+
+export LIBDIR
@@ -289,7 +284,7 @@
svm-predict: svm-predict.c svm.o
$(CXX) $(CFLAGS) svm-predict.c svm.o -o svm-predict -lm
svm-train: svm-train.c svm.o
-@@ -12,4 +50,61 @@ svm-scale: svm-scale.c
+@@ -12,4 +45,61 @@ svm-scale: svm-scale.c
svm.o: svm.cpp svm.h
$(CXX) $(CFLAGS) -c svm.cpp
clean:
Index: libsvm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libsvm/devel/libsvm.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- libsvm.spec 4 Feb 2008 23:46:32 -0000 1.12
+++ libsvm.spec 5 Feb 2008 01:07:17 -0000 1.13
@@ -1,6 +1,6 @@
Name: libsvm
Version: 2.85
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A Library for Support Vector Machines
Group: Development/Libraries
@@ -31,7 +31,7 @@
%package devel
Summary: Header file, object file, and source files of libsvm in C, C++ and Java
Group: Development/Libraries
-BuildRequires: glibc-devel
+BuildRequires: glibc-devel gawk
Requires: %{name} = %{version}-%{release}
%description devel
@@ -94,7 +94,7 @@
%build
-make all CFLAGS="$RPM_OPT_FLAGS" PYTHON_VERSION="%{pyver}" JAVAC="%{javac}" JAR="%{jar}"
+make all CFLAGS="$RPM_OPT_FLAGS" PYTHON_VERSION="%{pyver}" JAVAC="%{javac}" JAR="%{jar}" LIBDIR=%{_libdir}
%{__sed} -i 's/\r//' FAQ.html
%{__sed} -i 's/\r//' ChangeLog
mv python/README python/README-Python
@@ -163,8 +163,11 @@
%changelog
-* Mon Feb 04 2008 Ding-Yi Chen <dchen at redhat.com> - 2.85-1
-- Fix build error
+* Tue Feb 05 2008 Ding-Yi Chen <dchen at redhat.com> - 2.85-2
+- Fix svm-toy-qt build error
+
+* Tue Feb 05 2008 Ding-Yi Chen <dchen at redhat.com> - 2.85-1
+- Fix svm-toy-gtk build error
* Mon Feb 04 2008 Ding-Yi Chen <dchen at redhat.com> - 2.85-0
- Upgrade to 2.85
More information about the fedora-extras-commits
mailing list