Fix CFLAGS/CXXFLAGS in the RPM spec file

fixes #7678