A cellular process that results in the biosynthesis of constituent macromolecules, assembly, and arrangement of constituent parts of a spore wall. A spore wall is the specialized cell wall lying outside the cell membrane of a spore.