Matrices with prescribed eigenvalues and blocks