There exists $P$ invertible and $J$ in the canonical Jordan form such that
$$
A = PJP ^{-1}
$$
and therefore
$$
A^2 = PJP^{-1}PJP^{-1} = PJ^2P^{-1}
$$
you can square $J$ by blocks, and $J^2$ will be upper triangular with $(J^2)_{ii} = (J_{ii})^2$. Hence, the eigenvalues of $J~^2$ will be those of $J$, squared. It suffices then to note that the eigenvalues of $A^2$ are those of $J^2$.
To prove this last claim, we can more generally assert the following: if $C$ and $D$ are conjugate matrices, they share the same eigenvalues. Since being conjugates is a symmetric relation, it will suffice to prove that if $\lambda$ is an eigenvalue of $C$, it is an eigenvalue of $D$. Let $v$ be an eigenvector of eigenvalue $\lambda$ for $C$, that is
$$
Cv = \lambda v
$$
Since $C$ and $D$ are conjugates, there exists $Q$ invertible with $C = QDQ^{-1}$, and
$$
Cv = \lambda v \iff QDQ^{-1}v = \lambda v \iff DQ^{-1}v = \lambda Q^{-1}v
$$
so $Q^{-1}v$ is an eigenvector of eigenvalue $\lambda$ for D.