2021-12-15 15:22:45 +08:00
|
|
|
Summary: A Library for Support Vector Machines
|
|
|
|
|
Name: libsvm
|
2022-07-20 13:06:19 +08:00
|
|
|
Version: 324
|
|
|
|
|
Release: 5
|
2021-12-15 15:22:45 +08:00
|
|
|
License: BSD
|
|
|
|
|
URL: https://www.csie.ntu.edu.tw/~cjlin/libsvm/
|
2022-07-20 13:06:19 +08:00
|
|
|
Source0: https://www.csie.ntu.edu.tw/~cjlin/libsvm/%{name}-%{version}.tar.gz
|
2021-09-04 17:37:37 +08:00
|
|
|
Patch0001: 0001-add-build-CFLAGS-g.patch
|
2020-08-27 08:32:30 +00:00
|
|
|
|
2022-07-20 13:06:19 +08:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
2020-08-27 08:32:30 +00:00
|
|
|
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
|
|
|
|
2022-07-20 13:06:19 +08:00
|
|
|
%package devel
|
|
|
|
|
Summary: C headers for developing programs with libsvm
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains the libraries and header files needed for
|
|
|
|
|
developing applications with libsvm.
|
|
|
|
|
|
2020-08-27 08:32:30 +00:00
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2021-09-04 17:37:37 +08:00
|
|
|
%patch0001 -p1
|
2020-08-27 08:32:30 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make
|
2022-07-20 13:06:19 +08:00
|
|
|
make lib
|
2020-08-27 08:32:30 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}/usr/bin
|
2022-07-20 13:06:19 +08:00
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
2020-08-27 08:32:30 +00:00
|
|
|
install -p -D svm-predict %{buildroot}/usr/bin/
|
|
|
|
|
install -p -D svm-scale %{buildroot}/usr/bin/
|
|
|
|
|
install -p -D svm-train %{buildroot}/usr/bin/
|
2022-07-20 13:06:19 +08:00
|
|
|
install -m 644 svm.h %{buildroot}%{_includedir}/%{name}/
|
|
|
|
|
install -m 755 libsvm.so.2 %{buildroot}%{_libdir}
|
|
|
|
|
ln -s %{_libdir}/libsvm.so.2 %{buildroot}%{_libdir}/libsvm.so
|
2020-08-27 08:32:30 +00:00
|
|
|
|
|
|
|
|
%files
|
2022-07-20 13:06:19 +08:00
|
|
|
%doc COPYRIGHT FAQ.html
|
2020-08-27 08:32:30 +00:00
|
|
|
/usr/bin/svm-predict
|
|
|
|
|
/usr/bin/svm-scale
|
|
|
|
|
/usr/bin/svm-train
|
|
|
|
|
|
2022-07-20 13:06:19 +08:00
|
|
|
%files devel
|
|
|
|
|
%doc README
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
%{_libdir}/libsvm.so
|
|
|
|
|
%{_libdir}/libsvm.so.2
|
|
|
|
|
|
2020-08-27 08:32:30 +00:00
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-07-20 13:06:19 +08:00
|
|
|
* Wed Jul 20 2022 lvgenggeng <lvgenggeng@uniontech.com> - 324-5
|
|
|
|
|
- add devel package and doc
|
|
|
|
|
- fix changelog date
|
|
|
|
|
|
2021-12-15 15:22:45 +08:00
|
|
|
* Wed Dec 15 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 324-4
|
|
|
|
|
- Remove the release suffix
|
|
|
|
|
|
2022-07-20 13:06:19 +08:00
|
|
|
* Tue Sep 7 2021 zhangtao<zhangtao221@huawei.com> - 324-3
|
2021-09-04 17:37:37 +08:00
|
|
|
- add CFLAGS -g and strip binary files
|
|
|
|
|
|
2022-07-20 13:06:19 +08:00
|
|
|
* Fri Sep 11 2020 hubble_zhu<hubble_zhu@qq.com> - 324-2
|
2020-09-12 10:22:27 +08:00
|
|
|
- modify Source0 path
|
|
|
|
|
|
2021-09-04 17:37:37 +08:00
|
|
|
* Thu Aug 27 2020 hubble_zhu<hubble_zhu@qq.com> - 324-1
|
2020-08-27 08:32:30 +00:00
|
|
|
- package init
|