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