build deb packages using debbuild

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2022-05-18 13:56:21 -04:00
parent 774b56b3f8
commit 48a46928b8

View File

@ -16,18 +16,25 @@
Epoch: 4 Epoch: 4
Name: containers-common Name: containers-common
Version: 1 Version: 1
%if "%{_vendor}" == "debbuild"
Release: 0%{?dist}
License: ASL-2.0+
%else
Release: %autorelease Release: %autorelease
Summary: Common configuration and documentation for containers
License: ASL 2.0 License: ASL 2.0
BuildArch: noarch BuildArch: noarch
%endif
Summary: Common configuration and documentation for containers
BuildRequires: go-md2man BuildRequires: go-md2man
Provides: skopeo-containers = %{epoch}:%{version}-%{release} Provides: skopeo-containers = %{epoch}:%{version}-%{release}
Requires: slirp4netns
Recommends: fuse-overlayfs
%if "%{_vendor}" != "debbuild"
Requires: (container-selinux >= 2:2.162.1 if selinux-policy) Requires: (container-selinux >= 2:2.162.1 if selinux-policy)
%endif
Requires: oci-runtime Requires: oci-runtime
Requires: container-network-stack Requires: container-network-stack
Recommends: netavark Recommends: netavark
Recommends: fuse-overlayfs
Recommends: slirp4netns
Source1: %{github_containers}/common/%{common_branch}/docs/containers.conf.5.md Source1: %{github_containers}/common/%{common_branch}/docs/containers.conf.5.md
Source2: %{github_containers}/common/%{common_branch}/pkg/config/containers.conf Source2: %{github_containers}/common/%{common_branch}/pkg/config/containers.conf
Source3: %{github_containers}/common/%{common_branch}/pkg/seccomp/seccomp.json Source3: %{github_containers}/common/%{common_branch}/pkg/seccomp/seccomp.json
@ -52,7 +59,9 @@ Source21: registry.access.redhat.com.yaml
Source22: registry.redhat.io.yaml Source22: registry.redhat.io.yaml
Source23: %{github_containers}/common/%{common_branch}/docs/Containerfile.5.md Source23: %{github_containers}/common/%{common_branch}/docs/Containerfile.5.md
Source24: %{github_containers}/common/%{common_branch}/docs/containerignore.5.md Source24: %{github_containers}/common/%{common_branch}/docs/containerignore.5.md
%if "%{_vendor}" != "debbuild"
Source25: %{github_containers}/common/%{common_branch}/docs/links/.containerignore.5 Source25: %{github_containers}/common/%{common_branch}/docs/links/.containerignore.5
%endif
%description %description
@ -88,7 +97,9 @@ cp %{SOURCE21} .
cp %{SOURCE22} . cp %{SOURCE22} .
cp %{SOURCE23} . cp %{SOURCE23} .
cp %{SOURCE24} . cp %{SOURCE24} .
%if "%{_vendor}" != "debbuild"
cp %{SOURCE25} . cp %{SOURCE25} .
%endif
%if 0%{?rhel} <= 8 %if 0%{?rhel} <= 8
sed -i 's/log_driver = "journald"/#log_driver = "journald"/' containers.conf sed -i 's/log_driver = "journald"/#log_driver = "journald"/' containers.conf
@ -163,4 +174,6 @@ ln -s %{_sysconfdir}/yum.repos.d/redhat.repo %{buildroot}%{_datadir}/rhel/secret
%{_datadir}/rhel/secrets/* %{_datadir}/rhel/secrets/*
%changelog %changelog
%if "%{_vendor}" != "debbuild"
%autochangelog %autochangelog
%endif