From a82ca9b3d8391b604be6baa6d9529ef69ca3c895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 2 Jun 2021 11:06:33 +0200 Subject: [PATCH] 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. --- systemd.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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