41 lines
1.1 KiB
RPMSpec
41 lines
1.1 KiB
RPMSpec
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 |