Blame SPECS/catatonit.spec

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