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
Build RPM on Debian with Maven
原文:https://www.cnblogs.com/meilonglove/p/10740624.html