use easier tag macros to make both fedora and debbuild happy
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
6a02556de3
commit
d7b87c116f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user