On Sun, 25 May 2025 at 10:39, Mattia Verga via devel <
[email protected]> wrote:
> I'm struggling with RPM's %doc directive... I have a package which
> installs a doc file in the buildroot, so I want to mark it as
> documentation.
>
> According to the RPM guide [1], the %doc directive can be used "in
> “special” form on a path relative to the build directory which causes
> the files to be installed and packaged as documentation", which is
> commonly used: '%doc README' will copy the README file from the build
> directory to the buildroot. But if a package already installs a file in
> the appropriate place of the buildroot, it should be possible to just
> mark that as documentation ("Can be used as a regular attribute on an
> absolute path")...
>
> 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'
>
You don't need to use %doc.
All files in %{_pkgdocdir} are automatically tagged by rpm on packaging as
%doc.
Try to check the output of "rpm --eval '%__docdir_path`" command to see
files from which one paths are tagged automatically as %doc.
kloczek
--
Tomasz Kłoczko | LinkedIn: http://lnkd.in/FXPWxH
--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue