Enabledebug symbols

This commit is contained in:
yanjianqing 2024-04-17 16:31:03 +08:00
parent 1057914586
commit 2dd92ea0c1
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From fe34b227b8987de3e999be900a9282e2c8e03c71 Mon Sep 17 00:00:00 2001
From: yanjianqing <yanjianqing@kylinos.cn>
Date: Wed, 17 Apr 2024 16:22:25 +0800
Subject: [PATCH] Enable debug symbols
---
Cargo.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Cargo.toml b/Cargo.toml
index b03c824..967e82d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,3 +5,6 @@ members = [
"src/cli",
"src/clib",
]
+
+[profile.release]
+debug = true
--
2.43.0

View File

@ -2,11 +2,12 @@
%global __cargo_skip_build 0
Name: nispor
Version: 1.0.1
Release: 3
Release: 4
Summary: Unified interface for Linux network state querying
License: ASL 2.0
URL: https://github.com/nispor/nispor
Source: https://github.com/nispor/nispor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: Enable-debug-symbols.patch
ExclusiveArch: aarch64 x86_64 riscv64 loongarch64
BuildRequires: make pkg-config python3-devel rust-packaging systemd-devel openEuler-rpm-config
@ -99,6 +100,9 @@ rm -rf %{buildroot}%{cargo_registry}/%{name}-%{version}/
%{_libdir}/pkgconfig/nispor.pc
%changelog
* Wed Apr 17 2024 yanjianqing <yanjianqing@kylinos.cn> - 1.0.1-4
- Enable debug symbols
* Mon Feb 26 2024 doupengda <doupengda@loongson.cn> - 1.0.1-3
- Add loongarch64 to ExclusiveArch