libsvm 3.30-1 (x86_64;aarch64;znver1) 2023-17289
0
Status | rejected | |||||||||||||||||||||||||||||||||||||||||||||
Submitter | mandian [@T] tutanota.com | |||||||||||||||||||||||||||||||||||||||||||||
Platform | rolling | |||||||||||||||||||||||||||||||||||||||||||||
Repository | unsupported | |||||||||||||||||||||||||||||||||||||||||||||
URL | https://abf.openmandriva.org/build_lists/291127 | |||||||||||||||||||||||||||||||||||||||||||||
Packages |
|
|||||||||||||||||||||||||||||||||||||||||||||
Build Date | 2023-02-20 22:27:16 +0000 UTC | |||||||||||||||||||||||||||||||||||||||||||||
Last Updated | 2023-02-21 14:05:10.306146983 +0000 UTC |
$ git diff --patch-with-stat --summary d6b01df22efb045a42ecf53e1a41250a00ce9fff..f4c829b1c23b2b2e18d8b6edaa6f1502c15a71da .abf.yml | 4 +-- guide.pdf | Bin 257504 -> 0 bytes libsvm-3.25.packageMain.patch | 2 +- libsvm.spec | 57 +++++++++++++++++++++--------------------- 4 files changed, 31 insertions(+), 32 deletions(-) delete mode 100644 guide.pdf diff --git a/.abf.yml b/.abf.yml index 32e9dac..38b80f0 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,4 +1,4 @@ sources: LibSVM-svm-toy-48.png: 2e30ddfda55f2aee56cb000c5c1ea6da4cd379f7 - guide.pdf: b86b1ff617e294448a922c190f3a8873f0a36a5f - libsvm-3.25.tar.gz: 368e126686e70a2cd18c5804b249037463a5c15e + guide.pdf: 7304ee961da7dccb402968bca844c23ff752afda + libsvm-3.30.tar.gz: ed917bd42bd108bf56a748704c5d7e07e631b359 diff --git a/guide.pdf b/guide.pdf deleted file mode 100644 index 5d1af73..0000000 Binary files a/guide.pdf and /dev/null differ diff --git a/libsvm-3.25.packageMain.patch b/libsvm-3.25.packageMain.patch index bef6bf1..8b71010 100644 --- a/libsvm-3.25.packageMain.patch +++ b/libsvm-3.25.packageMain.patch @@ -5,7 +5,7 @@ diff -up ./Makefile.packageMain ./Makefile CXX ?= g++ -CFLAGS = -Wall -Wconversion -O3 -fPIC +CFLAGS = ${RPM_CFLAGS} -Wall -Wconversion -O3 -fPIC - SHVER = 2 + SHVER = 3 +export SHVER OS = $(shell uname) +MAKE = make diff --git a/libsvm.spec b/libsvm.spec index 699ac3c..8eb0769 100644 --- a/libsvm.spec +++ b/libsvm.spec @@ -1,6 +1,7 @@ -%define shver 2 +%define shver 3 +%define libname %mklibname svm %define devname %mklibname svm -d -%define libname %mklibname svm %shver +%define oldlibname %mklibname svm 2 %global libdir_libsvm %{_libdir}/libsvm %global python3_libsvm_dir %{python3_sitearch}/libsvm @@ -8,7 +9,7 @@ %global pom_file_version 3.25 %global pom_file_name JPP.%{maven_group_id}-%{name}.pom %global octpkg %{name} -%global release_date 2021-04-14 +%global release_date 2022-08-11 %global cpp_std c++17 %{!?_javadir: %global _javadir %{_datadir}/java} @@ -32,13 +33,13 @@ Summary: A Library for Support Vector Machines Name: libsvm -Version: 3.25 +Version: 3.30 Release: 1 License: BSD -URL: http://www.csie.ntu.edu.tw/~cjlin/libsvm/ -Source0: http://www.csie.ntu.edu.tw/~cjlin/libsvm/%{name}-%{version}.tar.gz -Source1: http://www.csie.ntu.edu.tw/~cjlin/libsvm/log -Source2: http://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf +URL: https://www.csie.ntu.edu.tw/~cjlin/libsvm/ +Source0: https://www.csie.ntu.edu.tw/~cjlin/libsvm/%{name}-%{version}.tar.gz +Source1: https://www.csie.ntu.edu.tw/~cjlin/libsvm/log +Source2: https://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf Source3: libsvm-svm-toy-gtk.desktop Source4: libsvm-svm-toy-qt.desktop Source5: LibSVM-svm-toy-48.png @@ -204,7 +205,7 @@ Octave interface for libsvm. %if %{with gtk} %package svm-toy-gtk Summary: GTK version of svm-toy (libsvm demonstration program) -BuildRequires: gtk+2.0-devel +BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: desktop-file-utils Requires: gtk+2.0 Requires: svm-tools = %{version}-%{release} @@ -226,7 +227,6 @@ display the derived separating hyperplane. %package svm-toy-qt Summary: QT version of svm-toy (libsvm demonstration program) BuildRequires: desktop-file-utils -BuildRequires: pkgconfig BuildRequires: qt5-qtbase-devel Requires: svm-tools = %{version}-%{release} @@ -244,7 +244,7 @@ display the derived separating hyperplane. #--------------------------------------------------------------------------- %prep -%autosetup -p0 +%autosetup -p0 -n %{name}-3.3 cp %{SOURCE1} ChangeLog cp %{SOURCE2} . @@ -293,17 +293,17 @@ make all RPM_CFLAGS="%{optflags}" LIBDIR="%{_libdir}" CPP_STD="%{cpp_std}" CXX=$ %if %{with maven} %mvn_artifact %{name}.pom java/%{name}.jar %endif -%__make svm-java JAVAC="%{javac}" JAR="%{jar}" RPM_CFLAGS="%{optflags}" CXX=${CXX} +make svm-java JAVAC="%{javac}" JAR="%{jar}" RPM_CFLAGS="%{optflags}" CXX=${CXX} cp README java/README-Java %endif %if %{with gtk} -%__make svm-gtk RPM_CFLAGS="%{optflags}" LIBDIR="%{_libdir}" CPP_STD="%{cpp_std}" CXX=${CXX} +make svm-gtk RPM_CFLAGS="%{optflags}" LIBDIR="%{_libdir}" CPP_STD="%{cpp_std}" CXX=${CXX} cp README svm-toy/gtk %endif %if %{with qt} -%__make svm-toy-qt RPM_CFLAGS="%{optflags}" LIBDIR="%{_libdir}" CPP_STD="%{cpp_std}" CXX=${CXX} MOC_PATH="%{moc_path}" +make svm-toy-qt RPM_CFLAGS="%{optflags}" LIBDIR="%{_libdir}" CPP_STD="%{cpp_std}" CXX=${CXX} MOC_PATH="%{moc_path}" cp README svm-toy/qt %endif @@ -316,7 +316,7 @@ cd - %endif %if %{with python} -%__make svm-python PYTHON_VERSION="%{pyver}" +make svm-python PYTHON_VERSION="%{pyver}" mv python/README python/README-Python %endif @@ -327,8 +327,7 @@ mv tools/README tools/README-Tools %{set_build_flags} %make_install LIBDIR=%{_libdir} LIBSVM_VER="%{version}" RPM_CFLAGS="%{optflags}" LIBDIR="%{_libdir}" CPP_STD="%{cpp_std}" CXX=${CXX} -#rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/src -%__ln_s %{name}.so.%{shver} $RPM_BUILD_ROOT/%{_libdir}/%{name}.so +ln -s %{name}.so.%{shver} %{buildroot}/%{_libdir}/%{name}.so %if %{with python} %__make install-python DESTDIR=%{buildroot} PYTHON_VERSION="%{pyver}" @@ -377,41 +376,41 @@ EOF %endif # icons -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/ +mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/ %if %{with gtk} -cp %{name}-svm-toy-gtk-48.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/ +cp %{name}-svm-toy-gtk-48.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/ %endif %if %{with qt} -cp %{name}-svm-toy-qt-48.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/ +cp %{name}-svm-toy-qt-48.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/ %endif # .deskrop -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications +mkdir -p %{buildroot}/%{_datadir}/applications %if %{with gtk} -cp %{name}-svm-toy-gtk.desktop $RPM_BUILD_ROOT/%{_datadir}/applications +cp %{name}-svm-toy-gtk.desktop %{buildroot}/%{_datadir}/applications %endif %if %{with qt} -cp %{name}-svm-toy-qt.desktop $RPM_BUILD_ROOT/%{_datadir}/applications +cp %{name}-svm-toy-qt.desktop %{buildroot}/%{_datadir}/applications %endif # [Bug 521194] Python: 'import libsvm' doesn't work echo -e "# This file is not in the original libsvm tarball, but added for convenience of import libsvm.\n\ # This file is released under BSD license, just like the rest of the package.\n"\ - > $RPM_BUILD_ROOT/%{libsvm_python_dir}/__init__.py + > %{buildroot}/%{libsvm_python_dir}/__init__.py %if %{with gtk} desktop-file-install --delete-original \ - --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ - ${RPM_BUILD_ROOT}/%{_datadir}/applications/%{name}-svm-toy-gtk.desktop + --dir=%{buildroot}%{_datadir}/applications \ + %{buildroot}/%{_datadir}/applications/%{name}-svm-toy-gtk.desktop %endif %if %{with qt} desktop-file-install --delete-original \ - --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ - ${RPM_BUILD_ROOT}/%{_datadir}/applications/%{name}-svm-toy-qt.desktop \ + --dir=%{buildroot}%{_datadir}/applications \ + %{buildroot}/%{_datadir}/applications/%{name}-svm-toy-qt.desktop \ %endif # Fix Bug 646154 - libsvm-python's pth is not set correctly -echo 'libsvm' > $RPM_BUILD_ROOT/%{python_sitearch}/libsvm.pth +echo 'libsvm' > %{buildroot}/%{python_sitearch}/libsvm.pth %if %{with gtk}
Not Available
benbullard79 [@T] cox.net | No Comment. | 640d 18hrs |