We study theoretically production spectra with a − hyperon via (π − , K + ) reactions on 12 C, 28 Si, 58 Ni, 115 In, and 209 Bi targets, using the Green's function method in the framework of a distorted-wave impulse approximation with the optimal Fermi averaging for an elementary π − p → K + − t matrix. Adopting distorted waves obtained by solving a Klein-Gordon equation for π − and K + mesons, we improve and update the calculated spectra of − production cross sections comprehensively in comparison with the data of the KEK-E438 experiment. We use several -nucleus (optical) potentials that are determined by fits to the − atomic data and that take into account the energy dependence arising from the nuclear excitation via N → N scatterings with a hyperon effective mass. The results show that the absolute values and the shapes of these calculated spectra are in excellent agreement with those of the data, so that a mass-number dependence of integrated cross sections on the light-to-heavy targets is well reproduced in our calculations. It confirms that the -nucleus potentials having a repulsion inside the nuclear surface and an attraction outside the nucleus with a sizable absorption are favored in reproducing the data of the nuclear (π − , K + ) spectra and the − atomic x ray simultaneously, whereas it is still difficult to determine the radial distribution of the -nucleus potential inside the nucleus and its strength at the center.