From 5a2471d6e5b0055cb607b30dc2e9613b312ffb74 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 23 Aug 2024 11:27:11 +0200 Subject: [PATCH] Move script utilities to util-linux-script subpackage This allows installing util-linux without pulling in the libutempter library which includes a setgid binary that I'd like to avoid installing on my systems. --- util-linux.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/util-linux.spec b/util-linux.spec index e1fc728..6f01ef4 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -299,6 +299,12 @@ License: GPL-2.0-or-later Internationalization pack with translated messages and manual pages for util-linux commands. +%package -n util-linux-script +Summary: The various script utilities +Requires: util-linux = %{version}-%{release} + +%description -n util-linux-script +The script, scriptreplay and scriptlive utilities. %prep %autosetup -p1 -n %{name}-%{upstream_version} @@ -553,9 +559,6 @@ fi %{_bindir}/prlimit %{_bindir}/rename %{_bindir}/rev -%{_bindir}/script -%{_bindir}/scriptlive -%{_bindir}/scriptreplay %{_bindir}/setarch %{_bindir}/setpgid %{_bindir}/setpriv @@ -970,5 +973,10 @@ fi %files -n util-linux-i18n -f %{name}.lang %license Documentation/licenses/COPYING.GPL-2.0-or-later +%files -n util-linux-script +%{_bindir}/script +%{_bindir}/scriptlive +%{_bindir}/scriptreplay + %changelog %autochangelog