A class of self-similar perfect-fluid spacetimes, and a generalisation