Upstream, this software supports Python 3 [0]. Please provide a Python 3 package for Fedora. According to the Python packaging guidelines [1], software must be packaged for Python 3 if upstream supports it. The guidelines give detailed information on how to do this, and even provide an example spec file [2]. Since users aren't expected to import this tool from Python code, you can just switch to /usr/bin/python3. Alternatively, if you want or need to keep a Python 2 version, the current best practice is to provide subpackages -- this is called "Common SRPM" in the guidelines. It's OK to do this in Rawhide only, however, it would be greatly appreciated if you could push it to Fedora 25 as well. If you need more instructions, a guide for porting Python-based RPMs is available at [3]. If anything is unclear, or if you need any kind of assistance with the porting, you can ask on IRC (#fedora-python on Freenode), or reply here. We'll be happy to help! [0] http://libre.adacore.com/developers/development-log-single/NF-15-L619-031-gnatcoll [1] https://fedoraproject.org/wiki/Packaging:Python [2] https://fedoraproject.org/wiki/Packaging:Python#Example_common_spec_file [3] http://python-rpm-porting.readthedocs.io/
gnatcoll in rawhide doesn't depend on python/python2 anymore. Actually it's built without python support because of bugs in upstream aclocal script.
Reopening the bug, as gnatcoll-2017-11.fc28 started to depend on `/usr/bin/python2` since version 2017-11. This happened, due to recently introduced shebangs mangling [0]. You might see the warning in the build log: > *** WARNING: mangling shebang in ./usr/share/gnatcoll/dborm.py from #!/usr/bin/env python to #!/usr/bin/python2. This will become an ERROR, fix it manually! Given that `dborm.py` is compatible with Python 2 and Python 3, please switch the shebang to `#!/usr/bin/python3` manually. [0] https://pagure.io/packaging-committee/issue/738#comment-490366
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'.
Patched.