The invention provides compounds of formula (I) wherein R1, R3, L1, L2, G1, G2, A and m are as defined in the specification and optical isomers, racemates and tautomers thereof, and pharmaceutically acceptable salts thereof; together with processes for their preparation, pharmaceutical compositions containing them and their use in therapy. The compounds are inhibitors of microsomal prostaglandin E synthase-1.