tests: on RHEL-7, throw in epel-rpm-macros to get %{build_cflags}

Unfortunately, this disqualifies the test from s390x, because there is no Epel for s390x. The test would just fail.
This commit is contained in:
Miloš Prchlík 2022-02-15 15:48:45 +01:00 committed by sergesanspaille
parent 56439f6521
commit 208be5f577

View File

@ -3,3 +3,14 @@ test: "$WITH_SCL ./test.sh"
require:
- annobin
- redhat-rpm-config
adjust:
- because: s390x does not have epel repo which is required to provide rpm macros
enabled: false
when: >-
distro == rhel-7
and arch == s390x
- because: "To enable rpm macros not available by default (e.g. build_cflags), epel-rpm-macros is needed"
- require+:
- epel-rpm-macros
when: distro == rhel-7