!115 [sync] PR-111: 【轻量级 PR】:update stratovirt.spec.
From: @openeuler-sync-bot Reviewed-by: @kevinzhu1 Signed-off-by: @kevinzhu1
This commit is contained in:
commit
c735b802b0
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user