June in Barcelona is hot and sunny. Light, breathable clothing is the right call. The circuit has some shade in the grandstands but the GA areas are mostly exposed.
June evenings in Barcelona drop to ~18–20°C after sunset. If you're heading into the city after the race, a light jacket or layer is useful. Not cold — but worth having if you're out late.