Fix RPM generation for centos 7