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'
How can I make %doc use that as absolute patch instead of special form?
Am I wrong or it's a bug?
[1] https://rpm-software-management.github.io/rpm/manual/spec.html
--
_______________________________________________
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