On Sun, 25 May 2025 08:38:14 +0000, 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'
>
> How can I make %doc use that as absolute patch instead of special
> form? Am I wrong or it's a bug?
It used to be possible and still is with Fedora 42 and Fedora 43 (the
latter using the newer RPM version).
However, it would not have been needed, since %_pkgdocdir is
%_docdir/%name, and files below it are marked as %doc automatically
because it's one of the docdir paths:
$ rpm -E %__docdir_path
/usr/share/doc:/usr/share/man:/usr/share/info:/usr/share/gtk-doc/html:/usr/share/gnome/help::/usr/share/man:/usr/share/info:/usr/share/javadoc:/usr/doc:/usr/man:/usr/info:/usr/X11R6/man
A look at the full spec file may be needed. The "can't mix special"
error indicates that a file comes from special %doc on a relative path
within buildroot but has conflicting attributes within %files list.
--
_______________________________________________
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