42 lines
933 B
RPMSpec
42 lines
933 B
RPMSpec
%global debug_package %{nil}
|
|
%define rel_ver 324
|
|
%define pkg_ver 1.0
|
|
|
|
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/
|
|
Source0: %{name}-%{rel_ver}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{rel_ver}-%{release}-root
|
|
BuildRequires: gcc, gcc-c++, make
|
|
|
|
%description
|
|
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
|
|
|
|
%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
|
|
* Thu Aug 27 2020 hubble_zhu<hubble_zhu@qq.com> - 1.0
|
|
- package init
|