First, make sure the fretboard is flat after installation. Fretwire is then cut to length for each individual fret.
Then the frets are trimmed flush with the end of the fretboard and filed smooth. The frets are leveled.
Finally, the frets are shaped and smoothed, and the fretwork is done.