make package_resolver accept Spec objects instead of strings
template, export packages by-extra