diff --git a/.nestos-installer.spec.swp b/.nestos-installer.spec.swp deleted file mode 100644 index 8bd3462..0000000 Binary files a/.nestos-installer.spec.swp and /dev/null differ diff --git a/nestos-installer-0.10.0.crate.tar.gz b/nestos-installer-0.10.0.crate.tar.gz deleted file mode 100644 index bb684bf..0000000 Binary files a/nestos-installer-0.10.0.crate.tar.gz and /dev/null differ diff --git a/nestos-installer.spec b/nestos-installer.spec index ccb9186..56fb89b 100644 --- a/nestos-installer.spec +++ b/nestos-installer.spec @@ -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 - 0.10.0-2 +- change tar.gz to be the same with upstream + * Thu Mar 17 2022 duyiwei - 0.10.1-1 - init package diff --git a/v0.10.0.tar.gz b/v0.10.0.tar.gz new file mode 100644 index 0000000..ef1ddda Binary files /dev/null and b/v0.10.0.tar.gz differ