Compare commits
11 Commits
8405c5133d
...
adf6be09af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
adf6be09af | ||
|
|
34d12b39e6 | ||
|
|
13059c20b7 | ||
|
|
b9da826dec | ||
|
|
9b819cf790 | ||
|
|
84881d9d35 | ||
|
|
be47485fb8 | ||
|
|
d1990ce1b1 | ||
|
|
5e3f60a1e2 | ||
|
|
20e2a070e7 | ||
|
|
fd42017006 |
23
0001-add-build-CFLAGS-g.patch
Normal file
23
0001-add-build-CFLAGS-g.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From 26674a6d4458479698d3776782199edccf52e231 Mon Sep 17 00:00:00 2001
|
||||||
|
From: zhangtao2020 <18066722603@163.com>
|
||||||
|
Date: Mon, 6 Sep 2021 16:06:32 +0800
|
||||||
|
Subject: [PATCH] add build CFLAGS -g
|
||||||
|
|
||||||
|
---
|
||||||
|
Makefile | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index db6ab34..3920b6c 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
CXX ?= g++
|
||||||
|
-CFLAGS = -Wall -Wconversion -O3 -fPIC
|
||||||
|
+CFLAGS = -Wall -Wconversion -O3 -fPIC -g
|
||||||
|
SHVER = 2
|
||||||
|
OS = $(shell uname)
|
||||||
|
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
49
libsvm.spec
49
libsvm.spec
@ -1,16 +1,13 @@
|
|||||||
%global debug_package %{nil}
|
|
||||||
%define rel_ver 324
|
|
||||||
%define pkg_ver 1.0
|
|
||||||
|
|
||||||
Summary: A Library for Support Vector Machines
|
Summary: A Library for Support Vector Machines
|
||||||
Name: libsvm
|
Name: libsvm
|
||||||
Version: %{rel_ver}
|
Version: 324
|
||||||
Release: %{pkg_ver}%{?dist}
|
Release: 5
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://www.csie.ntu.edu.tw/~cjlin/libsvm/
|
URL: https://www.csie.ntu.edu.tw/~cjlin/libsvm/
|
||||||
Source0: https://www.csie.ntu.edu.tw/~cjlin/libsvm/%{name}-%{rel_ver}.tar.gz
|
Source0: https://www.csie.ntu.edu.tw/~cjlin/libsvm/%{name}-%{version}.tar.gz
|
||||||
|
Patch0001: 0001-add-build-CFLAGS-g.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{rel_ver}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
BuildRequires: gcc, gcc-c++, make
|
BuildRequires: gcc, gcc-c++, make
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -19,26 +16,60 @@ LIBSVM is an integrated software for support vector classification,
|
|||||||
estimation (one-class SVM ). It supports multi-class classification.
|
estimation (one-class SVM ). It supports multi-class classification.
|
||||||
Provides
|
Provides
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: C headers for developing programs with libsvm
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains the libraries and header files needed for
|
||||||
|
developing applications with libsvm.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0001 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make
|
||||||
|
make lib
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/usr/bin
|
mkdir -p %{buildroot}/usr/bin
|
||||||
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
||||||
install -p -D svm-predict %{buildroot}/usr/bin/
|
install -p -D svm-predict %{buildroot}/usr/bin/
|
||||||
install -p -D svm-scale %{buildroot}/usr/bin/
|
install -p -D svm-scale %{buildroot}/usr/bin/
|
||||||
install -p -D svm-train %{buildroot}/usr/bin/
|
install -p -D svm-train %{buildroot}/usr/bin/
|
||||||
|
install -m 644 svm.h %{buildroot}%{_includedir}/%{name}/
|
||||||
|
install -m 755 libsvm.so.2 %{buildroot}%{_libdir}
|
||||||
|
ln -s %{_libdir}/libsvm.so.2 %{buildroot}%{_libdir}/libsvm.so
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%doc COPYRIGHT FAQ.html
|
||||||
/usr/bin/svm-predict
|
/usr/bin/svm-predict
|
||||||
/usr/bin/svm-scale
|
/usr/bin/svm-scale
|
||||||
/usr/bin/svm-train
|
/usr/bin/svm-train
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%doc README
|
||||||
|
%{_includedir}/%{name}
|
||||||
|
%{_libdir}/libsvm.so
|
||||||
|
%{_libdir}/libsvm.so.2
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Aug 27 2020 hubble_zhu<hubble_zhu@qq.com> - 1.0
|
* Wed Jul 20 2022 lvgenggeng <lvgenggeng@uniontech.com> - 324-5
|
||||||
|
- add devel package and doc
|
||||||
|
- fix changelog date
|
||||||
|
|
||||||
|
* Wed Dec 15 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 324-4
|
||||||
|
- Remove the release suffix
|
||||||
|
|
||||||
|
* Tue Sep 7 2021 zhangtao<zhangtao221@huawei.com> - 324-3
|
||||||
|
- add CFLAGS -g and strip binary files
|
||||||
|
|
||||||
|
* Fri Sep 11 2020 hubble_zhu<hubble_zhu@qq.com> - 324-2
|
||||||
|
- modify Source0 path
|
||||||
|
|
||||||
|
* Thu Aug 27 2020 hubble_zhu<hubble_zhu@qq.com> - 324-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
4
libsvm.yaml
Normal file
4
libsvm.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: cjlin1/libsvm
|
||||||
|
tag_prefix: ^v
|
||||||
|
separator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user