On 07. 04. 20 12:27, Miro Hrončok wrote:
When you use %python_provide and when you build the package with the new generator, the provides are listed twice:
$ rpm -qp --provides python3-double-provides-0-0.fc33.noarch.rpm python-double-provides = 0-0.fc33 python-double-provides = 0-0.fc33 python3-double-provides = 0-0.fc33 python38-double-provides = 0-0.fc33 python38-double-provides = 0-0.fc33
$ rpmlint python3-double-provides-0-0.fc33.noarch.rpm ... python3-double-provides.noarch: E: useless-provides python-double-provides python3-double-provides.noarch: E: useless-provides python38-double-provides ...
I've reported that as a bug in RPM:
Apparently, there is a good reason to not have those merged. People are notified of the uselessness of the manual one. I'll take that into account when amending the guidelines.
I recommend to remove the manual %python_provide calls for package names on rawhide+.
It is "safe" to keep them for "single-spec" experience: The problem does no harm, createrepo_c merges those provides at the end.
If you like to have a single spec and don't want the rpmlint error, you can wrap the call in %{?!__pythonname_provides: }.