The source code of Spectra is on Github, where you can browse the source code.
To use Spectra, since it is a header-only library, all you need are the header files contained in the source package. You also need the header files of Eigen as dependency.
To clone this project with Git, you can run:
git clone https://github.com/yixuan/spectra.git