RPM 4.19.90 (4.20 alpha 1) introduced per-build directories,
which adds one more level to the build directory nesting that
this is trying to flatten out. I can't think of a command that
will work with both RPM versions, and I can't find a way to get
RPM to tell us more directly whether this feature is present
(it seems like the macros used are sufficiently internal that
you can't rpm --eval them), so I can't see a better way to
handle this than a rather awkward version check, unfortunately.
RPM 4.19.90 (4.20 alpha 1) introduced per-build directories,
which adds one more level to the build directory nesting that
this is trying to flatten out. I can't think of a command that
will work with both RPM versions, and I can't find a way to get
RPM to tell us more directly whether this feature is present
(it seems like the macros used are sufficiently internal that
you can't
rpm --evalthem), so I can't see a better way tohandle this than a rather awkward version check, unfortunately.
Signed-off-by: Adam Williamson awilliam@redhat.com