^Bears
do like spicy foods. Pepper spray only repels a bear if you get it full on in their faces. Otherwise it attracts them. That's why you're not supposed to bring the spray into a tent with you.
You'd need a pretty hardcore spray cannister to repel a bear at a useful distance.
Read this.