Update the spec file template

Patch by user aluchko in #9349

Fixes: #9349