From 69a2526fa919a1ab215a4b19640b2214e0a1d78e Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Tue, 22 Feb 2022 16:20:34 +0100 Subject: spec: Move rename_device to subpackage `initscripts-rename-device` It allows to rename_device to be installed independently on initscripts. --- initscripts.spec | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/initscripts.spec b/initscripts.spec index db3e3488..c2b69c87 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -36,6 +36,7 @@ Requires: systemd Requires: util-linux Requires: chkconfig Requires: initscripts-service +Requires: initscripts-rename-device Requires(pre): shadow-utils Requires(post): coreutils @@ -89,6 +90,18 @@ other legacy tools & utilities. # === SUBPACKAGES ============================================================= +%package -n initscripts-rename-device +Summary: Udev helper utility that provides network interface naming + +%shared_requirements + +Obsoletes: %{name} < 10.16-1 + +%description -n initscripts-rename-device +Udev helper utility that provides network interface naming + +# --------------- + %package -n initscripts-service Summary: Support for service command BuildArch: noarch @@ -322,14 +335,19 @@ fi %{_prefix}/lib/systemd/system/import-state.service %{_prefix}/lib/systemd/system/loadmodules.service -%{_prefix}/lib/udev/rename_device - -%{_udevrulesdir}/* %{_mandir}/man1/* # ============================================================================= +%files -n initscripts-rename-device + +%{_prefix}/lib/udev/rename_device + +%{_udevrulesdir}/* + +# --------------- + %files -n initscripts-service %dir %{_libexecdir}/%{name} -- cgit v1.2.1