[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DFSG compliant packages (Solution)



Hi all!
	I have finally decided to use uscan and a small script to do it. Of
course, any suggestion or improvement is really welcomed!!!

	Ghe Rivero

Watch File:

version=3
opts="dversionmangle=s/\.dfsg\.\d+$//,uversionmangle=s/\-\d+$//" \
http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/SRPMS/
libuser-([\d.-]*).src.rpm debian debian/update-orig-dfsg

update-orig-dfsg File:

#!/bin/bash
ORIGDIR=`pwd`
TMPFILE=`mktemp -p .. libuser-XXXXXXX`
NAME="libuser"
VERSION=$2
SOURCE=$3
NON_FREE="docs/rfc2307.txt"
DFSG="dfsg.1"


rpm2cpio $SOURCE > $TMPFILE
ORIG=`cpio --list < $TMPFILE | grep tar.gz`
cd $ORIGDIR/.. && cpio -idmv --no-absolute-filenames < $ORIGDIR/$TMPFILE
gunzip $ORIG
tar --file=$NAME-$VERSION.tar --delete $NAME-$VERSION/$NON_FREE
gzip $NAME-$VERSION.tar
mv $ORIG $NAME-$VERSION.$DFSG.tar.gz
cd $ORIGDIR && uupdate ../$NAME-$VERSION.$DFSG.tar.gz -v $VERSION.$DFSG

Damyan Ivanov wrote:
> [resent to list]
> Ghe Rivero wrote:
> 
>>    i have a "little" problem with one package. It contains a rfc doc,
>>which it's clearly non DFSG compliant. The package is created properly
>>and all this, but the problems cames when updating the package, since
>>the new orig source contains again the rfc doc and the debian changelog
>>change version from
>>0.1.2.dfsg.1-1 to 0.2.1-1. I know i can resolve all this manually, but
>>is there any easy way to do it automagically? Thx in advanced,
> 
> 
> Create a target in debian/rules - something like get-orig-dfsg: and make it do
> whatever you want - fetch, purge non-GFSG content, repack .orig.tar.gz, etc.
> 
> 
> dam



Reply to: