%global debug_package %{nil} %global __global_cflags %{optflags} -O2 -march=x86-64-v2 -flto=auto -fno-semantic-interposition %global __global_ldflags -flto=auto -fuse-ld=lld -Wl,-O2 -Wl,--as-needed Name: s6 Version: 2.15.1.0 Release: 1%{?dist} Summary: A small suite of programs for UNIX, designed to allow process supervision License: ISC URL: https://skarnet.org/software/s6/ Source0: https://skarnet.org/software/s6/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: make BuildRequires: lld BuildRequires: chrpath BuildRequires: skalibs-devel >= 2.15.1.0 BuildRequires: execline-devel >= 2.9.9.2 %description s6 is a small suite of programs for UNIX, designed to allow process supervision (a.k.a service supervision), in the line of daemontools and runit, as well as various operations on processes and daemons. It is meant to be a toolbox for low-level process and service administration, providing different sets of independent tools that can be used within or without the framework, and that can be assembled together to achieve powerful functionality with a very small amount of code. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} Requires: skalibs-devel >= 2.15.1.0 Requires: execline-devel >= 2.9.9.2 %description devel Development bits (lib and headers) for the %{name} suite of tools. %prep %autosetup -p1 %build export CFLAGS="%{__global_cflags}" export LDFLAGS="%{__global_ldflags}" ./configure \ --enable-shared \ --disable-allstatic \ --with-sysdeps=%{_libdir}/skalibs/sysdeps \ --with-dynlib=%{_libdir} \ --with-lib=%{_libdir} \ --prefix=/usr \ --libdir=%{_libdir} \ --dynlibdir=%{_libdir} \ --includedir=%{_includedir} \ --sysconfdir=%{_sysconfdir} \ --datadir=%{_datadir} \ --bindir=%{_bindir} \ --cflags="%{__global_cflags}" \ --ldflags="%{__global_ldflags}" make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} find %{buildroot}%{_bindir} %{buildroot}%{_libdir} %{buildroot}%{_libexecdir} -type f -exec chrpath -d {} \; 2>/dev/null || true rm -rf %{buildroot}%{_mandir} rm -rf %{buildroot}%{_datadir}/doc/%{name}* %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING %{_bindir}/* %{_libexecdir}/* %{_libdir}/libs6.so.* %exclude %{_mandir}/* %exclude %{_datadir}/doc/%{name}* %files devel %{_includedir}/s6 %{_libdir}/libs6.so %{_libdir}/libs6.a %exclude %{_mandir}/man3/* %changelog * Tue Aug 25 2026 Inga Vesnova - 2.15.1.0-1 - Applied x86-64-v2, -O2, LTO, and lld optimizations - Fixed configure flags to pass CFLAGS/LDFLAGS correctly to skarnet build system - Added chrpath to clean up standard RPATHs (including %{_libexecdir}) - Explicitly excluded man pages and documentation for a minimal package size - Added explicit versioned BuildRequires and Requires for skalibs-devel and execline-devel