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

Re: +dfsg extension with Files-Excluded: in d/copyright



On 01-09-15 12:24, Johannes Schauer wrote:
> Quoting Sebastiaan Couwenberg (2015-09-01 12:13:07)
>> Add the repacksuffix option, e.g.:
>> 
>> version=3 opts=\ dversionmangle=s/\+dfsg//,\ 
>> uversionmangle=s/$/+dfsg/,\ repacksuffix=+dfsg \ 
>> http://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/fv/ \ 
>> fv(.+\..+)_src\.tar\.gz
>> 
> 
> is the uversionmangle option still needed with repacksuffix?

No, repacksuffix is sufficient to have uscan append it to upstream
version (and only when it actually repacks the upstream sources, if no
Files-Excluded match no repacking is done). uversionmangle is mostly
usefull for mangling pre-releases.

For this specific software I'd use the following watch file:

version=3
opts=\
dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/,\
repacksuffix=+dfsg \
http://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/fv/ \
(?:.*?/)?fv(\d\S+)_src\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

This handles the common issues documented on the Wiki:

https://wiki.debian.org/debian/watch#Common_mistakes

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1


Reply to: