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
pgpN8KoFRIKRz.pgp
Description: OpenPGP digital signatur
-- _______________________________________________ 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