You’ll need to know how wide the spine is going to be, but once you have the total dimensions you can create a blank document with those measurements, drag guide lines to the area you’ll need for the spine, create a text box with your text for the spine in it, and then turn that text box 90 degrees.