2021-11-01 06:04:03 +00:00
|
|
|
%global built_tag v0.1.7
|
2021-08-16 18:18:11 +00:00
|
|
|
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
|
2020-04-29 13:35:16 +00:00
|
|
|
|
|
|
|
Name: catatonit
|
2021-11-01 06:04:03 +00:00
|
|
|
Version: 0.1.7
|
2022-01-19 22:56:03 +00:00
|
|
|
Release: 2%{?dist}
|
2020-04-29 13:35:16 +00:00
|
|
|
Summary: A signal-forwarding process manager for containers
|
|
|
|
License: GPLv3+
|
|
|
|
URL: https://github.com/openSUSE/catatonit
|
2021-08-16 18:18:11 +00:00
|
|
|
Source0: %{url}/archive/%{built_tag}.tar.gz
|
2020-04-29 13:35:16 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: file
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: glibc-static
|
|
|
|
BuildRequires: libtool
|
2020-12-17 03:20:53 +00:00
|
|
|
BuildRequires: make
|
2020-04-29 13:35:16 +00:00
|
|
|
|
|
|
|
%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}-%{built_tag_strip}
|
2021-11-08 16:07:54 +00:00
|
|
|
sed -i '$d' configure.ac
|
2020-04-29 13:35:16 +00:00
|
|
|
|
|
|
|
%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}
|
|
|
|
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
|
2022-01-19 22:56:03 +00:00
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-01 06:04:03 +00:00
|
|
|
* Mon Nov 01 2021 RH Container Bot <rhcontainerbot@fedoraproject.org> - 0.1.7-1
|
|
|
|
- autobuilt v0.1.7
|
|
|
|
|
2021-09-16 02:04:03 +00:00
|
|
|
* Thu Sep 16 2021 RH Container Bot <rhcontainerbot@fedoraproject.org> - 0.1.6-1
|
|
|
|
- autobuilt v0.1.6
|
|
|
|
|
2021-08-20 21:36:26 +00:00
|
|
|
* Fri Aug 20 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.5-6
|
|
|
|
- Fix broken upgrade path
|
|
|
|
- Related: https://github.com/coreos/fedora-coreos-config/pull/1174
|
|
|
|
|
2021-07-21 19:11:34 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-26 01:42:00 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-27 13:42:00 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-04-29 13:35:16 +00:00
|
|
|
* Wed Apr 29 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.5-2
|
|
|
|
- complain if not statically linked, patch from Jindrich Novy <jnovy@redhat.com>
|
|
|
|
|
|
|
|
* Wed Apr 29 2020 Lokesh Mandvekar <lsm5@fedoraproject.org> - 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 <lsm5@fedoraproject.org> - 0.1.4-1
|
|
|
|
- first build for review
|
|
|
|
- source copied from openSUSE @ https://build.opensuse.org/package/show/openSUSE:Factory/catatonit
|