debian packaging: drop support for Ubuntu 12.04

Ubuntu 12.04 is EoL in three months' time and producing working binaries
that are easily installable has proven impossible.
This commit is contained in:
David Adam 2017-01-07 15:32:47 +08:00
parent 573916e5e2
commit 430d82bd4f

6
debian/rules vendored
View File

@ -10,13 +10,11 @@ DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk -include /usr/share/dpkg/buildflags.mk
DEB_DISTRIBUTION = $(shell dpkg-parsechangelog | sed -n -e 's/^Distribution: //p') DEB_DISTRIBUTION = $(shell dpkg-parsechangelog | sed -n -e 's/^Distribution: //p')
# Ubuntu 12.04 (precise) and Debian 7 have versions of Automake too old # Debian 7 has a version of Automake too old
# to support autoreconf; just use the tarball-shipped versions # to support autoreconf; just use the tarball-shipped versions
# Can be removed once we stop shipping on these versions # Can be removed once we stop shipping on these versions
%: %:
ifeq ($(DEB_DISTRIBUTION), precise) ifeq ($(findstring 7, $(shell cat /etc/debian_version)), 7)
dh $@ --with autotools-dev
else ifeq ($(findstring 7, $(shell cat /etc/debian_version)), 7)
dh $@ --with autotools-dev dh $@ --with autotools-dev
else else
dh $@ --with autotools-dev,autoreconf dh $@ --with autotools-dev,autoreconf