Lyman-alpha absorption spectrum of the primordial intergalactic medium