Re: automatic packaging of _docdir?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7 September 2015 at 12:26, Miroslav Suchý <msuchy@xxxxxxxxxx> 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
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list




[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux