[packages/liblinear] - updated to 2.49 (new soname)
qboosh
qboosh at pld-linux.org
Sat Jul 5 20:35:19 CEST 2025
commit ff7e6a75d7368c4adb04e139f49cf5fc2bddcaf9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 5 20:36:49 2025 +0200
- updated to 2.49 (new soname)
liblinear-python.patch | 30 ++++--------------------------
liblinear.spec | 8 ++++----
2 files changed, 8 insertions(+), 30 deletions(-)
---
diff --git a/liblinear.spec b/liblinear.spec
index 694ed92..5c85347 100644
--- a/liblinear.spec
+++ b/liblinear.spec
@@ -12,12 +12,12 @@
Summary: LIBLINEAR - a Library for Large Linear Classification
Summary(pl.UTF-8): LIBLINEAR - biblioteka do liniowej klasyfikacji dużych danych
Name: liblinear
-Version: 2.47
-Release: 3
+Version: 2.49
+Release: 1
License: BSD
Group: Libraries
Source0: https://www.csie.ntu.edu.tw/~cjlin/liblinear/%{name}-%{version}.tar.gz
-# Source0-md5: 5f332f5f965d4ccb2c35a594abd6ec1d
+# Source0-md5: 43361775e2b0231f101d36d39cda110a
Patch0: %{name}-python.patch
Patch1: %{name}-make.patch
Patch2: %{name}-matlab.patch
@@ -179,7 +179,7 @@ rm -rf $RPM_BUILD_ROOT
%doc COPYRIGHT README
%attr(755,root,root) %{_bindir}/liblinear-predict
%attr(755,root,root) %{_bindir}/liblinear-train
-%attr(755,root,root) %{_libdir}/liblinear.so.5
+%attr(755,root,root) %{_libdir}/liblinear.so.6
%files devel
%defattr(644,root,root,755)
diff --git a/liblinear-python.patch b/liblinear-python.patch
index b689b52..9f31cf6 100644
--- a/liblinear-python.patch
+++ b/liblinear-python.patch
@@ -1,20 +1,6 @@
---- liblinear-2.45/python/liblinear/commonutil.py.orig 2022-08-11 09:26:17.000000000 +0200
-+++ liblinear-2.45/python/liblinear/commonutil.py 2023-01-17 21:00:29.844885280 +0100
-@@ -1,5 +1,3 @@
--#!/usr/bin/env python
--
- from __future__ import print_function
- from array import array
- import sys
---- liblinear-2.45/python/liblinear/liblinear.py.orig 2022-08-11 09:26:18.000000000 +0200
-+++ liblinear-2.45/python/liblinear/liblinear.py 2023-01-17 21:00:59.301392367 +0100
-@@ -1,5 +1,3 @@
--#!/usr/bin/env python
--
- from ctypes import *
- from ctypes.util import find_library
- from os import path
-@@ -25,10 +23,7 @@ __all__ = ['liblinear', 'feature_node',
+--- liblinear-2.49/python/liblinear/liblinear.py.orig 2022-08-11 09:26:18.000000000 +0200
++++ liblinear-2.49/python/liblinear/liblinear.py 2023-01-17 21:00:59.301392367 +0100
+@@ -20,10 +20,7 @@ __all__ = ['liblinear', 'feature_node',
'print_null']
try:
@@ -22,18 +8,10 @@
- dynamic_lib_name = 'clib.cp*'
- path_to_so = glob(path.join(dirname, dynamic_lib_name))[0]
- liblinear = CDLL(path_to_so)
-+ liblinear = CDLL("liblinear.so.5")
++ liblinear = CDLL("liblinear.so.6")
except:
try :
if sys.platform == 'win32':
---- liblinear-2.45/python/liblinear/liblinearutil.py.orig 2022-08-11 09:26:18.000000000 +0200
-+++ liblinear-2.45/python/liblinear/liblinearutil.py 2023-01-17 21:01:09.311338139 +0100
-@@ -1,5 +1,3 @@
--#!/usr/bin/env python
--
- import os, sys
- from .liblinear import *
- from .liblinear import __all__ as liblinear_all
--- liblinear-2.47/python/setup.py.orig 2024-02-24 08:30:08.070312591 +0100
+++ liblinear-2.47/python/setup.py 2024-02-24 08:46:01.101816242 +0100
@@ -89,9 +89,6 @@ class CleanCommand(clean_cmd):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/liblinear.git/commitdiff/ff7e6a75d7368c4adb04e139f49cf5fc2bddcaf9
More information about the pld-cvs-commit
mailing list