I cannot use zstd for rpm-build compression because I need to install the rpm that i build on a centos 8 machine, which does not have zstd supported, and I'm unable to install anything new on that machine with yum. Is there any way for me to configure rpm-build on fedora 31 to use xz compression instead of zstd??
dnf install mock
And then:
mock -r epel-8-x86_64 your-package.src.rpm
And you have a package with xz payload. And build against RHEL 8 libraries.
This way you can build for any target on any distribution.