diff --git a/PKGBUILD b/PKGBUILD index 05bdc73..2a4a682 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,7 +6,7 @@ arch=('i686' 'x86_64') url="https://www.github.com/openSUSE/obs-service-recompress" license=('GPL-2.0+' 'GPL-2.0') groups=('base-devel') -depends=('gzip', 'bzip2', 'xz', 'zstd') +depends=('gzip' 'bzip2' 'xz' 'zstd') source=(obs-service-recompress-${pkgver}.tar.gz) md5sums=('SKIP') diff --git a/obs-service-recompress.changes b/obs-service-recompress.changes index cd8f826..2576288 100644 --- a/obs-service-recompress.changes +++ b/obs-service-recompress.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 26 11:55:33 UTC 2021 - Ferdinand Thiessen + +- Fixed checking for zstd support on different distributions + ------------------------------------------------------------------- Mon Aug 03 05:25:43 UTC 2020 - adrian@suse.de diff --git a/obs-service-recompress.spec b/obs-service-recompress.spec index a906993..a960112 100644 --- a/obs-service-recompress.spec +++ b/obs-service-recompress.spec @@ -35,10 +35,8 @@ BuildRequires: xz 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 +# Enable zstd on all supported distributions +%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150000 || 0%{?fedora_version} > 25 || 0%{?rhel} >= 6 BuildRequires: zstd Requires: zstd %endif