A Leeds man who attacked a police car during the Harehills disorder, in the summer, has been jailed.