Fix: -export CFLAGS="$CFLAGS -Wno-deprecated-declarations" +export CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations"