Christian Boltz wrote:
Hello,
creating the symlink to licenses in the licenses package is curently done by including a small script in each spec file, like:
for FILE in COPYING copyright.txt ; do MD5SUM=$(md5sum $FILE | sed 's/ .*//') if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE fi done
This is error-prone (see bug 306681) and adds lots of duplicated code to the spec files.
Please add a small script to the licenses package or create a rpm macro that creates the symlink. If the rpm macro could also drop in a "Requires: licenses", it would be even better.
We already tried to solve this issue. The problem is (also) that there is no known list of license filenames (COPYING, copyright.txt, Copyright.txt, COPYING.english ...) Anyway, I'd be still for having the macro, probably two of them: 1.) automatic macro that tries known filenames 2.) manual macro that expects filenames as a parameter Adding or checking whether RPM requires 'licenses' would be very nice! ;) Bye Lukas