BR: python2-devel instead of python-devel

Issue #17 resolved
Miro Hrončok created an issue

According to Fedora Python packaging guidelines, this is the correct BR for Python packages:

BuildRequires: python2-devel

However, pyp2rpm produces the following line:

BuildRequires: python-devel

In macros.spec, it is produced like this:

BuildRequires:  {{ 'python-devel'|name_for_python_version(python_version) }}

However name_for_python_version does nothing, when the version is 2.

Replacing the line with:

BuildRequires:  {{ 'python2-devel'|name_for_python_version(python_version) }}

Would break other Python version, because it would end up as python3-python2-devel with Python 3. On the other hand, with software collections python27-python2-devel is the correct name. So I guess this would need some extra case anyway.

Comments (1)

  1. Log in to comment