build: fix RPM builds

The rpmbuild tool requires certain directories to exist and
will fail rather than attempting to create them.  The 'clean'
phase of maven will remove these directories.

This patch adds support to ensure the directories exist.

Target: master
Request: 2.7 (as needed)
Request: 2.6 (as needed)
Request: 2.2 (as needed)