Fix builds with Rust 1.67

(cherry picked from commit da385098577c4cc6b33112a050c9034847550a7b)
This commit is contained in:
wu-leilei 2023-03-09 18:46:43 +08:00 committed by openeuler-sync-bot
parent ab211b9eb9
commit 9aec10d859

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
* Thu Mar 09 2023 wulei <wulei80@h-partners.com> - 1.1.2-4
- Fix builds with Rust 1.67
* Fri Dec 09 2022 dingdingaaaaa <dingziwei@kylinos.cn> - 1.1.2-3
- Enable debuginfo for fix strip