Refs #18539 - Expand foreman_{assets,webpack}_plugin macros
These macros now include the directories above it so plugins properly own them. That means on removal (and upgrade is a special case of removal) they're cleaned up.
This means the macro now only works in the %files section, but in practice that's the only place it's used.
My thought was to fork the COPR repo that was created for this PR and build a plugin there.
https://copr.fedorainfracloud.org/coprs/ekohl/foreman-packaging-pr-11233/build/8009724/
Of course I forgot to set up the repos. https://copr.fedorainfracloud.org/coprs/ekohl/foreman-packaging-pr-11233/build/8009796/ tries it again.
I'm tempted to say this is a relevant build failure.
+ '[' -e /builddir/build/BUILDROOT/rubygem-foreman_remote_execution-14.0.0-1.fm3_13.el8.x86_64
/var/tmp/rpm-tmp.K20k5c: line 77: [: missing `]'
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.K20k5c (%install)
Bad exit status from /var/tmp/rpm-tmp.K20k5c (%install)
Well, damn, that macro is used in the precompile_plugin macro.
🐢