RFE: multi-tempalte render for OBS
Aside from rendering package templates into individual source packages, it would be beneficial to be able to render multiple templates into one directory in format expected by Open Build Service which is basically all source package files in a single dir:
knot-resolver.spec
knot-resolver_5.2.1.1610715904.72e71c83-cznic.1.debian.tar.xz
knot-resolver_5.2.1.1610715904.72e71c83-cznic.1.dsc
knot-resolver_5.2.1.1610715904.72e71c83.orig.tar.xz
PKGBUILD
For most setups, simply rendering all templates should be sufficient.
For advanced setups with multiple matching pkgstyles or with dedicated templates for OBS packages, a way to select list of templates to render must be provided, probably through a config file.
I'm unsure whether generic multi-srcpkg rendering is useful or we should focus on the OBS use case only
Perhaps let's start with OBS-specific srcpkg-obs
and generalize if another use case appears?
possible command names:
apkg srcpkg-obs
# or
apkg srcpkg-multi # generic rendering of multiple templates instead of OBS-specific
results in:
pkg/srcpkg/obs/$NVR
# or
pkg/srcpkg/multi/$NVR