Fix RPM builds with mock