2018-03-27 12:07:24 +02:00
|
|
|
#
|
|
|
|
# spec file for package catatonit
|
|
|
|
#
|
2021-09-16 10:58:36 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-03-27 12:07:24 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-30 03:14:22 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-27 12:07:24 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: catatonit
|
2021-09-16 10:58:36 +02:00
|
|
|
Version: 0.1.6
|
2018-03-27 12:07:24 +02:00
|
|
|
Release: 0
|
2018-04-04 03:04:55 +02:00
|
|
|
Summary: A signal-forwarding process manager for containers
|
2018-03-27 12:07:24 +02:00
|
|
|
License: GPL-3.0-or-later
|
2019-10-17 20:15:40 +02:00
|
|
|
Group: System/Management
|
2020-03-02 17:28:14 +01:00
|
|
|
URL: https://github.com/openSUSE/catatonit
|
|
|
|
Source0: https://github.com/openSUSE/catatonit/releases/download/v%{version}/%{name}.tar.xz#/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://github.com/openSUSE/catatonit/releases/download/v%{version}/%{name}.tar.xz.asc#/%{name}-%{version}.tar.xz.asc
|
2018-03-27 12:07:24 +02:00
|
|
|
Source2: %{name}.keyring
|
2018-04-06 20:51:18 +02:00
|
|
|
Source3: %{name}-rpmlintrc
|
2018-03-27 12:07:24 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2018-04-06 20:38:34 +02:00
|
|
|
BuildRequires: file
|
2018-04-04 03:04:55 +02:00
|
|
|
BuildRequires: gcc
|
2018-04-06 20:38:34 +02:00
|
|
|
BuildRequires: glibc-devel-static
|
2018-03-27 12:07:24 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
%description
|
2018-04-04 03:04:55 +02:00
|
|
|
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.
|
2018-03-27 12:07:24 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2018-04-06 20:38:34 +02:00
|
|
|
# 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'
|
|
|
|
|
2018-03-27 12:07:24 +02:00
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/docker-init
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-03-31 14:31:14 +02:00
|
|
|
%doc README.md
|
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%license COPYING
|
|
|
|
%else
|
|
|
|
%doc COPYING
|
|
|
|
%endif
|
2018-03-27 12:07:24 +02:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/docker-init
|
|
|
|
|
|
|
|
%changelog
|