This is what I do when I am camping in the wild, i.e. national forest, etc. where bears (any kind) are common.
First, I never ever eat, brush my teeth, etc. in my tent. I also keep my clothes in the pannier on the bike overnight so there is as little smellables as possible inside the tent.
Second, I do not cook within a mile or so of my tent. I cook and eat my dinner before I finish the ride for the day. It is usually by some water source so I can wash my bowl, pot, utensils, to save on the clean water. I eat then ride a few miles or more down the road before calling it a day. For breakfast and lunch, I am not as concerned as I am awake and will be moving on shortly.
Third, I try to buy one-use foods so the unused are sealed. I guess an unopened can of tuna is smellable, but I figure that is better than a opened jar of peanut butter. I also keep my opened food (tortillas, ramen, etc.) in "bear proof" recloseable bags that supposedly seal in the smells. I forgot the name but have not critters find it, yet. They are not regular zip-lock bags but special "bear bags".
Fourth, I keep my food about 30+ feet from my tent. I try to hang it but rarely get a tree which branches are not reachable, the bear can't climb the tree(s), and/or I can reach the rope with the 50' of paracord I bring. It is usually just left hanging so the little/medium critters do not get it.
Fifth, I sleep with the bear can near by.
Sixth, I try to camp in an area others have camped in or near a place someone could easily see me so that if the bear does like the taste of me over tortillas, hopefully someone will find my bike and my wife can cash in the insurance policy.
Seventh, honestly, I bury my trash. Rarely is it something that will take a long-time to breakdown, i.e. paper, thin plastic wrap, steel cans, etc. For that which takes a while (aluminum, heavy plastic, etc.), I thoroughly rinse out and bring with me. Yes, I know it is supposedly bad to bury stuff, but I am more concerned about bears not knowing that. I think Smokey and Winnie were the only bears that could read.
Also this said, and I have never had an issue with bears. Raccoons, chipmunks, etc., definitely.
Tailwinds, John