Il 25/05/25 12:07, Björn Persson ha scritto: > Mattia Verga via devel wrote: >> But using >> '%doc %{_pkgdocdir}/python_module/README.md' >> returns >> 'Can't mix special %doc with other forms: >> /usr/share/doc/siril/python_module/README.md' > I'm surprised that that's considered an error. I would have thought it > would work, but I also think it's not needed. I have found that files > under /usr/share/doc are automatically marked as documentation, so you > don't need "%doc". Verify with "rpm --query --docfiles <package>". > > When the concept of license files was added to RPM, I expected it to > work analogously to documentation files, but when I checked, files > under /usr/share/licenses were *not* automatically marked as license > files. Thus I put constructs like "%license %{_licensedir}/%{name}" in > my spec files, and that has worked for me. > > Björn Persson
... and I thought exactly the contrary - that %doc worked like %license, so I'd have to put %doc directive to mark docfiles. So, if I understand correctly, I should use %doc only when I need to "manually" copy docfiles from builddir to buildroot, instead if a package already install docfiles in the correct position I just have to list as "regular" files. Do we need to adjust upstream / Fedora docs about that? Mattia -- _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to 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/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue