!15 Fix build error with Rust 1.67

From: @duyiwei7w 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-05-26 08:51:14 +00:00 committed by Gitee
commit d95034acdb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
Name: rust-%{crate}
Version: 1.1.2
Release: 3
Release: 4
Summary: Systemd unit generator for zram swap devices
License: MIT
@ -42,6 +42,7 @@ BuildArch: noarch
cp -a %{S:1} .
tar zxvf %{SOURCE2}
%cargo_prep
find %{_builddir} -type f -name 'Cargo.toml.orig' -exec rm -rf '{}' ';'
mkdir -p .cargo
cat >.cargo/config << EOF
@ -86,6 +87,9 @@ rm -rf %{buildroot}%{cargo_registry}/%{crate}-%{version}
%{_prefix}/lib/systemd/zram-generator.conf
%changelog
* Fri May 26 2023 duyiwei <duyiwei@kylinos.cn> - 1.1.2-4
- Fix build error with Rust 1.67
* Fri Dec 09 2022 dingdingaaaaa <dingziwei@kylinos.cn> - 1.1.2-3
- Enable debuginfo for fix strip