bin/prepare: Extract build dependencies from spec file