D0 spectrum from B-meson decay