Fetch specs matching dependency. If all is true, all
matching (released) versions are returned. If matching_platform
is false, all platforms are returned. If prerelease is true,
prerelease versions are included.