From d7b87c116f4d581465120f28ce37777785e39971 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 17 Aug 2022 14:44:31 -0400 Subject: [PATCH] use easier tag macros to make both fedora and debbuild happy Signed-off-by: Lokesh Mandvekar --- containernetworking-plugins.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/containernetworking-plugins.spec b/containernetworking-plugins.spec index 9137448..f7cdfb3 100644 --- a/containernetworking-plugins.spec +++ b/containernetworking-plugins.spec @@ -22,7 +22,7 @@ %global import_path %{provider}.%{provider_tld}/%{project}/%{repo} %global git0 https://%{import_path} -%global built_tag v1.1.1 +%global built_tag_strip 1.1.1 Name: %{project}-%{repo} Version: 1.1.1 @@ -36,7 +36,7 @@ License: ASL 2.0 and BSD and MIT %endif Summary: Libraries for writing CNI plugin URL: %{git0} -Source0: %{git0}/archive/%{built_tag}.tar.gz +Source0: %{git0}/archive/v%{built_tag_strip}.tar.gz BuildRequires: golang >= 1.16.6 %if "%{_vendor}" == "debbuild" BuildRequires: libsystemd-dev @@ -89,7 +89,7 @@ only with network connectivity of containers and removing allocated resources when the container is deleted. %prep -%autosetup -p1 -n %{repo}-%{version} +%autosetup -p1 -n %{repo}-%{built_tag_strip} rm -rf plugins/main/windows # Use correct paths in cni-dhcp unitfiles