%{python3} = python3
%{python3} = /usr/bin/python3
At least in Fedora. In EPEL, most likely as well.
See https://bugzilla.redhat.com/show_bug.cgi?id=1812665
There's a bug in the macros.
But that bug has nothing to do with either %python3 or %python3_pkgversion.
Requires: %{python3}
Requires: %{python3}-dbus
What does this supposed to evaluate to?
Anyway, the inconsistency problem is:
python36-dbus on EPEL 7 does not provide python3-dbus (can be fixed by adding
%python_provide %{name} to the EPEL package)
python3-dbus in RHEL 8 does not provide python36-dbus (can be fixed by changing
RHEL's %python_provide and rebuilding the RHEL package, not sure if that will go
trough)
I am looking into python3_pkgversion macro but that doesn't seem to be correct either.
This should work on both EPEL 7 and EPEL 8:
Requires: python%{python3_pkgversion}-dbus
Doesn't it?
$ mock -r epel-7-x86_64 shell
<mock-chroot> sh-4.2# rpm --eval '%python3_pkgversion'
36
$ mock -r epel-8-x86_64 shell
<mock-chroot> sh-4.4# rpm --eval '%python3_pkgversion'
3
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
epel-devel mailing list -- epel-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to epel-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx