forked from pool/libsvm
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
libsvm-3.17.tar.gz
Normal file
3
libsvm-3.17.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:46a4750d3506e6ccd8adf7e3e1f482d86ce9c5368f9c78e19c7923edf0067a12
|
||||||
|
size 607892
|
21
libsvm.changes
Normal file
21
libsvm.changes
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 13 15:09:44 UTC 2014 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to 3.17
|
||||||
|
* no upstream changelog
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 7 18:25:49 UTC 2012 - scorot@free.fr
|
||||||
|
|
||||||
|
- add python in build requirements
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 7 18:03:49 UTC 2012 - scorot@free.fr
|
||||||
|
|
||||||
|
- repackgage python file into a python module package
|
||||||
|
- put liibrary into a separate package
|
||||||
|
- spec file reformating
|
||||||
|
- build with optflags
|
||||||
|
- fix license
|
||||||
|
- remove unneeded libtool from build requirements
|
||||||
|
|
142
libsvm.spec
Normal file
142
libsvm.spec
Normal file
@@ -0,0 +1,142 @@
|
|||||||
|
#
|
||||||
|
# spec file for package libsvm
|
||||||
|
#
|
||||||
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Summary: A Library for Support Vector Machines
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: Development/Libraries/Other
|
||||||
|
Name: libsvm
|
||||||
|
Version: 3.17
|
||||||
|
Release: 0
|
||||||
|
Url: http://www.csie.ntu.edu.tw/~cjlin/libsvm/
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: ncurses-devel
|
||||||
|
BuildRequires: python
|
||||||
|
%if 0%{?suse_version} <= 1110
|
||||||
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
|
%else
|
||||||
|
%py_requires
|
||||||
|
%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 -n libsvm2
|
||||||
|
Summary: A Library for Support Vector Machines
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libsvm2
|
||||||
|
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: C headers for developing programs with libsvm
|
||||||
|
Group: Development/Libraries/Other
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Requires: ncurses-devel
|
||||||
|
Requires: pkgconfig
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains the libraries and header files needed for developing applications with libsvm.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python-svm
|
||||||
|
Summary: Python bindings libsvm
|
||||||
|
Group: Development/Libraries/Other
|
||||||
|
Requires: gnuplot
|
||||||
|
Requires: python
|
||||||
|
Requires: libsvm2 = %{version}
|
||||||
|
%if 0%{?suse_version} > 1110
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description -n python-svm
|
||||||
|
This package contains the python bindings libsvm.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
export CFLAGS="%{optflags} -Wconversion -fPIC"
|
||||||
|
make
|
||||||
|
make all
|
||||||
|
make lib
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
|
mkdir -p %{buildroot}%{_includedir}/libsvm
|
||||||
|
mkdir -p %{buildroot}%{python_sitelib}/svm
|
||||||
|
ls
|
||||||
|
|
||||||
|
install -m 755 svm-train %{buildroot}%{_bindir}
|
||||||
|
install -m 755 svm-scale %{buildroot}%{_bindir}
|
||||||
|
install -m 755 svm-predict %{buildroot}%{_bindir}
|
||||||
|
install -m 755 ./tools/checkdata.py %{buildroot}%{_bindir}/svm-checkdata
|
||||||
|
install -m 755 ./tools/grid.py %{buildroot}%{_bindir}/svm-grid
|
||||||
|
install -m 755 ./tools/subset.py %{buildroot}%{_bindir}/svm-subset
|
||||||
|
install -m 755 ./tools/easy.py %{buildroot}%{_bindir}/svm-easy
|
||||||
|
install -m 644 svm.h %{buildroot}%{_includedir}/libsvm/
|
||||||
|
install -m 755 libsvm.so.2 %{buildroot}%{_libdir}
|
||||||
|
ln -s %{_libdir}/libsvm.so.2 %{buildroot}%{_libdir}/libsvm.so
|
||||||
|
mv ./python/README README-python
|
||||||
|
mv ./tools/README README-python-tools
|
||||||
|
|
||||||
|
install -m 755 ./python/svm.py %{buildroot}%{python_sitelib}/svm
|
||||||
|
install -m 755 ./python/svmutil.py %{buildroot}%{python_sitelib}/svm
|
||||||
|
touch %{buildroot}%{python_sitelib}/svm/__init__.py
|
||||||
|
|
||||||
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%post -n libsvm2 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n libsvm2 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc FAQ.html README
|
||||||
|
%{_bindir}/svm-train
|
||||||
|
%{_bindir}/svm-scale
|
||||||
|
%{_bindir}/svm-predict
|
||||||
|
|
||||||
|
%files -n libsvm2
|
||||||
|
%doc COPYRIGHT
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/libsvm.so.2
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/libsvm
|
||||||
|
%{_libdir}/libsvm.so
|
||||||
|
|
||||||
|
%files -n python-svm
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc README-python README-python-tools
|
||||||
|
%{_bindir}/svm-checkdata
|
||||||
|
%{_bindir}/svm-grid
|
||||||
|
%{_bindir}/svm-subset
|
||||||
|
%{_bindir}/svm-easy
|
||||||
|
%{python_sitelib}/svm
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user