upgrade version to 5.2.0

(cherry picked from commit 1b56ab58c189541d9d6e1fe0787080212550af41)
This commit is contained in:
duyiwei 2022-06-02 09:59:20 +08:00 committed by openeuler-sync-bot
parent 1320b8f0f4
commit 7ce9e80b5c
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 %global crate afterburn
Name: rust-%{crate} Name: rust-%{crate}
Version: 5.1.0 Version: 5.2.0
Release: 1 Release: 1
Summary: Simple cloud provider agent Summary: Simple cloud provider agent
# Upstream license specification: Apache-2.0 License: Apache-2.0
License: ASL 2.0
URL: https://crates.io/crates/afterburn URL: https://crates.io/crates/afterburn
Source0: %{crate}-%{version}.crate Source0: %{crate}-%{version}.crate
Source1: %{crate}-%{version}-vendor.tar.gz Source1: %{crate}-%{version}-vendor.tar.gz
@ -27,7 +26,7 @@ Simple cloud provider agent.}
%package -n %{crate} %package -n %{crate}
Summary: %{summary} Summary: %{summary}
License: ASL 2.0 and MIT and BSD and zlib License: ASL 2.0 and MIT and BSD and 0BSD
%{?systemd_requires} %{?systemd_requires}
%description -n %{crate} %{_description} %description -n %{crate} %{_description}
@ -76,15 +75,9 @@ to run in the initramfs on boot.
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
# afterburn-sshkeys@.service is by default enabled for the 'core' user in NestOS
tar xvf %{SOURCE1} tar xvf %{SOURCE1}
sed -e 's,@DEFAULT_INSTANCE@,core,' < \
systemd/afterburn-sshkeys@.service.in > \
systemd/afterburn-sshkeys@.service
%cargo_prep
mkdir -p .cargo mkdir -p .cargo
cat >.cargo/config << EOF cat >.cargo/config << EOF
@ -95,6 +88,12 @@ replace-with = "vendored-sources"
directory = "vendor" directory = "vendor"
EOF 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 %build
%cargo_build %cargo_build
@ -105,8 +104,11 @@ install -Dpm0644 -t %{buildroot}%{_unitdir} \
mkdir -p %{buildroot}%{dracutmodulesdir} mkdir -p %{buildroot}%{dracutmodulesdir}
cp -a dracut/* %{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 %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 * Fri Dec 24 2021 duyiwei <duyiwei@kylinos.cn> - 5.1.0-1
- Package init - Package init