From a82ca9b3d8391b604be6baa6d9529ef69ca3c895 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jun 16 2021 20:17:26 +0000 Subject: Only pull in systemd-rpm-macros if rpm-build is installed systemd-rpm-macros is small, but it pulls in bash and is always one more package. It is only useful if the rpm building utilities are there, so let's conditionalize on that. --- diff --git a/systemd.spec b/systemd.spec index f325779..87b015c 100644 --- a/systemd.spec +++ b/systemd.spec @@ -178,7 +178,7 @@ Requires(pre): /usr/bin/getent Requires(pre): /usr/sbin/groupadd Requires: dbus >= 1.9.18 Requires: %{name}-pam = %{version}-%{release} -Requires: %{name}-rpm-macros = %{version}-%{release} +Requires: (%{name}-rpm-macros = %{version}-%{release} if rpm-build) Requires: %{name}-libs = %{version}-%{release} %{?fedora:Recommends: %{name}-networkd = %{version}-%{release}} Recommends: diffutils