2020-08-27 08:32:30 +00:00
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%define rel_ver 324
|
2020-09-12 10:22:27 +08:00
|
|
|
%define pkg_ver 1.1
|
2020-08-27 08:32:30 +00:00
|
|
|
|
|
|
|
|
Summary: A Library for Support Vector Machines
|
|
|
|
|
Name: libsvm
|
|
|
|
|
Version: %{rel_ver}
|
|
|
|
|
Release: %{pkg_ver}%{?dist}
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://www.csie.ntu.edu.tw/~cjlin/libsvm/
|
2020-09-11 17:20:41 +08:00
|
|
|
Source0: https://www.csie.ntu.edu.tw/~cjlin/libsvm/%{name}-%{rel_ver}.tar.gz
|
2020-08-27 08:32:30 +00:00
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{rel_ver}-%{release}-root
|
|
|
|
|
BuildRequires: gcc, gcc-c++, make
|
|
|
|
|
|
|
|
|
|
%description
|
2020-08-27 08:36:53 +00:00
|
|
|
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.
|
|
|
|
|
Provides
|
2020-08-27 08:32:30 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}/usr/bin
|
|
|
|
|
install -p -D svm-predict %{buildroot}/usr/bin/
|
|
|
|
|
install -p -D svm-scale %{buildroot}/usr/bin/
|
|
|
|
|
install -p -D svm-train %{buildroot}/usr/bin/
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
/usr/bin/svm-predict
|
|
|
|
|
/usr/bin/svm-scale
|
|
|
|
|
/usr/bin/svm-train
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-09-12 10:22:27 +08:00
|
|
|
* Sun Sep 12 2020 hubble_zhu<hubble_zhu@qq.com> - 1.1
|
|
|
|
|
- modify Source0 path
|
|
|
|
|
|
2020-08-27 08:32:30 +00:00
|
|
|
* Thu Aug 27 2020 hubble_zhu<hubble_zhu@qq.com> - 1.0
|
|
|
|
|
- package init
|