Lars Vogdt wrote:
> But I talked to mrueckert some days bevore - we're thinking about a rpm
> macro _and_ an additional internal brp-check. As none of these both is
> done currently, any other ideas are very welcome!
This is what I use just now in my packages:
for FILE in COPYING COPYING.LIB ; 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
If you will replace list in the first line by an argument, you have a
macro.
You can also use "shopt -s nullglob" and add complete list of possible
names.
Note that rpmlint check is incomplete and does not check less common
names for license.
And dangling check in the rpmlint is broken and reports each link to
license as a dangling link.
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: [EMAIL PROTECTED]
Lihovarská 1060/12 tel: +420 284 028 966
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]