N.W.A. biopic “Straight Outta Compton” was the dominant new film over the weekend, bringing in $60.2 million in domestic box office receipts.

“Compton” was co-financed by Legendary Entertainment in Burbank and distributed by Universal Pictures of Universal City, which is having a bang-up summer with its film slate. Its five films released since May 1 have grossed more than $1.3 billion in domestic box office.

The film, which depicts the rise of Los Angeles rap group N.W.A., handily beat the other new release of the weekend, “The Man from U.N.C.L.E.,” released by Warner Bros. Entertainment. “U.N.C.L.E.” grossed an underperforming $13.5 million in domestic box office

Holdover “Mission Impossible: Rogue Nation” claimed the number two spot with $17.3 million. The film, starring Tom Cruise, has brought in a total of $373.4 million in global box office.

“Compton” makes for the second summer hit for Legendary, headed up by industry figure Thomas Tull.

Legendary also co-financed and co-produced “Jurassic World,” released in June. It grossed more than $600 million in domestic box office and brought in a total global box office of $1.6 billion.

Legendary’s arrangement with Universal will give it a 25 percent cut of the box office receipts, according to Variety, the entertainment industry trade publication.

The dinosaur thriller is the first hit for Legendary since it ended a long-time distribution relationship with Warner Bros. Entertainment in 2013.