remove directory resources in spec file.