Miro Hrončok 2020-05-07 17:28:36 +02:00
commit 5f3e4d6300
4 changed files with 43 additions and 19 deletions

View file

@ -25,10 +25,31 @@
end\
}
# This specifies what packages are equal to the python3-... packages, in python_provide macro
# E.g. in Fedora 32, python38-foo will provide python3-foo and vice versa
# There are multiple Python 3 versions packaged, but only one can be the "main" version
# That means that it owns the "python3" namespace:
# - python3 package name
# - /usr/bin/python3 command
# - python3-foo packages are meant for this version
# Other versions of Python 3 always contain the version in the namespace:
# - python3.XX package name
# - /usr/bin/python3.XX command
# - python3.XX-foo packages (if allowed)
#
# Python spec files use the version defined here to determine defaults for the
# %%py_provides and %%python_provide macros, as well as for the "pythonname" generator that
# provides python3-foo for python3.XX-foo and vice versa for the default "main" version.
# E.g. in Fedora 32, python3.8-foo will provide python3-foo,
# python3-foo will provide python3.8-foo.
#
# There are two macros:
#
# This always contains the major.minor version (with dots), default for %%python3_version.
%__default_python3_version 3.8
%__default_python3_pkgversion %(echo %__default_python3_version | sed 's/\\.//')
#
# The pkgname version that determines the alternative provide name (e.g. python3.8-foo),
# set to the same as above, but historically hasn't included the dot.
# This is left intentionally a separate macro, in case the naming convention ever changes.
%__default_python3_pkgversion %__default_python3_version
# python3_pkgversion specifies the version of Python 3 in the distro. It can be
# a specific version (e.g. 34 in Fedora EPEL7)