The Rihanna deal follows seven months of talks and is the biggest music-marketing tie-up in recent memory. Hammering out the details took longer than expected in part because Rihanna made some last-minute tweaks to the album, sources said.