Mailinglist Archive: opensuse-packaging (145 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Building packages with linking a license from licenses.rpm
- From: Lars Vogdt <lrupp@xxxxxxx>
- Date: Tue, 24 Jul 2007 17:08:34 +0200
- Message-id: <200707241708.36254.lrupp@xxxxxxx>
Am Dienstag, 24. Juli 2007 16:55 schrieb Stanislav Brabec:
> 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.
Thanks Stanislav !
Michael: is this something we can add as rpm macro in 10.3 ?
> 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.
=> bugzila, please... ;-)
Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
> 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.
Thanks Stanislav !
Michael: is this something we can add as rpm macro in 10.3 ?
> 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.
=> bugzila, please... ;-)
Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |