> On 25 May 2025, at 17:16, Mattia Verga via devel 
> <devel@lists.fedoraproject.org> wrote:
> 
> 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.

You will have copied all files in your %install which is independent of the 
%files
section of your spec file.

You are then using %doc within the %files to annotate which of the files are 
docs.

If you have the docs in a known folder then you do not need the %doc.
If you have installed docs in a none standard folder then you need %doc.

%doc is not a directive that copies anything, which you seem to be saying.

Barry

-- 
_______________________________________________
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

Reply via email to