change tar.gz
(cherry picked from commit 85042f8bea4c9e9be43a51e57d79410a0c401f6c)
This commit is contained in:
parent
f4dbb39b0c
commit
b03a04d3ed
Binary file not shown.
Binary file not shown.
@ -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
BIN
v0.10.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user