License file in multiple locations

Orcan Ogetbil oget.fedora at gmail.com
Thu Apr 16 15:41:37 UTC 2009


On Thu, Apr 16, 2009 at 10:04 AM, Kalev Lember  wrote:
> Hello,
>
> I am trying to package a program that expects to find its license file
> (COPYING) in /usr/share/%{name} to be able to show license text at
> runtime. However, standard practice is to install this file to the %doc
> directory in /usr/share/doc/%{name}-%{version}.
>
> What would be a good way to solve this? Right now I can see 4 different
> ways and each of it has its flaws:
>
> 1) Symlink the file from /usr/share/%{name} to the standard %doc
> directory. This doesn't seem to be a good idea, because then runtime
> would depend on the presence of %doc marked items.
>

I would do it the other way around. Put the original file in
/usr/share/%{name}, and they symlink will be in
%{_docdir}/%{name}-%{version} pointing to  /usr/share/%{name}/COPYING
.

Orcan




More information about the fedora-devel-list mailing list