On Sun, 25 May 2025 at 10:39, Mattia Verga via devel <
devel@lists.fedoraproject.org> 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
On Sun, 25 May 2025 18:49:26 +0100, Barry Scott wrote:
> %doc is not a directive that copies anything, which you seem to be
> saying.
The so-called "special %doc" copies files from local builddir to
%_docdir/%name/
Example:
%files
%doc README
--
On Sun, 25 May 2025 16:16:45 +, Mattia Verga via devel 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 "regula
> On 25 May 2025, at 17:16, Mattia Verga via devel
> 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 "regul
Il 25/05/25 12:07, Björn Persson ha scritto:
> 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
On Sun, 25 May 2025 08:38:14 +, 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
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 n
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 b