How to program spot light fog with OpenGL?

How to program spot light fog with OpenGL?

Check out the SDK samples at NVIDIA. The have a demo of this very thing.