>
The means "to spend (time)". From :
>
>
And in your example:
/etc."spend the summer (in the manner of...)"
/etc."spend the winter (in the manner of...)"
(The contrastive 's have replaced 's in your example)
The means "so that (they) can..." "for the purpose of..."
So literally means "It is for the purpose of spending the summer cool, and the winter warm".
breakdown:
and; also; besides
as for what direction the building faces,
considering the directions of the wind and the sun
...has been decided.
make wind resistance smaller; decrease wind resistance
spend the summer cool and the winter warm
so that (they) can... / it is for the purpose of...
Put together:
And, as for what direction the building faces, it has been decided considering the directions of the wind and the sun. It is for the purpose of decreasing wind resistance, and spending the summer cool and the winter warm.