2024-01-06 05:52:44 +01:00
|
|
|
Name: libsvm
|
2024-07-19 11:12:49 +02:00
|
|
|
Version: 3.33
|
2024-01-06 05:52:44 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A simple, easy-to-use, and efficient software for SVM classification and regression
|
|
|
|
Group: Development/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 05:52:45 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.csie.ntu.edu.tw/~cjlin/libsvm/
|
2024-01-06 05:52:44 +01:00
|
|
|
## GITSOURCE https://github.com/cjlin1/libsvm.git v320
|
|
|
|
Source: https://github.com/cjlin1/libsvm.git/v320/libsvm-%{version}.tar.bz2
|
|
|
|
Patch0: libsvm-3.20-Makefile.patch
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
# FIXME
|
|
|
|
# build the java bindings, svm-toy-gtk, and svm-toy-qt
|
|
|
|
|
|
|
|
%description
|
|
|
|
Libsvm is a simple, easy-to-use, and efficient software for SVM classification and regression.
|
|
|
|
It solves C-SVM classification, nu-SVM classification, one-class-SVM, epsilon-SVM regression, and nu-SVM regression.
|
|
|
|
It also provides an automatic model selection tool for C-SVM classification.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 05:52:45 +01:00
|
|
|
Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 05:52:44 +01:00
|
|
|
Requires: pkg-config
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
2024-01-06 05:52:45 +01:00
|
|
|
%package tools
|
|
|
|
Group: Development/Tools
|
|
|
|
Summary: Tools provided with %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package contains the tools provide with %{name}.
|
|
|
|
|
2024-01-06 05:52:44 +01:00
|
|
|
%package -n python-%{name}
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Summary: Python bindings for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: python
|
|
|
|
|
|
|
|
%description -n python-%{name}
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 05:52:47 +01:00
|
|
|
%patch 0 -p1
|
2024-01-06 05:52:44 +01:00
|
|
|
|
|
|
|
# add pkg-config file
|
|
|
|
cat << _EOF >> %{name}.pc
|
|
|
|
Name: %{name}
|
|
|
|
Description: Library for SVM classification and regression
|
|
|
|
URL: %{url}
|
2024-07-19 11:12:49 +02:00
|
|
|
Version: 3.33
|
2024-01-06 05:52:44 +01:00
|
|
|
|
|
|
|
prefix=%{_prefix}
|
|
|
|
includedir=%{_includedir}
|
|
|
|
|
|
|
|
Cflags: -I\${includedir}/libsvm
|
|
|
|
Libs: -lsvm
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%optflags -O3"; export CFLAGS
|
|
|
|
%make all
|
|
|
|
|
|
|
|
python -m compileall -l python
|
|
|
|
python -m compileall -l tools
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 svm-train %{buildroot}%{_bindir}/
|
|
|
|
install -m 0755 svm-predict %{buildroot}%{_bindir}/
|
|
|
|
install -m 0755 svm-scale %{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
install libsvm.so* %{buildroot}%{_libdir}/
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
|
|
|
install -m 0644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
|
|
install -m 0644 svm.h %{buildroot}%{_includedir}/%{name}/
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{python_sitearch}/%{name}
|
|
|
|
install -m 0644 python/*.py* tools/*.py* %{buildroot}%{python_sitearch}/%{name}/
|
|
|
|
> %{buildroot}%{python_sitearch}/%{name}/__init__.py
|
|
|
|
|
|
|
|
for f in python/*.py tools/*.py; do
|
|
|
|
ln -s %{python_sitearch}/%{name}/${f/*\/} %{buildroot}%{_bindir}/svm-${f/*\/}
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:52:45 +01:00
|
|
|
%{_libdir}/libsvm.so.*
|
|
|
|
%doc COPYRIGHT
|
2024-01-06 05:52:44 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:52:45 +01:00
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%{_includedir}/%{name}/*.h
|
|
|
|
%{_libdir}/libsvm.so
|
|
|
|
%{_libdir}/pkgconfig/libsvm.pc
|
2024-01-06 05:52:44 +01:00
|
|
|
%doc README
|
|
|
|
|
2024-01-06 05:52:45 +01:00
|
|
|
%files tools
|
2024-01-06 05:52:44 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:52:45 +01:00
|
|
|
%{_bindir}/svm-predict
|
|
|
|
%{_bindir}/svm-scale
|
|
|
|
%{_bindir}/svm-train
|
2024-01-06 05:52:44 +01:00
|
|
|
%{_bindir}/svm-*.py
|
2024-01-06 05:52:45 +01:00
|
|
|
|
|
|
|
#%files -n python-%{name}
|
|
|
|
#%defattr(-,root,root)
|
|
|
|
#%{_bindir}/svm-*.py
|
|
|
|
#%{python_sitearch}/%{name}
|
2024-01-06 05:52:44 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-07-19 11:12:49 +02:00
|
|
|
* Wed Jul 17 2024 Automatic Build System <autodist@openmamba.org> 3.33-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:52:47 +01:00
|
|
|
* Tue Jul 11 2023 Automatic Build System <autodist@mambasoft.it> 3.32-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:52:46 +01:00
|
|
|
* Thu Mar 02 2023 Automatic Build System <autodist@mambasoft.it> 3.31-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:52:45 +01:00
|
|
|
* Mon Aug 22 2022 Automatic Build System <autodist@mambasoft.it> 3.30-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:52:44 +01:00
|
|
|
* Thu Apr 15 2021 Automatic Build System <autodist@mambasoft.it> 3.25-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 05:52:44 +01:00
|
|
|
* Tue Feb 09 2021 Automatic Build System <autodist@mambasoft.it> 3.24-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Mar 22 2015 Davide Madrisan <davide.madrisan@gmail.com> 3.20-1mamba
|
|
|
|
- package created by autospec
|