On 2007-08-31 14:20:21 +0200, Lukas Ocilka wrote:
> Date: Fri, 31 Aug 2007 14:20:21 +0200
> From: Lukas Ocilka <[EMAIL PROTECTED]>
> Subject: Re: [opensuse-packaging] Handling license symlinks
> To: Christian Boltz <[EMAIL PROTECTED]>
> Cc: [email protected]
> X-DSPAM-Result: Innocent
> X-DSPAM-Confidence: 0.9906
> X-DSPAM-Probability: 0.0000
>
> 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!
we could run md5sum on all files in the documentation directory of the
package and compare those against the known licenses md5sums.
should be easy with a simple perl/python script.
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]