Technically this seems to be the same like %doc except that it copies to %_defaultlicensedir instead of %_defaultdocdir. with other words
%license FOO
will copy FOO file to /usr/share/licenses/%name/FOO
great idea, is used for one year in Fedora and RHEL . with simple motivation separate doc and licence for containers and cloud images ... which are build without doc , but legal needs licencse file for every package.
it is horrible. Now one extra directory is created for every package (and there is only one file on it on average), which is going to kill ?filesystem traversal performance for people who still use a rotating disk for /usr. (Not that it makes a difference if the license file is the only %doc file in the %files list.)
you live in very different world than rest... And workaroud for older packages is simple ... %if oldversion %define license doc.. %endif On 5 February 2016 at 11:11, Dirk Müller <dirk@dmllr.de> wrote:
Hi,
recently I've been made aware that other distributions are adopting %license convention for tagging package licenses.
Technically this seems to be the same like %doc except that it copies to %_defaultlicensedir instead of %_defaultdocdir. with other words
%license FOO
will copy FOO file to /usr/share/licenses/%name/FOO
What are the opinions around that? Since I'm collaborating packaging with non-openSUSE distributions, I'd like to switch to that globally. unfortunately this seems to be entirely broken on older distros, but thats a 2nd step to take care of.
An alternative would be to redefine %defaultlicensedir to %docdir, which would make install the file in the old location, and we could use %license and %doc interchangeably.
I wanted to make sure we're aligned on this prior to discussing htis with the openSUSE spec file reviewer team.
Thanks, Dirk -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org