# The upstream version %global upver 0.5.5.0 # The project url on the forge %global forgeurl https://github.com/skarnet/s6-rc/ # The tag being packaged %global tag v%{upver} # The commit being packaged %global commit ad473ade5beb810480509e72098c00af55a4736c %forgemeta Name: s6-rc Version: %{upver} Release: 2%{dist} Summary: A service manager for s6 URL: %{forgeurl} License: ISC Source: %{forgesource} BuildRequires: gcc BuildRequires: make BuildRequires: s6-devel Requires: %{name}-libs%{_isa} = %{version} Requires: s6 %description s6-rc is a suite of programs designed to help Unix distributions manage services provided by various software packages, and automate initialization, shutdown, and more generally changes to the machine state. It keeps track of the complete service dependency tree and automatically brings services up or down to reach the desired state. In conjunction with s6, it ensures that long-lived services are supervised, and that short-lived instructions are run in a reproducible manner. %package doc Summary: The s6-rc Documentaion %description doc The s6-rc Documentaion package. %package libs Summary: The s6-rc library files %description libs The s6-rc library package. %package devel Summary: The s6-rc Development files Requires: %{name}%{_isa} = %{version} Requires: s6-devel %description devel The s6-rc development package. %prep %forgeautosetup %build export PATH="%{_execdir}:${PATH}" %configure \ --livedir=%{_rundir}/s6-rc \ --bindir=%{_execdir} \ --dynlibdir=%{_libdir} \ --with-sysdeps=%{_sysdepsdir} \ --with-include=%{_includedir} \ --with-lib=%{_libdir} \ --with-dynlib=%{_libdir} \ --enable-shared \ --disable-allstatic \ --disable-static %make_build %install export PATH="%{_execdir}:${PATH}" %{__make} install DESTDIR=%{?buildroot} %check : TODO Check %files %license COPYING %{_execdir}/s6-rc %{_execdir}/s6-rc-bundle %{_execdir}/s6-rc-compile %{_execdir}/s6-rc-db %{_execdir}/s6-rc-dryrun %{_execdir}/s6-rc-format-upgrade %{_execdir}/s6-rc-init %{_execdir}/s6-rc-update %{_libexecdir}/s6-rc-fdholder-filler %{_libexecdir}/s6-rc-oneshot-run %files libs %{_libdir}/libs6rc.so* %files doc %doc doc/ %files devel %{_includedir}/s6-rc/*.h %changelog %{autochangelog}