Issues #55 and #56 root in that the plugin is run in the context of the builder, with these drawbacks:
%dist
rpm-build
rpmspec
rpm --specfile ...
Generating the new release tag and changelog in the build root would circumvent these problems:
fedora-release-common
/usr/lib/rpm/macros.d/macros.dist
%fedora
rpm --eval %dist
Right now, the build root isn't exposed (well) to the plugin callback (see this part of the kojid code). Possible approaches to get hold of it:
broot
BuildSRPMFromSCMTask.handler()
broot.id
self.options
BuildRoot
from __main__ import BuildRoot
session
One thing that still needs to be done in the context of the builder rather than the build root is tagging existing builds because it needs a Koji client session which we have there, see issue #44 (and #42, #43).
Metadata Update from @nphilipp: - Issue assigned to nphilipp
PR #59 has been closed, so let's close this ticket as well :)
Metadata Update from @pingou: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)