Fix generating SRPM.

Thanks to Prathamesh Sonpatki for report and initial PR (fixes #27).