Blame SPECS/catatonit.spec

47126a
Name: catatonit
47126a
Epoch: 3
47126a
Version: 0.1.7
47126a
Release: 7%{?dist}
47126a
Summary: A signal-forwarding process manager for containers
47126a
License: GPLv3+
47126a
URL: https://github.com/openSUSE/catatonit
47126a
Source0: https://github.com/openSUSE/catatonit/archive/v%{version}.tar.gz
47126a
BuildRequires: autoconf
47126a
BuildRequires: automake
47126a
BuildRequires: file
47126a
BuildRequires: gcc
47126a
BuildRequires: git
47126a
BuildRequires: glibc-static
47126a
BuildRequires: libtool
47126a
Obsoletes: podman-%{name} <= 2:4.1.2
47126a
Provides: podman-%{name} = %{epoch}:%{version}-%{release}
47126a
47126a
%description
47126a
Catatonit is a /sbin/init program for use within containers. It
47126a
forwards (almost) all signals to the spawned child, tears down
47126a
the container when the spawned child exits, and otherwise
47126a
cleans up other exited processes (zombies).
47126a
47126a
This is a reimplementation of other container init programs (such as
47126a
"tini" or "dumb-init"), but uses modern Linux facilities (such as
47126a
signalfd(2)) and has no additional features.
47126a
47126a
%prep
47126a
%autosetup -Sgit -n %{name}-%{version}
47126a
47126a
%build
47126a
autoreconf -fi
47126a
%configure
47126a
%{__make} %{?_smp_mflags}
47126a
47126a
# Make sure we *always* build a static binary. Otherwise we'll break containers
47126a
# that don't have the necessary shared libs.
47126a
file ./%{name} | grep 'statically linked'
47126a
if [ $? != 0 ]; then
47126a
   echo "ERROR: %{name} binary must be statically linked!"
47126a
   exit 1
47126a
fi
47126a
47126a
%install
47126a
install -dp %{buildroot}%{_libexecdir}/%{name}
47126a
install -p %{name} %{buildroot}%{_libexecdir}/%{name}
47126a
install -dp %{buildroot}%{_libexecdir}/podman
47126a
ln -s %{_libexecdir}/%{name}/%{name} %{buildroot}%{_libexecdir}/podman/%{name}
47126a
47126a
%files
47126a
%license COPYING
47126a
%doc README.md
47126a
%dir %{_libexecdir}/%{name}
47126a
%{_libexecdir}/%{name}/%{name}
47126a
%dir %{_libexecdir}/podman
47126a
%{_libexecdir}/podman/%{name}
47126a
47126a
%changelog
47126a
* Tue Jul 26 2022 Jindrich Novy <jnovy@redhat.com> - 3:0.1.7-7
47126a
- make sure podman-catatonit is always obsoleted
47126a
- Related: #2061316
47126a
47126a
* Fri Jul 22 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:0.1.7-6
47126a
- Rebuild for combined gating with podman
47126a
- Related: #2061316
47126a
47126a
* Fri Jul 22 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:0.1.7-5
47126a
- Empty ruleset in gating.yaml
47126a
- Related: #2061316
47126a
47126a
* Wed Jul 20 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:0.1.7-4
47126a
- Remove osci.brew-build.tier0.functional from gating.yaml
47126a
- Related: #2061316
47126a
47126a
* Tue Jul 19 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:0.1.7-3
47126a
- Add gating.yaml to dist-git
47126a
- Related: #2061316
47126a
47126a
* Tue Jul 19 2022 Lokesh Mandvekar <lsm5@redhat.com> - 3:0.1.7-2
47126a
- Obsolete and provides podman-catatonit
47126a
- Related: #2061316
47126a
47126a
* Tue Jun 28 2022 Jindrich Novy <jnovy@redhat.com> - 0.1.7-1
47126a
- update to 0.1.7
47126a
- Related: #2061316
47126a
47126a
* Wed Apr 29 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.5-2
47126a
- complain if not statically linked, patch from Jindrich Novy <jnovy@redhat.com>
47126a
47126a
* Wed Apr 29 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.5-1
47126a
- bump to v0.1.5
47126a
- static binary to not break containers that don't have necessary shared libs
47126a
47126a
* Wed Feb 19 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.4-1
47126a
- first build for review
47126a
- source copied from openSUSE @ https://build.opensuse.org/package/show/openSUSE:Factory/catatonit