High-resolution spectroscopy of the high-velocity hot post-AGB star IRAS 18379–1707 (LS 5112)