diff --git a/dumb-init-1.2.5.tar.gz b/dumb-init-1.2.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bdd19bd7f21b1b9bb213f14278f203ce96426a52 Binary files /dev/null and b/dumb-init-1.2.5.tar.gz differ diff --git a/dumb-init.spec b/dumb-init.spec new file mode 100644 index 0000000000000000000000000000000000000000..3265977e7197f1eeb4d346ff8035728773b74dbd --- /dev/null +++ b/dumb-init.spec @@ -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 - 1.2.5-1 +- Initial package \ No newline at end of file