packaging(RHEL-CTDB): refactor creation of spec file from template out