“The Amazing Spider-Man” star Rhys Ifans has joined the cast of Occupant Entertainment’s adaptation of “Madame Bovary.”Sophie Barthes (“Cold Souls”) is directing from a script by Rose Barreneche, who adapted Gustave Flaubert’s original tale. Mia Wasikowska is set to star as the title character, a married woman who tries to climb the social ladder by engaging in extramarital affairs. Ezra Miller will play her young lover Leon Dupuis, while Barthes’ “Cold Souls” star Paul Giamatti will play Monsieur Homais, who threatens to reveal Bovary’s steamy indiscretions. Ifans will co-star as Monsieur Lheureuse, a manipulative merchant who convinces the protag to buy goods on credit and borrow money from him, eventually leading to her financial ruin. While the period pic will be faithful to the classic novel, it is expected to be a fresh retelling that emphasizes the source material’s more youthful and contemporary themes. Joe Neurauter and Felipe Marino will produce for Occupant, and production will likely start next spring in Europe. WME is repping domestic rights, and Radiant Films Intl. is handling international rights. Ifans, who recently played the villainous Lizard in Sony’s blockbuster “The Amazing Spider-Man,” will next be seen alongside Bradley Cooper and Jennifer Lawrence in Susanne Bier’s period drama “Serena.” He’s repped by UTA, Brillstein Entertainment Partners and Independent Talent Group.