Text this: Reconstruction of the potential in the Sturm-Liouville equation with spectral boundary conditions