fix destination path, fix obsoletes, dependencies, conflicts version requirements, fix primary/secondary attachment.