%define this_ver 1.1.2 Name: dumb-init Version: %{this_ver} Release: 1%{?dist} Summary: A simple process supervisor and init system Group: Utilities/System License: The MIT License (MIT) URL: https://github.com/Yelp/dumb-init Source0: https://github.com/Yelp/dumb-init/archive/v%{this_ver}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n) #BuildRequires: #Requires: %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 is a deployed as a small, statically-linked binary written in C. %prep %setup -q %build make %{?_smp_mflags} %install rm -rf %{buildroot} mkdir -pv %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version} install -Dpm 644 LICENSE README.md $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ install -Dpm 755 dumb-init %{buildroot}/%{_bindir}/ %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/* %doc %{_docdir}/%{name}-%{version}/* %changelog * Tue Aug 9 2016 D. Deatrich - 1.1.2-1 - initial RPM deployment