From ba15707f75b31f88cee3f2b6e799f5faa7ac7dcb Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 17 Aug 2022 14:28:35 -0400 Subject: [PATCH] use easier tag macros to make both fedora and debbuild happy Signed-off-by: Lokesh Mandvekar --- netavark.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netavark.spec b/netavark.spec index f9f207c..a659470 100644 --- a/netavark.spec +++ b/netavark.spec @@ -4,7 +4,7 @@ %global debug_package %{nil} -%global built_tag v1.1.0 +%global built_tag_strip 1.1.0 Name: netavark Version: 1.1.0 @@ -19,8 +19,8 @@ ExclusiveArch: %{rust_arches} %endif Summary: OCI network stack URL: https://github.com/containers/%{name} -Source0: %{url}/archive/%{built_tag}/%{version}.tar.gz -Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.gz +Source0: %{url}/archive/v%{built_tag_strip}.tar.gz +Source1: %{url}/releases/download/v%{built_tag_strip}/%{name}-v%{built_tag_strip}-vendor.tar.gz BuildRequires: cargo BuildRequires: go-md2man Recommends: aardvark-dns >= 1.0.3 @@ -197,7 +197,7 @@ Its features include: * Support for container DNS resolution via aardvark-dns. %prep -%autosetup -Sgit +%autosetup -Sgit %{name}-%{built_tag_strip} tar fx %{SOURCE1} mkdir -p .cargo