Geometry of N = 1 super Yang-Mills theory in curved superspace