I camped for 20 or so days (90% backwoods primitive camping) on a 35 day trip last summer spanning many Rocky Mountain states, as well as Canadian provinces. I never had a problem with bears.
I always put any food or scented (think chapstick, deodorant, toothpaste etc) items in a bag at least 50 yards downwind from my tent. Everything in the bag was sealed in ziplock style bags. I never ate in my tent, but I did eat near it. If I spilled food on myself or my clothes they went in the bag or were washed in a river before bed. Sealed food items such as unopened beef jerkey and granola bars were left in my tank bag on the bike near my tent, and didn't have a problem. Of course YMMV.
I carried bear spray but never had to use it.
"To strive, to seek, to find, and not to yield."
"You don't cross the mountains, they let you through."
KTM 525 XC-W // KTM 950 Adventure