The present invention relates to heterocyclic ring-fused pyrimidine derivatives of formula (I) or stereoisomers, pharmaceutically acceptable salts or prodrugs thereof, wherein Z and Y are as defined in the specification. Compounds of formula (I) are useful in the treatment of hyperproliferative diseases, such as cancers and acnes, in mammals: