LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libsvm.spec of Package libsvm (Project home:inescid:language)

Name: libsvm
Version: 2.91
Release: 1

Summary: A Library for Support Vector Machines
License: LGPL
Group: Productivity/Scientific/Math
Url: http://www.csie.ntu.edu.tw/~cjlin/libsvm

Source: %{name}-%{version}.tar.bz2
Prefix: %_prefix
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++

LIBSVM is an integrated software for support vector classification,
(C-SVC, nu-SVC), regression (epsilon-SVR, nu-SVR) and distribution
estimation (one-class SVM). It supports multi-class classification.


make clean


mkdir -p $RPM_BUILD_ROOT%{prefix}/bin
cp svm-scale $RPM_BUILD_ROOT%{prefix}/bin/svm-scale
cp svm-predict $RPM_BUILD_ROOT%{prefix}/bin/svm-predict
cp svm-train $RPM_BUILD_ROOT%{prefix}/bin/svm-train

# files
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' > $RPM_BUILD_DIR/file.list

rm -rf $RPM_BUILD_DIR/%{name}-%{version}
rm $RPM_BUILD_DIR/file.list

%files -f ../file.list