Bath tub spout rough in
According to the installation manual for the spout, the nipple for the spout should be installed a min of 3/8" to a max of 3/4" past the finished wall. There is a pipe adapter that you screw onto the nipple. The spout slides over this adaptor and is set in place with a set screw located on the bottom. This allows for the correct orientation of the spout.

The hole for the spout through the tile and back board should be about 1/4" to 1/2" larger than the nipple diameter allowing for an 1/8" to 1/4" gap between the nipple and the tile. 

There should be installation instructions for the diverter valve that will include the vertical location of the valve relative to the spout, as well as the set back distance in the wall. There is usually a plastic over on the diverter valve that is to be set flush with the finished wall. This cover also provides the opening required for the valve. Check the diverter valve instructions.