Spain is preparing for a rare total solar eclipse in August. Officials hope the event will draw tourists away from beaches and toward the countryside.