It appears that there is no way to sign an RPM package unattended with the default tools. However,
expect comes to the rescue. I found two descriptions on other blogs how to do it:
The first one worked flawlessly for me. Thanks to the respective authors for sharing.