Il 27/10/2016 02:51, Orion Poplawski ha scritto:
On 10/26/2016 05:16 PM, Germano Massullo wrote:
> A proven packager edited one of the python libraries I maintain, to add
> some useful stuff. Among all the edits he made, there is one in
> particular that made me write this message.
> %{?python_provide:%python_provide python3-%{pypi_name}}
> has been replaced with
> %{?python_provide:%python_provide
> python%{python3_pkgversion}-%{pypi_name}}
>
> What is the advantage of using %{python3_pkgversion} tag? Have in future
> a package name like python31-foo ?
> Till now I have only seen names like
> python2-foo
> and
> python3-foo
%python3_pkgversion will always resolve to 3 on Fedora (at least for
the foreseeable future). On EPEL, it currently resolves to 34 as that
is the current main (and only at the moment) python3 version in EPEL.
At some point we will introduce a new python3 version (probably 3.6 at
this point) and will start to shift to that.
See also -
https://fedoraproject.org/wiki/PackagingDrafts:Python3EPEL
We don't currently have %python3_other*. I'm hopeful that we can come
up with some better macros for handling the multiple versions before
rolling that out.
- Orion
Hi Orion, thank you for your help, I am actually applying your patch to
all python packages I maintain.
Have a nice day!