diff --git a/0001-add-build-CFLAGS-g.patch b/0001-add-build-CFLAGS-g.patch new file mode 100644 index 0000000000000000000000000000000000000000..5973629f78ee332d676e5b77702d432f4bd914af --- /dev/null +++ b/0001-add-build-CFLAGS-g.patch @@ -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 + diff --git a/libsvm.spec b/libsvm.spec index 6f0a26ec39c229717caaffe06a6d46a84fd3a9cf..31cfe09095c2b982f54a5ece654b790abd7a7314 100644 --- a/libsvm.spec +++ b/libsvm.spec @@ -1,6 +1,5 @@ -%global debug_package %{nil} %define rel_ver 324 -%define pkg_ver 1.1 +%define pkg_ver 3 Summary: A Library for Support Vector Machines Name: libsvm @@ -9,6 +8,7 @@ Release: %{pkg_ver}%{?dist} License: BSD URL: https://www.csie.ntu.edu.tw/~cjlin/libsvm/ Source0: https://www.csie.ntu.edu.tw/~cjlin/libsvm/%{name}-%{rel_ver}.tar.gz +Patch0001: 0001-add-build-CFLAGS-g.patch BuildRoot: %{_tmppath}/%{name}-%{rel_ver}-%{release}-root BuildRequires: gcc, gcc-c++, make @@ -21,6 +21,7 @@ Provides %prep %setup -q +%patch0001 -p1 %build make @@ -40,8 +41,11 @@ install -p -D svm-train %{buildroot}/usr/bin/ rm -rf %{buildroot} %changelog -* Sun Sep 12 2020 hubble_zhu - 1.1 +* Sat Sep 4 2020 zhangtao - 324-3 +- add CFLAGS -g and strip binary files + +* Sun Sep 12 2020 hubble_zhu - 324-2 - modify Source0 path -* Thu Aug 27 2020 hubble_zhu - 1.0 +* Thu Aug 27 2020 hubble_zhu - 324-1 - package init