From fd9e1d2ffdf61e76b316c91a22149ac1f4bb92f9 Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Wed, 18 Aug 2021 00:59:48 +0800 Subject: [PATCH] alvistack/v3.4.1 git clean -xdf go mod download go mod vendor tar zcvf ../podman_3.4.1.orig.tar.gz --exclude=.git . debuild -uc -us cp podman.spec ../podman_3.4.1-1.spec mv ../podman*3.4.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/containers-podman-3.4.1/ rm -rf ../podman*3.4.1* Signed-off-by: Wong Hoi Sing Edison --- debian/.gitignore | 6 +++ debian/changelog | 5 ++ debian/control | 46 ++++++++++++++++ debian/copyright | 0 debian/podman.install | 17 ++++++ debian/podman.lintian-overrides | 6 +++ debian/rules | 29 ++++++++++ debian/source/format | 1 + debian/source/lintian-overrides | 1 + podman.spec | 95 +++++++++++++++++++++++++++++++++ 10 files changed, 206 insertions(+) create mode 100644 debian/.gitignore create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/podman.install create mode 100644 debian/podman.lintian-overrides create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/lintian-overrides create mode 100644 podman.spec diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000000..73cd502bd3 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,6 @@ +*.substvars +*debhelper* +.debhelper +files +podman +tmp diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000..e53481eeba --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +podman (100:3.4.1-1) UNRELEASED; urgency=medium + + * https://github.com/containers/podman/releases/tag/v3.4.1 + + -- Wong Hoi Sing Edison Tue, 31 Aug 2021 12:20:54 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000..05fd945bdb --- /dev/null +++ b/debian/control @@ -0,0 +1,46 @@ +Source: podman +Section: devel +Priority: optional +Standards-Version: 4.5.0 +Maintainer: Wong Hoi Sing Edison +Homepage: https://github.com/containers/podman/tags +Vcs-Browser: https://github.com/alvistack/podman +Vcs-Git: https://github.com/alvistack/podman.git +Build-Depends: + debhelper, + debhelper-compat (= 10), + golang-1.17, + libapparmor-dev, + libassuan-dev, + libglib2.0-dev, + libgpg-error-dev, + libgpgme-dev, + libseccomp-dev, + libsystemd-dev, + tzdata, + +Package: podman +Architecture: linux-any +Description: Daemon-less container engine for managing containers, pods and images + Podman is a container engine for managing pods, containers, and + container images. It is a standalone tool and it directly manipulates + containers without the need of a container engine daemon. Podman is able + to interact with container images create in buildah, cri-o, and skopeo, + as they all share the same datastore backend. +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + catatonit, + conmon, + containernetworking-plugins, + containers-common, + iptables, + libapparmor1, + libassuan0, + libglib2.0-0, + libgpg-error0, + libgpgme11, + libseccomp2, + libsystemd0, + oci-runtime, + tzdata, diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000000..e69de29bb2 diff --git a/debian/podman.install b/debian/podman.install new file mode 100644 index 0000000000..311f03e567 --- /dev/null +++ b/debian/podman.install @@ -0,0 +1,17 @@ +lib/systemd/system/podman-auto-update.service +lib/systemd/system/podman-auto-update.timer +lib/systemd/system/podman-restart.service +lib/systemd/system/podman.service +lib/systemd/system/podman.socket +lib/systemd/user/podman-auto-update.service +lib/systemd/user/podman-auto-update.timer +lib/systemd/user/podman-restart.service +lib/systemd/user/podman.service +lib/systemd/user/podman.socket +usr/bin/podman +usr/share/bash-completion/completions/podman +usr/share/bash-completion/completions/podman-remote +usr/share/fish/vendor_completions.d/podman-remote.fish +usr/share/fish/vendor_completions.d/podman.fish +usr/share/zsh/site-functions/_podman +usr/share/zsh/site-functions/_podman-remote diff --git a/debian/podman.lintian-overrides b/debian/podman.lintian-overrides new file mode 100644 index 0000000000..67b731c02b --- /dev/null +++ b/debian/podman.lintian-overrides @@ -0,0 +1,6 @@ +podman: copyright-without-copyright-notice +podman: hardening-no-pie +podman: initial-upload-closes-no-bugs +podman: no-manual-page +podman: statically-linked-binary +podman: zero-byte-file-in-doc-directory diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000..6fa54d42df --- /dev/null +++ b/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +SHELL := /bin/bash + +override_dh_auto_build: + mkdir -p bin + set -ex && \ + export CGO_ENABLED=1 && \ + go build \ + -mod vendor -buildmode pie -v \ + -ldflags "-s -w" \ + -tags "netgo osusergo exclude_graphdriver_devicemapper exclude_graphdriver_btrfs containers_image_openpgp seccomp apparmor" \ + -o ./bin/podman ./cmd/podman + +override_dh_auto_install: + install -Dpm755 -d debian/tmp/usr/bin + install -Dpm755 -t debian/tmp/usr/bin bin/podman + DESTDIR=debian/tmp \ + PREFIX=/usr \ + SYSTEMDDIR=/lib/systemd/system \ + USERSYSTEMDDIR=/lib/systemd/user \ + make install.completions install.systemd + +override_dh_auto_test: + +override_dh_auto_clean: + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000000..163aaf8d82 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000000..1612f5300f --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1 @@ +podman source: no-debian-changes diff --git a/podman.spec b/podman.spec new file mode 100644 index 0000000000..29023a1c95 --- /dev/null +++ b/podman.spec @@ -0,0 +1,95 @@ +%global debug_package %{nil} + +Name: podman +Epoch: 100 +Version: 3.4.1 +Release: 1%{?dist} +Summary: Daemon-less container engine for managing containers, pods and images +License: Apache-2.0 +URL: https://github.com/containers/podman/tags +Source0: %{name}_%{version}.orig.tar.gz +%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150000 +BuildRequires: timezone +%else +BuildRequires: tzdata +%endif +BuildRequires: golang-1.17 +BuildRequires: glibc-static +BuildRequires: glib2-devel +BuildRequires: gpgme-devel +BuildRequires: libassuan-devel +BuildRequires: libgpg-error-devel +BuildRequires: libseccomp-devel +BuildRequires: make +BuildRequires: pkgconfig +BuildRequires: systemd-devel +%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150000 +Requires: timezone +%else +Requires: tzdata +%endif +Requires: catatonit +Requires: conmon +Requires: containernetworking-plugins +Requires: containers-common +Requires: iptables +Requires: libassuan.so.0()(64bit) +Requires: libglib-2.0.so.0()(64bit) +Requires: libgpgme.so.11()(64bit) +Requires: libseccomp.so.2()(64bit) +Requires: libsystemd.so.0()(64bit) +Requires: oci-runtime + +%description +Podman is a container engine for managing pods, containers, and +container images. It is a standalone tool and it directly manipulates +containers without the need of a container engine daemon. Podman is able +to interact with container images create in buildah, cri-o, and skopeo, +as they all share the same datastore backend. + +%prep +%autosetup -T -c -n %{name}_%{version}-%{release} +tar -zx -f %{S:0} --strip-components=1 -C . + +%build +mkdir -p bin +set -ex && \ + export CGO_ENABLED=1 && \ + go build \ + -mod vendor -buildmode pie -v \ + -ldflags "-s -w" \ + -tags "netgo osusergo exclude_graphdriver_devicemapper exclude_graphdriver_btrfs containers_image_openpgp seccomp selinux" \ + -o ./bin/podman ./cmd/podman + +%install +install -Dpm755 -d %{buildroot}%{_bindir} +install -Dpm755 -t %{buildroot}%{_bindir}/ bin/podman +DESTDIR=%{buildroot} \ +PREFIX=%{_prefix} \ +SYSTEMDDIR=%{_unitdir} \ +USERSYSTEMDDIR=%{_userunitdir} \ + make install.completions install.systemd + +%files +%license LICENSE +%dir %{_prefix}/share/fish +%dir %{_prefix}/share/fish/vendor_completions.d +%{_bindir}/podman +%{_prefix}/share/bash-completion/completions/podman +%{_prefix}/share/bash-completion/completions/podman-remote +%{_prefix}/share/fish/vendor_completions.d/podman-remote.fish +%{_prefix}/share/fish/vendor_completions.d/podman.fish +%{_prefix}/share/zsh/site-functions/_podman +%{_prefix}/share/zsh/site-functions/_podman-remote +%{_unitdir}/podman-auto-update.service +%{_unitdir}/podman-auto-update.timer +%{_unitdir}/podman-restart.service +%{_unitdir}/podman.service +%{_unitdir}/podman.socket +%{_userunitdir}/podman-auto-update.service +%{_userunitdir}/podman-auto-update.timer +%{_userunitdir}/podman-restart.service +%{_userunitdir}/podman.service +%{_userunitdir}/podman.socket + +%changelog