“Blowing a Raspberry”
Used primarily in English-speaking countries, this goes back to the late 19th century, and is a result of Cockney rhyming slang.
The word “Raspberry” is a shortened way of saying “Raspberry Tart,” which rhymes with “fart.” Therefore, a raspberry is a fart.