In theory, using the rpm-maven-plugin/ and having alien
install (which provides both rpm
and rpmbuild
binaries) it should be rather easy. But I alway get it failing with a cryptic error (because some macros are nor expanded):
https://stackoverflow.com/questions/38184627/build-rpm-on-debian-with-maven