This problem was starting here: https://bugzilla.redhat.com/show_bug.cgi?id=929256 And repeating again and again: https://bugzilla.redhat.com/show_bug.cgi?id=947049 Problem is: what flags I mast to add to "%cmake .." if application itself not set -O3, but %cmake macro doing this? -O2 - bad idea. -DCMAKE_BUILD_TYPE=Release - bad idea -DNDEBUG - bad idea What to do?