From 2dd92ea0c1bdc4e16da5def03df462bc8045a04e Mon Sep 17 00:00:00 2001 From: yanjianqing Date: Wed, 17 Apr 2024 16:31:03 +0800 Subject: [PATCH] Enabledebug symbols --- Enable-debug-symbols.patch | 24 ++++++++++++++++++++++++ nispor.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Enable-debug-symbols.patch diff --git a/Enable-debug-symbols.patch b/Enable-debug-symbols.patch new file mode 100644 index 0000000..54b6dd5 --- /dev/null +++ b/Enable-debug-symbols.patch @@ -0,0 +1,24 @@ +From fe34b227b8987de3e999be900a9282e2c8e03c71 Mon Sep 17 00:00:00 2001 +From: yanjianqing +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 + + diff --git a/nispor.spec b/nispor.spec index a02a0b7..4439090 100644 --- a/nispor.spec +++ b/nispor.spec @@ -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 - 1.0.1-4 +- Enable debug symbols + * Mon Feb 26 2024 doupengda - 1.0.1-3 - Add loongarch64 to ExclusiveArch