Build a simple spec file and source archive using rpmbuild in a docker image.
$ docker-rpmbuild build --spec <path-to-spec> --source <path-to-source> <image>
Rebuild an existing SRPM package
$ docker-rpmbuild rebuild --srpm <path-to-srpm> <image>