openmp-rpm: adjustments for fedora 39 (dnf5)

This commit is contained in:
Jesus Checa Hidalgo 2023-07-12 18:51:33 +02:00
commit 3ff5b7451d
2 changed files with 11 additions and 2 deletions

View file

@ -15,13 +15,22 @@ adjust:
- because: "libomp not supported in s390x"
when: arch == s390x
enabled: false
continue: false
- because: "Use yum in RHEL < 8"
require+:
- yum-utils
environment+:
BUILDDEP_CMD: "yum-builddep"
when: distro < rhel-8
when: distro == rhel and distro < rhel-8
- because: "Use dnf5 in Fedora 39+"
require+:
- dnf5-plugins
environment+:
BUILDDEP_CMD: "dnf builddep"
continue: false
when: distro == fedora and distro >= fedora-39
- because: "Use dnf in RHEL >= 8, Fedora and CentOS"
require+:

View file

@ -3,4 +3,4 @@
set -ex
${BUILDDEP_CMD} -y test.spec
rpmbuild --define '_sourcedir .' --define '_builddir .' -bb test.spec
QA_RPATHS=$(( 0x0001 )) rpmbuild --define '_sourcedir .' --define '_builddir .' -bb test.spec