SHA256
1
0
forked from pool/libsvm

4 Commits

Author SHA256 Message Date
a43803ab88 Accepting request 1324936 from science
OBS-URL: https://build.opensuse.org/request/show/1324936
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsvm?expand=0&rev=7
2026-01-01 14:01:00 +00:00
82171d3f48 - update to 3.36:
* enhanced Python interface.
  * Probabilistic outputs for one-class SVM are now supported
 - drop libsvm-java8.patch (java 11 is now default)

- fix permissions of %%doc in libsvm2 package
- add python in build requirements

OBS-URL: https://build.opensuse.org/package/show/science/libsvm?expand=0&rev=28
2026-01-01 03:03:12 +00:00
125290f744 Accepting request 1204016 from science
OBS-URL: https://build.opensuse.org/request/show/1204016
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsvm?expand=0&rev=6
2024-09-27 15:11:13 +00:00
d6b4634ade Accepting request 1203936 from home:fstrba:branches:science
Use SOURCE_DATE_EPOCH for reproducible jar mtime

OBS-URL: https://build.opensuse.org/request/show/1203936
OBS-URL: https://build.opensuse.org/package/show/science/libsvm?expand=0&rev=26
2024-09-27 05:53:25 +00:00
6 changed files with 48 additions and 27 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a97ec885a37d40b6e6fb42e568590e509a24cbf78cc649ac24e23f1340dcd06e
size 910001

3
libsvm-3.36.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bc92901fbb928c44bb6d0c38189624c7443bcdbf1dd8350b4914e58e57b93c11
size 943316

View File

@@ -1,11 +0,0 @@
--- libsvm-3.3/java/Makefile 2023-10-31 23:35:13.969018818 +0100
+++ libsvm-3.3/java/Makefile 2023-10-31 23:35:49.032582534 +0100
@@ -5,7 +5,7 @@
svm_train.class svm_predict.class svm_toy.class svm_scale.class
#JAVAC = jikes
-JAVAC_FLAGS = -target 1.7 -source 1.7
+JAVAC_FLAGS = -target 1.8 -source 1.8
JAVAC = javac
# JAVAC_FLAGS =
export CLASSPATH := .:$(CLASSPATH)

View File

@@ -0,0 +1,12 @@
--- libsvm-3.3/java/Makefile 2024-09-26 17:44:00.135921357 +0200
+++ libsvm-3.3/java/Makefile 2024-09-26 17:46:18.746958191 +0200
@@ -11,7 +11,8 @@
export CLASSPATH := .:$(CLASSPATH)
all: $(FILES)
- jar cvf libsvm.jar *.class libsvm/*.class
+ jar --date="$$(date -u -d @$${SOURCE_DATE_EPOCH:-$$(date +%s)} +%Y-%m-%dT%H:%M:%SZ)" \
+ --create --verbose --file=libsvm.jar *.class libsvm/*.class
.java.class:
$(JAVAC) $(JAVAC_FLAGS) $<

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Sun Dec 28 23:29:56 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 3.36:
* enhanced Python interface.
* Probabilistic outputs for one-class SVM are now supported
- drop libsvm-java8.patch (java 11 is now default)
-------------------------------------------------------------------
Thu Sep 26 16:05:53 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* libsvm-reproducible-jar-mtime.patch
+ Use SOURCE_DATE_EPOCH for reproducible jar mtime
+ Applied if building with Java >= 17
-------------------------------------------------------------------
Fri Mar 1 10:07:24 UTC 2024 - pgajdos@suse.com
@@ -19,7 +35,7 @@ Tue Nov 8 23:02:48 UTC 2022 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
* Probabilistic outputs for one-class SVM are now supported.
-------------------------------------------------------------------
Tue Mar 16 23:03:23 UTC 2021 - Aaron Puchert <aaronpuchert@alice-dsl.net>
Tue Mar 16 23:03:23 UTC 2021 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Fix build by adding missing python-rpm-macros dependency.
- Build Python bindings for current Python version.
@@ -78,7 +94,7 @@ Mon Oct 26 12:57:56 UTC 2015 - p.drouand@gmail.com
-------------------------------------------------------------------
Sat Apr 5 15:27:09 UTC 2014 - scorot@free.fr
- fix permissions of %%doc in libsvm2 package
- fix permissions of %%doc in libsvm2 package
-------------------------------------------------------------------
Thu Mar 13 15:09:44 UTC 2014 - toddrme2178@gmail.com
@@ -89,7 +105,7 @@ Thu Mar 13 15:09:44 UTC 2014 - toddrme2178@gmail.com
-------------------------------------------------------------------
Fri Sep 7 18:25:49 UTC 2012 - scorot@free.fr
- add python in build requirements
- add python in build requirements
-------------------------------------------------------------------
Fri Sep 7 18:03:49 UTC 2012 - scorot@free.fr

View File

@@ -1,7 +1,7 @@
#
# spec file for package libsvm
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,18 @@
#
%define libname libsvm3
%define fileversion 3.3
%define libname libsvm4
%define fileversion 3.36
Summary: A Library for Support Vector Machines
License: BSD-3-Clause
Group: Development/Languages/Other
Name: libsvm
Version: 3.30
Version: 3.36
Release: 0
URL: https://www.csie.ntu.edu.tw/~cjlin/libsvm/
Source0: https://www.csie.ntu.edu.tw/~cjlin/libsvm/%{name}-%{fileversion}.tar.gz
Patch0: libsvm-java8.patch
Patch1: libsvm-reproducible-jar-mtime.patch
BuildRequires: %{python_module devel}
BuildRequires: gcc-c++
BuildRequires: java-devel >= 1.8
@@ -88,14 +88,18 @@ Requires: %{libname} = %{version}
Requires: java >= 1.6.0
Requires: javapackages-tools
Requires(post): javapackages-tools
Requires(postun):javapackages-tools
Requires(postun): javapackages-tools
BuildArch: noarch
%description java
This package contains the Java bindings for libsvm.
%prep
%autosetup -p1 -n %{name}-%{fileversion}
%setup -n %{name}-%{fileversion}
# The "--date" option was added into jar in OpenJDK 17
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
%patch -P 1 -p1
%endif
%build
# We can't override CFLAGS, we have to patch the Makefile.
@@ -122,8 +126,8 @@ 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.3 %{buildroot}%{_libdir}
ln -s %{_libdir}/libsvm.so.3 %{buildroot}%{_libdir}/libsvm.so
install -m 755 libsvm.so.4 %{buildroot}%{_libdir}
ln -s %{_libdir}/libsvm.so.4 %{buildroot}%{_libdir}/libsvm.so
mv ./python/README README-python
mv ./tools/README README-python-tools
@@ -150,7 +154,7 @@ install -m 755 ./java/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
%files -n %{libname}
%license COPYRIGHT
%{_libdir}/libsvm.so.3
%{_libdir}/libsvm.so.4
%files devel
%{_includedir}/libsvm