-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packaging: update building for Python3 (RHEL 8+ & Fedora)
The SPEC file has been simplified to make the maintaining simple for people. As the set of changes seems biger regarding that, here is the list of changes explicitly: * The building for Python2 and Python3 is now exclusive. Python2 is supported only on RHEL 7. For all newer systems (Fedora including) build just with Python3. * Additionaly the python3-leapp packages provides leapp-framework as expected. * Remove auto generated python(abi) dependency on Python3 systems Various versions of systems (RHEL 8, RHEL 9, Fedora 33, Fedora 34) use different versions of Python. This means the python(abi) is different on each system, however leapp packages (excluding the deps metapackage) has to survive the upgrade of the system untouched. This is not possible when requirements on python(abi) is defined, so drop this dependency from all packages. * python(abi) for Python2 is kept untouched for historical reasons and because python 2.7 is on both - RHEL 7 and RHEL 8 systems. * Remove autogenerated /usr/libexec/platform-python dependency on EL8 It's analogy to the problem above. Just in this case, this dependency has been generated just on EL 8 systems. However the platform-python will not exist anymore on newer systems. * Additionally disable auto generation of Python3 dependencies. The dependencies are expected to be handled via the deps package, however the autogenerated deps were put into the python3-leapp rpm, which is not what we want (it breaks our handy solution with deps in case of IPU). * Set the conflifcts between python2-leapp and python3-leapp pkgs We build only for Python2 of Python3, so enable installation only one of those two packages. As well we do not want to set provides and bosoletes for Python2, because packages from one system cannot be just updated by packages from another system. * Enable building of leapp on Fedora Since the leapp tool doesn't provide any specific commits, it's no problem to enable it's building for the Fedora - as it doesn't depends on leapp-repository neither. The manpage is still confusing but that's going to be updated in the separate PR.
- Loading branch information
Showing
2 changed files
with
74 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters