Operators in rigged Hilbert spaces: toward a spectral analysis