Fix CFLAGS/CXXFLAGS in the RPM spec file

f-ixes #7678