update stratovirt.spec.

set debug is true for build debug package and add rust to BuildRequires

Signed-off-by: XuFei <xufei30@huawei.com>
(cherry picked from commit 253bc7f5a3c405fc3f736c61b8746f3e4b09e5bb)
This commit is contained in:
XuFei 2024-07-30 15:12:14 +00:00 committed by openeuler-sync-bot
parent a726eed92d
commit 104624c2fe

View File

@ -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 <xufei30@huawei.com> - 2.4.0-2
- set debug is true for build debug package
- add rust to BuildRequires
* Fri May 10 2024 wenyuanlau <liuwenyuan9@huawei.com> 2.4.0-1
- Update to StratoVirt 2.4.0