From 5982ae9504c8f2697a839c6ce2a82287a60c1043 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 5 Jun 2023 12:49:57 -0400 Subject: [PATCH] Avoid pillow and pyflakes in RHEL builds These test dependencies are unwanted in RHEL. --- systemd.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/systemd.spec b/systemd.spec index 68f2539..fa69615 100644 --- a/systemd.spec +++ b/systemd.spec @@ -165,9 +165,11 @@ BuildRequires: python3-devel BuildRequires: python3dist(jinja2) BuildRequires: python3dist(lxml) BuildRequires: python3dist(pefile) +%if %{undefined rhel} BuildRequires: python3dist(pillow) -BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-flakes) +%endif +BuildRequires: python3dist(pytest) BuildRequires: python3dist(zstd) # gzip and lzma are provided by the stdlib BuildRequires: firewalld-filesystem