A French court has sentenced a man who wounded a photographer in a shooting in 2013 to 25 years behind bars, in a case that predated the string of jihadist attacks that has since struck the country.