The weak specification property for geodesic flows on CAT(–1) spaces