From dd00333aef9b5e2fd0ee3030d7e63ae8e4b93f86 Mon Sep 17 00:00:00 2001 From: Sohan Kunkerkar Date: Mon, 17 Jan 2022 11:39:59 -0500 Subject: [PATCH] Keep vendor tarball source line unconditionally on Fedora The conditional on `Sources` fails to download the vendor tarball on C9S and RHEL9, so it's better to remove conditional to avoid build failures. --- .gitignore | 1 + rust-afterburn.spec | 3 +-- sources | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7da1f5f..68e9d38 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /afterburn-5.0.0.crate /afterburn-5.1.0.crate /afterburn-5.2.0.crate +/afterburn-5.2.0-vendor.tar.gz diff --git a/rust-afterburn.spec b/rust-afterburn.spec index 0934c5a..a7ef9e8 100644 --- a/rust-afterburn.spec +++ b/rust-afterburn.spec @@ -15,9 +15,8 @@ Summary: Simple cloud provider agent License: ASL 2.0 URL: https://crates.io/crates/afterburn Source0: %{crates_source} -%if 0%{?rhel} && !0%{?eln} +# not used on Fedora Source1: https://github.com/coreos/%{crate}/releases/download/v%{version}/%{crate}-%{version}-vendor.tar.gz -%endif ExclusiveArch: %{rust_arches} %if 0%{?rhel} && !0%{?eln} diff --git a/sources b/sources index 1f115cb..a031a0d 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ SHA512 (afterburn-5.2.0.crate) = f988eec2dd5f677d75a09eede3974ac7161ccd7b691908d3af560aa035cdbd93ee0e4f6f86f3a747882ce7d0c88a84a263a9d59afb0205d24f0041e6d53e41de +SHA512 (afterburn-5.2.0-vendor.tar.gz) = bfba2ecccc85fd57acd3f457018504398147da7c6b1019c6f618c4a21eeeb2791418dd36c5d7b5cd4f903ad7c9cf2dcfa5f40d413a67927b2538a4a4b51c9c84