I added an RPM package to a project that used a Makefile to spin up a docker container which then built various packages via FPM:
https://github.com/jordansissel/fpm
I didn't use the build system heavily and it may be more overhead than you'd like but I thought it was a pretty neat way of doing things. Repo is here: