!3 [sync] PR-2: change tar.gz to be the same with upstream

From: @openeuler-sync-bot 
Reviewed-by: @fu-shanqing 
Signed-off-by: @fu-shanqing
This commit is contained in:
openeuler-ci-bot 2022-11-17 06:28:41 +00:00 committed by Gitee
commit ae570d0eee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 8 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -10,14 +10,14 @@
Name: rust-nestos-installer
Version: 0.10.0
Release: 1
Release: 2
Summary: Installer for NestOS
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: https://gitee.com/openeuler/nestos-installer
Source0: https://gitee.com/openeuler/%{crate}/blob/master/%{crate}-%{version}.crate.tar.gz
Source1: https://gitee.com/openeuler/%{crate}/blob/master/%{crate}-%{version}-vendor.tar.gz
Source0: https://gitee.com/openeuler/nestos-installer/repository/archive/v%{version}.tar.gz
Source1: %{crate}-%{version}-vendor.tar.gz
BuildRequires: rust-packaging openssl-devel
@ -64,7 +64,7 @@ Obsoletes: nestos-installer-dracut < 0.0.1
%{_bindir}/nestos-installer
%prep
%autosetup -n %{crate}-%{version} -p1
%autosetup -n %{crate}-v%{version} -p1
tar xvf %{SOURCE1}
%cargo_prep
sed -i 's/"-Ccodegen-units=1",//' .cargo/config
@ -97,7 +97,7 @@ install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/nestos-installer.target
install -D -m 0644 -t %{buildroot}%{_unitdir} systemd/nestos-installer-post.target
install -D -m 0755 -t %{buildroot}%{_systemdgeneratordir} systemd/nestos-installer-generator
cp -r $RPM_BUILD_DIR/%{crate}-%{version}/.cargo/bin %{buildroot}/usr
cp -r $RPM_BUILD_DIR/%{crate}-v%{version}/.cargo/bin %{buildroot}/usr
mv %{buildroot}%{_bindir}/rdcore %{buildroot}%{dracutlibdir}/modules.d/50rdcore/
%package -n nestos-installer-bootinfra
@ -119,5 +119,8 @@ This subpackage contains boot-time infrastructure for NestOS. It is not needed
%changelog
* Wed Jun 08 2022 duyiwei <duyiwei@kylinos.cn> - 0.10.0-2
- change tar.gz to be the same with upstream
* Thu Mar 17 2022 duyiwei <duyiwei@kylinos.cn> - 0.10.1-1
- init package

BIN
v0.10.0.tar.gz Normal file

Binary file not shown.