Negativity spectrum in 1D gapped phases of matter