Splines of class Ck on non-euclidean spaces