Sisyphus repository
Last update: 18 september 2019 | SRPMs: 17444 | Visits: 15117983
en ru br
ALT Linux repos
S:3.18-alt2.1
4.1: 2.8.2-alt1
4.0: 2.8.2-alt1
3.0: 2.6-alt1.1

Group :: Sciences/Mathematics
RPM: libsvm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define sover 2

%def_with python3

Name: libsvm
Version: 3.18
Release: alt2.1
Summary: A Library for Support Vector Machines
Group: Sciences/Mathematics
License: BSD
URL: http://www.csie.ntu.edu.tw/~cjlin/libsvm/
Source: %name-%version.tar.gz
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

BuildPreReq: python-devel gcc-c++
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-devel
%endif

%description
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.

%package devel
Summary: Development files of LIBSVM
Group: Development/C++
Requires: %name = %version-%release

%description devel
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.

This package contains development files of LIBSVM.

%package tools
Summary: Tools for LIBSVM
Group: Sciences/Mathematics
Requires: %name = %version-%release

%description tools
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.

This package contains tools for LIBSVM.

%package -n python-module-svm
Summary: Python interface for LIBSVM
Group: Development/Python
BuildArch: noarch
Requires: %name = %version-%release

%description -n python-module-svm
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.

This package contains Python interface for LIBSVM.

%package -n python3-module-svm
Summary: Python interface for LIBSVM
Group: Development/Python3
BuildArch: noarch
Requires: %name = %version-%release

%description -n python3-module-svm
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.

This package contains Python interface for LIBSVM.

%prep
%setup

%build
%make_build lib all

%install

install -d %buildroot%_libdir
install -m644 libsvm.so.%sover %buildroot%_libdir
ln -s libsvm.so.%sover %buildroot%_libdir/libsvm.so

install -d %buildroot%_includedir
install -m644 *.h %buildroot%_includedir

install -d %buildroot%_bindir
install -m755 svm-predict svm-scale svm-train \
%buildroot%_bindir
for i in checkdata easy grid subset; do
install -m755 tools/$i.py %buildroot%_bindir/svm-$i
done

# python


install -d %buildroot%python_sitelibdir_noarch
install -m644 python/*.py %buildroot%python_sitelibdir_noarch

%if_with python3
install -d %buildroot%python3_sitelibdir_noarch
install -m644 python/*.py %buildroot%python3_sitelibdir_noarch
%endif

%files
%doc COPYRIGHT README *.html
%_libdir/*.so.*

%files devel
%_libdir/*.so
%_includedir/*

%files tools
%doc tools/README
%_bindir/*

%files -n python-module-svm
%doc python/README
%python_sitelibdir_noarch/*

%if_with python3
%files -n python3-module-svm
%doc python/README
%python3_sitelibdir_noarch/*
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin