From 104624c2fe89d68239b3363f14900e00be2027bb Mon Sep 17 00:00:00 2001 From: XuFei Date: Tue, 30 Jul 2024 15:12:14 +0000 Subject: [PATCH] update stratovirt.spec. set debug is true for build debug package and add rust to BuildRequires Signed-off-by: XuFei (cherry picked from commit 253bc7f5a3c405fc3f736c61b8746f3e4b09e5bb) --- stratovirt.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stratovirt.spec b/stratovirt.spec index ff2b0da..15931e0 100644 --- a/stratovirt.spec +++ b/stratovirt.spec @@ -6,7 +6,7 @@ Name: stratovirt Version: 2.4.0 -Release: 1 +Release: 2 Summary: StratoVirt is an opensource VMM(Virtual Machine Manager) which aims to perform next generation virtualization. License: MulanPSL-2.0 @@ -79,6 +79,9 @@ sed -i '/\[source.local-registry\]/a directory = "vendor"' ./.cargo/config sed -i '/^rustflags/d' ./.cargo/config sed -i '/\[build\]/arustflags = \["-Copt-level=3", "-Cdebuginfo=2", "-Clink-arg=-Wl,-z,relro,-z,now", "-Ccodegen-units=1", "--cap-lints=warn", \]' ./.cargo/config +sed -i '$a\[profile.release\]' ./.cargo/config +sed -i '$adebug = true' ./.cargo/config + %ifarch aarch64 sed -i 's/rustflags = \[/&"-Clink-arg=-lgcc", /' ./.cargo/config %endif @@ -100,6 +103,10 @@ install -d %{buildroot}%{_libdir}/stratovirt/static install -D -m555 ./target/%{rust_musl_target}/release/stratovirt %{buildroot}%{_libdir}/stratovirt/static %changelog +* Tue Jul 30 2024 xufei - 2.4.0-2 +- set debug is true for build debug package +- add rust to BuildRequires + * Fri May 10 2024 wenyuanlau 2.4.0-1 - Update to StratoVirt 2.4.0 -- Gitee