diff --git a/obs-service-recompress.spec b/obs-service-recompress.spec index a7f4385..d8b0c9e 100644 --- a/obs-service-recompress.spec +++ b/obs-service-recompress.spec @@ -31,11 +31,16 @@ BuildRequires: perl(Test::More) BuildRequires: bzip2 BuildRequires: gzip BuildRequires: xz -BuildRequires: zstd Requires: bzip2 Requires: gzip Requires: xz + +%if (0%{?suse_version} <= 1500 && 0%{?sle_version} <= 150000) || 0%{?fedora_version} < 25 || 0%{?rhel_version} < 6 +# noop +%else +BuildRequires: zstd Requires: zstd +%endif BuildArch: noarch