write a spec file