Move to a simpler versioning scheme (the one derived from upstream

is going to break the ordering that Debian expects very soon).

When building from source not via debian/rules, derive a version from
git describe.
This commit is contained in:
Oliver Jowett 2015-01-22 13:19:15 +00:00
parent ada188a1c8
commit af3eb3df2b
4 changed files with 10 additions and 12 deletions

2
debian/changelog vendored
View file

@ -1,4 +1,4 @@
dump1090-mutability (1.10.3010.14mu-13) UNRELEASED; urgency=medium
dump1090-mutability (1.13) UNRELEASED; urgency=medium
* Fix stable sort of rows with no sortable values (would cause "jumping"
rows at the end of the table)

4
debian/rules vendored
View file

@ -14,11 +14,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
VER=$(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
export DUMP1090_VERSION=$(shell dpkg-parsechangelog | sed -n 's/^Version: /v/p')
SRCNAME=$(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
override_dh_auto_build:
dh_auto_build -- 'EXTRACFLAGS=-DHTMLPATH=\"/usr/share/dump1090-mutability/html\" -DMODES_DUMP1090_VARIANT=\"$(SRCNAME)\" -DMODES_DUMP1090_VERSION=\"$(VER)\"'
dh_auto_build -- 'EXTRACFLAGS=-DHTMLPATH=\"/usr/share/dump1090-mutability/html\" -DMODES_DUMP1090_VARIANT=\"$(SRCNAME)\"'
override_dh_install:
dh_install