Initial package

This commit is contained in:
fu-shanqing 2022-06-20 10:55:46 +08:00
parent 9c6f873a70
commit 786e807046
2 changed files with 41 additions and 0 deletions

BIN
dumb-init-1.2.5.tar.gz Normal file

Binary file not shown.

41
dumb-init.spec Normal file
View File

@ -0,0 +1,41 @@
Name: dumb-init
Version: 1.2.5
Release: 1
Summary: Entry-point for containers that proxies signals
License: MIT
URL: https://github.com/Yelp/dumb-init
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc help2man make
BuildRequires: python3 python3-pytest python3-mock
%description
dumb-init is a simple process supervisor and init system designed to run as
PID 1 inside minimal container environments (such as Podman and Docker).
* It can handle orphaned zombie processes.
* It can pass signals properly for simple containers.
%prep
%setup -q
%build
gcc -std=gnu99 %{optflags} -o %{name} dumb-init.c
help2man --no-discard-stderr --include debian/help2man --no-info --name '%{summary}' ./%{name} > %{name}.1
%check
PATH=.:$PATH timeout --signal=KILL 60 pytest-3 -vv tests/
%install
install -Dpm0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dpm0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%license LICENSE
%doc README.md
%changelog
* Mon Jun 20 2022 fushanqing <fushanqing@kylinos.cn> - 1.2.5-1
- Initial package