Fix rpm build

Merged Nicolas Michon requested to merge fix_rpm_build into master

Merge request reports