enable debbuild
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
4732a1c622
commit
6a02556de3
@ -1,3 +1,7 @@
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
%define gobuild(o:) GO111MODULE=off go build -buildmode pie -tags=" ${BUILDTAGS:-}" -a -v -x %{?**};
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora}
|
||||
%global with_debug 1
|
||||
%else
|
||||
@ -22,16 +26,27 @@
|
||||
|
||||
Name: %{project}-%{repo}
|
||||
Version: 1.1.1
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
Packager: Podman Debbuild Maintainers <https://github.com/orgs/containers/teams/podman-debbuild-maintainers>
|
||||
License: ASL-2.0+
|
||||
Release: 0%{?dist}
|
||||
%else
|
||||
Release: %autorelease
|
||||
Summary: Libraries for writing CNI plugin
|
||||
License: ASL 2.0 and BSD and MIT
|
||||
%endif
|
||||
Summary: Libraries for writing CNI plugin
|
||||
URL: %{git0}
|
||||
Source0: %{git0}/archive/%{built_tag}.tar.gz
|
||||
BuildRequires: golang >= 1.16.6
|
||||
BuildRequires: go-rpm-macros
|
||||
BuildRequires: go-md2man
|
||||
BuildRequires: go-rpm-macros
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
BuildRequires: libsystemd-dev
|
||||
%else
|
||||
BuildRequires: systemd-devel
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 9
|
||||
BuildRequires: go-rpm-macros
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: go-md2man
|
||||
Requires: systemd
|
||||
|
||||
Obsoletes: %{project}-cni < 0.7.1-2
|
||||
@ -122,4 +137,6 @@ install -p plugins/ipam/dhcp/systemd/cni-dhcp.socket %{buildroot}%{_unitdir}
|
||||
%{_unitdir}/cni-dhcp.socket
|
||||
|
||||
%changelog
|
||||
%if "%{_vendor}" != "debbuild"
|
||||
%autochangelog
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user