Similarity of parton and hadron spectra in QCD jets