Re: Packaging of /usr/share/doc/{%name}-{%version} directories not 100% clear

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

 



On Thu, 20 Nov 2014 13:03:24 +0200, Alexander Todorov wrote:

> На 20.11.2014 в 12:55, Michael Schwendt написа:
> 
> >> %dir %{_docdir}/%{name}-%{version}
> >> %doc %{_docdir}/%{name}-%{version}/some_file
> >>
> >> or
> >>
> >> %doc %{_docdir}/%{name}-%{version}
> >>
> >> in their spec files.
> >
> > They do that so the directory gets _removed_ when *uninstalling* the package.
> > Did you test that case, too?
> >
> 
> Are you completely sure?
>
> alsa-lib does specify:
> 
> %doc COPYING TODO
> 
> without the name-version directory and that directory IS removed when `yum 
> remove alsa-libs'.

Are you not just confused by the UnversionedDocDirs feature of F20 and
the requirements it added for packagers?

As of F20, what %doc macro magic does when specifying *local* files is:

 1) create and include the directory %{_docdir}/%{name}/
 2) copy the specified local files into that dir and include them

On the contrary, the packages you refer to explicitly include a _versioned_
docdir, which %doc macro magic no longer handles.

There is an entire family of problems related to using %doc, %_docdir and/or
%_pkgdocdir these days. See also:
  https://fedorahosted.org/fpc/ticket/338
  ( %doc and %_pkgdocdir duplicate files and cause conflicts )
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux