| |
@@ -403,8 +403,8 @@
|
| |
BUILD_FLAGS="-fplugin=%{_tmppath}/tmp_annobin.so"
|
| |
|
| |
# Disable the standard annobin plugin so that we do get conflicts.
|
| |
- # Note - Fedora's rpm uses a different way of evaluating macros.
|
| |
- %if 0%{?fedora} == 0
|
| |
+ # Note - rpm-4.10 uses a different way of evaluating macros.
|
| |
+ %if 0%{?rhel} && 0%{?rhel} < 7
|
| |
OPTS="$(rpm --eval '%undefine _annotated_build %build_cflags %build_ldflags')"
|
| |
%else
|
| |
OPTS="$(rpm --undefine=_annotated_build --eval '%build_cflags %build_ldflags')"
|
| |
RHEL 7+ have rpm versions which support the --undefine parameter. I'm not quite sure what this was intended to handle, but it currently breaks ELN builds, e.g. https://kojipkgs.fedoraproject.org//work/tasks/9238/97019238/build.log
ELN scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=97250010
/cc @nickc