CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-lm" waf configure
--prefix=%{_prefix}
->
waf configure --prefix=%{_prefix} --no-runtime-deps
All python modules are not needed in runtime, don't check them. Also,
the package is noarch, optflags is not needed.
Chen Lei