diff --git a/dumb-init.spec b/dumb-init.spec new file mode 100644 index 0000000..799e467 --- /dev/null +++ b/dumb-init.spec @@ -0,0 +1,59 @@ +Name: dumb-init +Version: 1.1.3 +Release: 7%{?dist} +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 +BuildRequires: help2man + +# /bin/xxd of vim-common of is needed for non-released versions +# BuildRequires: vim-common + +%description +dumb-init is a simple process supervisor and init system designed to run as +PID 1 inside minimal container environments (such as Docker). + +* It can handle orphaned zombie processes. +* It can pass signals properly for simple containers. + +%prep +%setup -q + +%build + +# uncomment next line when building a non-released version +# make VERSION.h + +gcc -std=gnu99 %{optflags} -o %{name} dumb-init.c +help2man --no-discard-stderr --include debian/help2man --no-info --name '%{summary}' ./%{name} > %{name}.1 + +%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 +* Wed Aug 17 2016 Muayyad Alsadi - 1.1.3-7 +- let manpage automatically marked as document + +* Wed Aug 17 2016 Muayyad Alsadi - 1.1.3-6 +- remove gzip after help2man +- add missing BuildRequire + +* Wed Aug 17 2016 Muayyad Alsadi - 1.1.3-4 +- install 644 for manpage + +* Wed Aug 17 2016 Muayyad Alsadi - 1.1.3-3 +- remove vim-common and use install + +* Mon Aug 15 2016 Muayyad Alsadi - 1.1.3-2 +- initial packaging