From 026fff0d838bdc020971815bc20f8225623be100 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 7 Aug 2018 11:24:30 +0200 Subject: [PATCH] - Wrap zstd Requires in build condition --- rpm.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpm.spec b/rpm.spec index 646ae26..cc37492 100644 --- a/rpm.spec +++ b/rpm.spec @@ -214,7 +214,10 @@ Group: Development/Tools Requires: rpm = %{version}-%{release} Requires: elfutils >= 0.128 binutils Requires: findutils sed grep gawk diffutils file patch >= 2.5 -Requires: tar unzip gzip bzip2 cpio xz zstd +Requires: tar unzip gzip bzip2 cpio xz +%if %{with zstd} +Requires: zstd +%endif Requires: pkgconfig >= 1:0.24 Requires: /usr/bin/gdb-add-index # Technically rpmbuild doesn't require any external configuration, but