diff options
author | David Kaspar [Dee'Kej] <dkaspar@redhat.com> | 2018-06-04 16:28:18 +0200 |
---|---|---|
committer | Dee'Kej <deekej@linuxmail.org> | 2018-06-14 16:11:54 +0200 |
commit | 32367e4831f88f487666c1778dadaa3c24b9a99f (patch) | |
tree | af98c1a33863be5aa901d7a0d7f84b2211143fbd | |
parent | af37def6b2ea5f72b4b79d4b7d1a7cfc4a7eae3b (diff) | |
download | initscripts-32367e4831f88f487666c1778dadaa3c24b9a99f.tar initscripts-32367e4831f88f487666c1778dadaa3c24b9a99f.tar.gz initscripts-32367e4831f88f487666c1778dadaa3c24b9a99f.tar.bz2 initscripts-32367e4831f88f487666c1778dadaa3c24b9a99f.tar.xz initscripts-32367e4831f88f487666c1778dadaa3c24b9a99f.zip |
specfile: requirements cleanup
-rw-r--r-- | initscripts.spec | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/initscripts.spec b/initscripts.spec index da0b9a36..7f875b9a 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -8,6 +8,12 @@ # For more info: https://fedoraproject.org/wiki/Packaging:Guidelines#PIE %global _hardened_build 1 +%global shared_requirements \ +Requires: bash \ +Requires: filesystem >= 3 \ +Requires: coreutils \ +Requires: gawk \ + # ============================================================================= Name: initscripts @@ -20,23 +26,14 @@ License: GPLv2 URL: https://github.com/fedora-sysv/initscripts Source: https://github.com/fedora-sysv/initscripts/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz -Requires: bash >= 3.0 -Requires: coreutils -Requires: cpio -Requires: filesystem >= 3 +%shared_requirements + Requires: findutils -Requires: gawk Requires: grep -Requires: hostname -Requires: ipcalc -Requires: iproute -Requires: iputils -Requires: module-init-tools -Requires: procps-ng >= 3.3.8-16 -Requires: sed +Requires: procps-ng Requires: setup Requires: systemd -Requires: util-linux >= 2.16 +Requires: util-linux Requires(pre): shadow-utils Requires(post): coreutils @@ -103,8 +100,8 @@ network interfaces, some utilities, and other legacy files. Summary: Legacy scripts for manipulating of network devices Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: bash -Requires: coreutils +%shared_requirements + Requires: dbus Requires: gawk Requires: grep @@ -147,9 +144,8 @@ Summary: Service for initializing of network console logging Requires: %{name}%{?_isa} = %{version}-%{release} BuildArch: noarch -Requires: bash -Requires: coreutils -Requires: gawk +%shared_requirements + Requires: glibc-common Requires: iproute Requires: iputils @@ -171,11 +167,10 @@ Summary: Service for configuring read-only root support Requires: %{name}%{?_isa} = %{version}-%{release} BuildArch: noarch -Requires: bash -Requires: coreutils +%shared_requirements + Requires: cpio Requires: findutils -Requires: gawk Requires: hostname Requires: iproute Requires: ipcalc |