openSUSE / py2pack

Generate distribution packages from PyPI
Apache License 2.0
69 stars 40 forks source link

Insert spaces in dependency versions #22

Closed toddrjen closed 9 years ago

toddrjen commented 9 years ago

Currently, dependency versions are just copied to the spec file BuildRequires verbatim. However, in cases where there are no spaces between the version number and the package name, the spec file will interpret it as one big name rather than a package with a version (so python>=2.6 will look for a package named python>=2.6, rather than a package named python with version >=2.6).

It would be great if py2pack detected this and inserted appropriate spaces.