Hi,
I packaged dozen of packages and I'm used to put LICENSE and README
files just as:
%doc README LICENSE
which place these files in:
/usr/share/doc/%{name}-%{version}
Recently I started packaging some rubygems and reviewers pointed [1,2]
me that I should not explicitly move these files to this location and
leave them in %{gem_instdir}.
I do not feel it is correct behaviour.
I ran few statistics on my workstation:
I have 776 file with name LICENSE owned by some rpm package [3].
631 packages have this file in /usr/share/doc/%{name}-%{version} [4]
145 packages have this file in different location [5]
From this number 57 is rubygems packages [6] - out of 94 installed [7]
So it is indeed very common for rubygems to have LICENSE in %{gem_instdir}.
The other packages which have LICENSE in various paths are e.g. firefox:
/usr/lib64/firefox/LICENSE
or libreoffice:
/usr/lib64/libreoffice/LICENSE
or sos:
/usr/share/sos/LICENSE
or kde:
/usr/share/kde4/apps/LICENSES/GPL_V2
I would like to ask: what should be correct location of LICENSE and
README files. Should we standardize it (at least as SHOULD item)? Or
give everyone liberty to put it anywhere he want and just flag it using
%doc?
[1]
https://bugzilla.redhat.com/show_bug.cgi?id=847504#c13
[2]
https://bugzilla.redhat.com/show_bug.cgi?id=845805#c3
[3] rpm -qal | grep LICENSE | wc -l
[4] rpm -qal |grep LICENSE |grep /usr/share/doc|wc -l
[5] rpm -qal |grep LICENSE |grep -v /usr/share/doc|wc -l
[6] rpm -qal |grep LICENSE |grep -v /usr/share/doc |grep /gems/|wc -l
[7] rpm -qa |grep rubygem- |wc -l
--
Miroslav Suchy
Red Hat Systems Management Engineering