On Wed, 2007-07-11 at 00:32 +1200, Francois Marier wrote:
> I'm trying to get my package to depend on a specific upstream version of
> another package and ignore the Debian component of the version string.
For the Mono packages we use this snippet to get the upstream version in
debian/rules:
VERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\ -f2)
UPVERSION = $(shell echo $(VERSION) | sed 's,-.*,,')
NEXT_UPVERSION = $(shell perl -e '$$_=pop; s/(\d+)$$/$$1+1/e; print' $(UPVERSION))
which is then passed to debian/control via:
dh_gencontrol -i -- -Vmono:upversion=$(UPVERSION) -Vmono:next-upversion=$(NEXT_UPVERSION)
then ${mono:upversion} and ${mono:next-upversion} can be used in debian/control
--
Regards,
Mirco 'meebey' Bauer
PGP-Key ID: 0xEEF946C8
FOSS Developer meebey@meebey.net http://www.meebey.net/
PEAR Developer meebey@php.net http://pear.php.net/
Debian Developer meebey@debian.org http://www.debian.org/
Attachment:
signature.asc
Description: This is a digitally signed message part