How to create rpm for bahmni

I’ve successfully installed Bahmni on an EC2 server from AWS, following this guide How to - Install Bahmni on AWS. I’ve noticed Bahmni uses rpm to install the applications to the server. Is it possible for me to build my own rpm package upon the Bahmni repository I forked and modified? Iis there a better way to deploy my own modified Bahmni code? cc :@sommardahl @eliyas @cristian