[RPM] Verify provide/obsolete flags and make sure perl builds with cmake 2.6