On 25. 05. 22 1:56, Orion Poplawski wrote:

== Issues ==
* How to handle %{py3_dist} macro?

I believe `%{py3_dist}` works properly if you add `%global python3_pkgversion
3X`.

It looks like it's hard-coded to python3dist, so I think it has to change to %{py38_dist}.

That could (should?) be fixed by either redefining the macro in each python3X-rpm-macros or by changing the macro in python-srpm-macros to use %python3_pkgversion value -- that would require some "guess-work" where to put the dot, but I suppose the logic won't be that convoluted:

 * 3 -> python3dist
 * 3X -> python3.Xdist
 * 3XY -> python3.XYdist
 * 3.X -> python3.Xdist
 * 3.Y -> python3.XYdist
 * anything else -> blow up?

That reminds me https://bugzilla.redhat.com/show_bug.cgi?id=1812665 which was fixed incorrectly in RHEL 7 but a followup was never opened.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
epel-devel mailing list -- epel-devel@lists.fedoraproject.org
To unsubscribe send an email to epel-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/epel-devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to