automatic packaging of _docdir?
Thierry Vignaud
thierry.vignaud at gmail.com
Mon Sep 7 10:32:46 UTC 2015
On 7 September 2015 at 12:26, Miroslav Suchý <msuchy at redhat.com> wrote:
> I have this snippet in my spec:
>
> %install
> mkdir -p %{buildroot}%{_docdir}/python-%{upstream_name}
> cp -a docs/* examples %{buildroot}%{_docdir}/python-%{upstream_name}/
>
> %files
> %doc %{_docdir}/python-%{upstream_name}
>
> However when I use it exactly this way I get warnings that those files are listed twice.
>
> When I comment it out:
> %files
> #%doc %{_docdir}/python-%{upstream_name}
>
> Then those doc files are packaged anyway.
> Is this new feature or bug?
You can:
1) either do a manual mkdir+cp & explicitly list in %files
2) or you just use %doc
You have to pick.
Obviously using %doc is simpler...
As bonus, using %doc enables to strip doc at install time with --excludedocs
More information about the Rpm-list
mailing list