Royal wins French Socialists’ nomination