On 2007-08-31 14:13:34 +0200, Christian Boltz wrote:
> 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.
> 
> The specfile should then contain commands like (replacing the example 
> above):
> 
>     %symlink_license COPYING
>     %symlink_license copyright.txt
> 
> Oh, and please do this ASAP, before more package(r)s include the script 
> in the spec file ;-)

what bugnumber is that?

  darix

-- 
           openSUSE - SUSE Linux is my linux
               openSUSE is good for you
                   www.opensuse.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to