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:
parent
a467a3a5d0
commit
2de7ecd03e
@ -6,10 +6,7 @@
|
||||
|
||||
Name: stratovirt
|
||||
Version: 2.4.0
|
||||
Release: 3
|
||||
Summary: StratoVirt is an opensource VMM(Virtual Machine Manager) which aims to perform next generation virtualization.
|
||||
|
||||
License: MulanPSL-2.0
|
||||
Release: 4
|
||||
URL: https://gitee.com/openeuler/stratovirt
|
||||
Source0: https://gitee.com/openeuler/stratovirt/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
@ -81,6 +78,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
|
||||
@ -102,12 +102,16 @@ install -d %{buildroot}%{_libdir}/stratovirt/static
|
||||
install -D -m555 ./target/%{rust_musl_target}/release/stratovirt %{buildroot}%{_libdir}/stratovirt/static
|
||||
|
||||
%changelog
|
||||
* Wed Dec 11 2024 Mingwang Li <limingwang@huawei.com> - 2.4.0-3
|
||||
* Wed Dec 11 2024 Mingwang Li <limingwang@huawei.com> - 2.4.0-4
|
||||
- bugfix VM run failed from memory snapshot
|
||||
|
||||
* Thu Nov 21 2024 jinyihua <jinyihua@huawei.com> - 2.4.0-2
|
||||
* Thu Nov 21 2024 jinyihua <jinyihua@huawei.com> - 2.4.0-3
|
||||
- Micro fix the ioctl allow for aarch64
|
||||
|
||||
* 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