[Rpm-maint] [rpm-software-management/rpm] %license (and similar tags) should take priority over other listings and RPM shouldn't warn about files listed twice (Issue #2144)
torsava
notifications at github.com
Thu Aug 4 11:46:15 UTC 2022
Hi,
I believe RPM is behaving in a confusing way in the `%files` section.
For example, when you have a Python project you usually list in the `%files` section the entire directory under the Python `site-packages`. E.g. for `pipenv` we list the entire directory `%{python3_sitelib}/pipenv` (evaluates to e.g. `/usr/lib64/python3.10/site-packages/pipenv`). This is standard practice and widely followed. However, oftentimes you want to also tag some of those files using a special macro, such as `%license`, so that for example bundled license files are properly listed in the metadata.
However, if you do this, RPM currently complains that the files are listed twice, and also it's not guaranteed that the `%license` listing will win over the regular listing, it seems to be just implementation detail, which doesn't work for some other special macros.
I've encountered this in my PR: https://src.fedoraproject.org/rpms/pipenv/pull-request/54
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2144
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2144 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220804/441cebf3/attachment-0001.html>
More information about the Rpm-maint
mailing list