aboutsummaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2022-02-22 16:20:34 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-02-23 10:50:24 +0000
commit69a2526fa919a1ab215a4b19640b2214e0a1d78e (patch)
treedb7f93ab85906404e42dc3cfc489a92c6f7ebf33 /initscripts.spec
parent7edb23d9c3c3da6664ee5379ef74e26f2eaae162 (diff)
downloadinitscripts-69a2526fa919a1ab215a4b19640b2214e0a1d78e.tar
initscripts-69a2526fa919a1ab215a4b19640b2214e0a1d78e.tar.gz
initscripts-69a2526fa919a1ab215a4b19640b2214e0a1d78e.tar.bz2
initscripts-69a2526fa919a1ab215a4b19640b2214e0a1d78e.tar.xz
initscripts-69a2526fa919a1ab215a4b19640b2214e0a1d78e.zip
spec: Move rename_device to subpackage `initscripts-rename-device`
It allows to rename_device to be installed independently on initscripts.
Diffstat (limited to 'initscripts.spec')
-rw-r--r--initscripts.spec24
1 files 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}