From the work on automated builds involving multiple SPEC files, I would like to propose few changes to mb2 and sfdk handling of the shared output directory.
It would be great to have shared output directory for RPMS organized as
<selected-shared-name>/SPECname/package1...rpm
<selected-shared-name>/repodata/...
In particular:
- each SPEC produced RPMs will be confined in a directory.
- an option deleting old RPMs produced by previous builds in this directory. That way we have only one set of RPMs. Delete only if the build succeeds, just before copying new RPMs there
- process the shared directory with
createrepo
after each build.
This is something that we have for build scripts used in the ports. Would be good to use the same logic in application SDK.