Delete repeated changes to the rustflags in .cargo/config
This commit is contained in:
parent
ee65f664cb
commit
ad92b6d4af
@ -6,7 +6,7 @@
|
||||
|
||||
Name: stratovirt
|
||||
Version: 2.2.0
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: StratoVirt is an opensource VMM(Virtual Machine Manager) which aims to perform next generation virtualization.
|
||||
|
||||
License: Mulan PSL v2
|
||||
@ -51,20 +51,20 @@ Summary: %{summary}
|
||||
|
||||
%ifarch aarch64
|
||||
sed -i '/\[build\]/a target="aarch64-unknown-linux-musl"' ./.cargo/config
|
||||
sed -i 's/rustflags = \[/&"-Clink-arg=-lgcc", "-Clink-arg=-lpixman-1", /' ./.cargo/config
|
||||
%endif
|
||||
|
||||
%ifarch x86_64
|
||||
sed -i '/\[build\]/a target="x86_64-unknown-linux-musl"' ./.cargo/config
|
||||
sed -i 's/rustflags = \[/&"-Clink-arg=-lpixman-1", /' ./.cargo/config
|
||||
%endif
|
||||
|
||||
sed -i '/\[source.crates-io\]/{n;d}' ./.cargo/config
|
||||
sed -i '/\[source.local-registry\]/{n;d}' ./.cargo/config
|
||||
sed -i '/\[source.local-registry\]/a directory = "vendor"' ./.cargo/config
|
||||
|
||||
%ifarch aarch64
|
||||
sed -i 's/rustflags = \[/rustflags = \["-Clink-arg=-lgcc", /g' ./.cargo/config
|
||||
sed -i 's/rustflags = \[/&"-Clink-arg=-lgcc", /' ./.cargo/config
|
||||
%endif
|
||||
sed -i 's/rustflags = \[/&"-Clink-arg=-lpixman-1", /' ./.cargo/config
|
||||
|
||||
%cargo_build -a
|
||||
|
||||
@ -74,6 +74,9 @@ chmod 555 ${RPM_BUILD_ROOT}/usr/bin/stratovirt
|
||||
chmod 555 ${RPM_BUILD_ROOT}/usr/bin/ozone
|
||||
|
||||
%changelog
|
||||
* Wed Aug 24 2022 yezengruan <yezengruan@huawei.com> - 2.2.0-4
|
||||
- Delete repeated changes to the rustflags in .cargo/config
|
||||
|
||||
* Tue Aug 23 2022 yezengruan <yezengruan@huawei.com> - 2.2.0-3
|
||||
- Update to StratoVirt 2.2.0-rc3
|
||||
- Support VNC, usb keyboard, usb tablet, and virtio-gpu
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user