!6 [sync] PR-4: 升级afterburn至5.2.0

From: @openeuler-sync-bot 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
This commit is contained in:
openeuler-ci-bot 2022-11-04 01:51:59 +00:00 committed by Gitee
commit 7b1ec7d0d6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 13 additions and 11 deletions

Binary file not shown.

BIN
afterburn-5.2.0.crate Normal file

Binary file not shown.

View File

@ -7,12 +7,11 @@
%global crate afterburn
Name: rust-%{crate}
Version: 5.1.0
Version: 5.2.0
Release: 1
Summary: Simple cloud provider agent
# Upstream license specification: Apache-2.0
License: ASL 2.0
License: Apache-2.0
URL: https://crates.io/crates/afterburn
Source0: %{crate}-%{version}.crate
Source1: %{crate}-%{version}-vendor.tar.gz
@ -27,7 +26,7 @@ Simple cloud provider agent.}
%package -n %{crate}
Summary: %{summary}
License: ASL 2.0 and MIT and BSD and zlib
License: ASL 2.0 and MIT and BSD and 0BSD
%{?systemd_requires}
%description -n %{crate} %{_description}
@ -76,15 +75,9 @@ to run in the initramfs on boot.
%prep
%autosetup -n %{crate}-%{version} -p1
# afterburn-sshkeys@.service is by default enabled for the 'core' user in NestOS
tar xvf %{SOURCE1}
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
systemd/afterburn-sshkeys@.service.in > \
systemd/afterburn-sshkeys@.service
%cargo_prep
mkdir -p .cargo
cat >.cargo/config << EOF
@ -95,6 +88,12 @@ replace-with = "vendored-sources"
directory = "vendor"
EOF
# afterburn-sshkeys@.service is by default enabled for the 'core' user in NestOS
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
systemd/afterburn-sshkeys@.service.in > \
systemd/afterburn-sshkeys@.service
%build
%cargo_build
@ -105,8 +104,11 @@ install -Dpm0644 -t %{buildroot}%{_unitdir} \
mkdir -p %{buildroot}%{dracutmodulesdir}
cp -a dracut/* %{buildroot}%{dracutmodulesdir}
cp -r $RPM_BUILD_DIR/afterburn-5.1.0/.cargo/bin %{buildroot}/usr
cp -r $RPM_BUILD_DIR/afterburn-5.2.0/.cargo/bin %{buildroot}/usr
%changelog
* Thu Jun 2 2022 duyiwei <duyiwei@kylinos.cn> - 5.2.0-1
- upgrade version to 5.2.0
* Fri Dec 24 2021 duyiwei <duyiwei@kylinos.cn> - 5.1.0-1
- Package init