TL;DR can loot linux softwares here.
Most better with Docker. Feed it the blessed +2 trendy dockerfile, get an image, run a container from it. RTFM! (srsly)
LMDTFY:
[docker build] [docker run -it]
rpmbuild.dockerfile --------------> {image hash} ----------------> {centos shell}
|
|
thing.spec ----> $ rpmbuild
|
V
thing.rpm
And then, an installable RPM appears. Nice huh!