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}
|
%if 0%{?fedora}
|
||||||
%global with_debug 1
|
%global with_debug 1
|
||||||
%else
|
%else
|
||||||
@ -22,16 +26,27 @@
|
|||||||
|
|
||||||
Name: %{project}-%{repo}
|
Name: %{project}-%{repo}
|
||||||
Version: 1.1.1
|
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
|
Release: %autorelease
|
||||||
Summary: Libraries for writing CNI plugin
|
|
||||||
License: ASL 2.0 and BSD and MIT
|
License: ASL 2.0 and BSD and MIT
|
||||||
|
%endif
|
||||||
|
Summary: Libraries for writing CNI plugin
|
||||||
URL: %{git0}
|
URL: %{git0}
|
||||||
Source0: %{git0}/archive/%{built_tag}.tar.gz
|
Source0: %{git0}/archive/%{built_tag}.tar.gz
|
||||||
BuildRequires: golang >= 1.16.6
|
BuildRequires: golang >= 1.16.6
|
||||||
BuildRequires: go-rpm-macros
|
%if "%{_vendor}" == "debbuild"
|
||||||
BuildRequires: go-md2man
|
BuildRequires: libsystemd-dev
|
||||||
BuildRequires: go-rpm-macros
|
%else
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
||||||
|
BuildRequires: go-rpm-macros
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
BuildRequires: go-md2man
|
||||||
Requires: systemd
|
Requires: systemd
|
||||||
|
|
||||||
Obsoletes: %{project}-cni < 0.7.1-2
|
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
|
%{_unitdir}/cni-dhcp.socket
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
%if "%{_vendor}" != "debbuild"
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user