The .spec file needs to have the package name, version, and release hard-coded as few build tools give you the ability to pass these in on the command line when building from the SRPM.  Added conditional directives to allow you to override the hard-coded values.