From 86bf17df7f966a2e79466deca1b9dab6ea07ea17 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 15:41:02 +0000 Subject: [PATCH] import UBI catatonit-0.2.1-1.el10 --- .catatonit.metadata | 1 - .gitignore | 2 +- SPECS/catatonit.spec | 116 ------------------------------------------- catatonit.spec | 80 +++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 82 insertions(+), 118 deletions(-) delete mode 100644 .catatonit.metadata delete mode 100644 SPECS/catatonit.spec create mode 100644 catatonit.spec create mode 100644 sources diff --git a/.catatonit.metadata b/.catatonit.metadata deleted file mode 100644 index b95da93..0000000 --- a/.catatonit.metadata +++ /dev/null @@ -1 +0,0 @@ -0efd7357b4a8dbf09a25987515660255eb5b5395 SOURCES/v0.2.1.tar.gz diff --git a/.gitignore b/.gitignore index e31c674..a51fa8b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/v0.2.1.tar.gz +v0.2.1.tar.gz diff --git a/SPECS/catatonit.spec b/SPECS/catatonit.spec deleted file mode 100644 index 8b3f4ed..0000000 --- a/SPECS/catatonit.spec +++ /dev/null @@ -1,116 +0,0 @@ -Name: catatonit -Epoch: 3 -Version: 0.2.1 -Release: 1%{?dist} -Summary: A signal-forwarding process manager for containers -License: GPLv3+ -URL: https://github.com/openSUSE/catatonit -Source0: https://github.com/openSUSE/catatonit/archive/v%{version}.tar.gz -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: file -BuildRequires: gcc -BuildRequires: git -BuildRequires: glibc-static -BuildRequires: libtool - -%description -Catatonit is a /sbin/init program for use within containers. It -forwards (almost) all signals to the spawned child, tears down -the container when the spawned child exits, and otherwise -cleans up other exited processes (zombies). - -This is a reimplementation of other container init programs (such as -"tini" or "dumb-init"), but uses modern Linux facilities (such as -signalfd(2)) and has no additional features. - -%prep -%autosetup -Sgit -n %{name}-%{version} -sed -i '/^AM_INIT_AUTOMAKE$/d' configure.ac - -%build -autoreconf -fi -%configure -%{__make} %{?_smp_mflags} - -# Make sure we *always* build a static binary. Otherwise we'll break containers -# that don't have the necessary shared libs. -file ./%{name} | grep 'statically linked' -if [ $? != 0 ]; then - echo "ERROR: %{name} binary must be statically linked!" - exit 1 -fi - -%install -install -dp %{buildroot}%{_libexecdir}/%{name} -install -p %{name} %{buildroot}%{_libexecdir}/%{name} - -%files -%license COPYING -%doc README.md -%dir %{_libexecdir}/%{name} -%{_libexecdir}/%{name}/%{name} - -%changelog -* Mon Dec 16 2024 Jindrich Novy - 3:0.2.1-1 -- update to https://github.com/openSUSE/catatonit/releases/tag/v0.2.1 -- Related: RHEL-60277 - -* Mon Dec 09 2024 Jindrich Novy - 3:0.2.0-2 -- add rpminspect.yaml -- Resolves: RHEL-70588 - -* Wed Oct 04 2023 Jindrich Novy - 3:0.2.0-1 -- update to https://github.com/openSUSE/catatonit/releases/tag/v0.2.0 -- Related: Jira:RHEL-2112 - -* Wed Jun 21 2023 Jindrich Novy - 3:0.1.7-10 -- bump release to preserve upgrade path from 9.2 -- Resolves: #2209677 - -* Mon May 29 2023 Jindrich Novy - 3:0.1.7-9 -- rebuild for 9.3 -- Resolves: #2209677 - -* Wed Jan 11 2023 Jindrich Novy - 3:0.1.7-8 -- remove any relation to podman-catatonit -- Related: #2151322 - -* Tue Jul 26 2022 Jindrich Novy - 3:0.1.7-7 -- make sure podman-catatonit is always obsoleted -- Related: #2061316 - -* Fri Jul 22 2022 Lokesh Mandvekar - 3:0.1.7-6 -- Rebuild for combined gating with podman -- Related: #2061316 - -* Fri Jul 22 2022 Lokesh Mandvekar - 3:0.1.7-5 -- Empty ruleset in gating.yaml -- Related: #2061316 - -* Wed Jul 20 2022 Lokesh Mandvekar - 3:0.1.7-4 -- Remove osci.brew-build.tier0.functional from gating.yaml -- Related: #2061316 - -* Tue Jul 19 2022 Lokesh Mandvekar - 3:0.1.7-3 -- Add gating.yaml to dist-git -- Related: #2061316 - -* Tue Jul 19 2022 Lokesh Mandvekar - 3:0.1.7-2 -- Obsolete and provides podman-catatonit -- Related: #2061316 - -* Tue Jun 28 2022 Jindrich Novy - 0.1.7-1 -- update to 0.1.7 -- Related: #2061316 - -* Wed Apr 29 2020 Lokesh Mandvekar - 0.1.5-2 -- complain if not statically linked, patch from Jindrich Novy - -* Wed Apr 29 2020 Lokesh Mandvekar - 0.1.5-1 -- bump to v0.1.5 -- static binary to not break containers that don't have necessary shared libs - -* Wed Feb 19 2020 Lokesh Mandvekar - 0.1.4-1 -- first build for review -- source copied from openSUSE @ https://build.opensuse.org/package/show/openSUSE:Factory/catatonit diff --git a/catatonit.spec b/catatonit.spec new file mode 100644 index 0000000..7db3147 --- /dev/null +++ b/catatonit.spec @@ -0,0 +1,80 @@ +Name: catatonit +Version: 0.2.1 +Summary: A signal-forwarding process manager for containers +License: GPL-3.0-or-later +Release: 1%{?dist} +# Bump epoch to 5 for RHEL +# Ref: https://bugzilla.redhat.com/show_bug.cgi?id=2257446 +Epoch: 5 +%if %{defined golang_arches_future} +ExclusiveArch: %{golang_arches_future} +%else +ExclusiveArch: aarch64 ppc64le s390x x86_64 +%endif +URL: https://github.com/openSUSE/%{name} +# Tarball fetched from upstream +Source0: %{url}/archive/v%{version}.tar.gz +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: file +BuildRequires: libtool +Provides: podman-%{name} = %{version}-%{release} +BuildRequires: gcc +BuildRequires: git-core +BuildRequires: glibc-static +BuildRequires: make + +%description +Catatonit is a %{_sbindir}/init program for use within containers. It +forwards (almost) all signals to the spawned child, tears down +the container when the spawned child exits, and otherwise +cleans up other exited processes (zombies). + +This is a reimplementation of other container init programs (such as +"tini" or "dumb-init"), but uses modern Linux facilities (such as +signalfd(2)) and has no additional features. + +%prep +%autosetup -Sgit %{name}-%{version} +sed -i '/^AM_INIT_AUTOMAKE$/d' configure.ac + +%build +autoreconf -fi +%configure +CFLAGS="%{optflags} -fPIE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" +%{__make} %{?_smp_mflags} + +# Make sure we *always* build a static binary. Otherwise we'll break containers +# that don't have the necessary shared libs. +file ./%{name} | grep 'statically linked' +if [ $? != 0 ]; then + echo "ERROR: %{name} binary must be statically linked!" + exit 1 +fi + +%install +install -dp %{buildroot}%{_libexecdir}/%{name} +install -p %{name} %{buildroot}%{_libexecdir}/%{name} +install -dp %{buildroot}%{_libexecdir}/podman +ln -s %{_libexecdir}/%{name}/%{name} %{buildroot}%{_libexecdir}/podman/%{name} + +%files +%license COPYING +%doc README.md +%dir %{_libexecdir}/%{name} +%{_libexecdir}/%{name}/%{name} +%dir %{_libexecdir}/podman +%{_libexecdir}/podman/%{name} + +%changelog +* Mon Dec 16 2024 Jindrich Novy - 5:0.2.1-1 +- update to https://github.com/openSUSE/catatonit/releases/tag/v0.2.1 +- Related: RHEL-58990 + +* Fri Dec 13 2024 Jindrich Novy - 5:0.2.0-2 +- Add missing symlink and rebuild +- Resolves: RHEL-71134 + +* Tue Dec 10 2024 Jindrich Novy - 5:0.2.0-1 +- update to https://github.com/openSUSE/catatonit/releases/tag/v0.2.0 +- Resolves: RHEL-70589 diff --git a/sources b/sources new file mode 100644 index 0000000..a612c8f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (v0.2.1.tar.gz) = 39fb66900e9c9541470a70bec66dc77cf04ef237aa69bbc4fbb4025ef3de5c335f8b28cb41d60cd4525683a61d270dc8582b200606c474817035a0ffd9afb849