Dogs are still very primitive animals. He does not like other males because he is probably very dominant. Also known as the alpha-male or the boss. He will fight with them because he sees them as a threat to his territory and human(s).
Of course he likes females. He knows what happens when they're ready to breed. It's instinct.