From 5a6e58fb1660c9fbb938a0ab102266b67d605895 Mon Sep 17 00:00:00 2001 From: Colin Coghill Date: Tue, 6 Aug 2024 13:56:16 +1200 Subject: [PATCH] only build versions for postgres 13 and 16 --- debian/control | 4 ++-- debian/control.in | 4 ++-- debian/pgversions | 4 ++-- debian/rules | 8 +++++++- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/debian/control b/debian/control index 72608f7268c..0893496f346 100644 --- a/debian/control +++ b/debian/control @@ -28,9 +28,9 @@ Build-Depends: bison, lsb-release, pkgconf, po-debconf, - postgresql-all, postgresql-common (>= 148~), - postgresql-server-dev-all, + postgresql-server-dev-13, + postgresql-server-dev-16, protobuf-c-compiler, rdfind, xsltproc diff --git a/debian/control.in b/debian/control.in index 844a43dd53a..236e2b75bd0 100644 --- a/debian/control.in +++ b/debian/control.in @@ -28,9 +28,9 @@ Build-Depends: bison, lsb-release, pkgconf, po-debconf, - postgresql-all, postgresql-common (>= 148~), - postgresql-server-dev-all, + postgresql-server-dev-13, + postgresql-server-dev-16, protobuf-c-compiler, rdfind, xsltproc diff --git a/debian/pgversions b/debian/pgversions index e2a84b74fe8..7475fc65230 100644 --- a/debian/pgversions +++ b/debian/pgversions @@ -1,2 +1,2 @@ -# PostGIS requires PostgreSQL >= 12 -12+ +13 +16 diff --git a/debian/rules b/debian/rules index 1ef5b69224a..2c7caadfe34 100755 --- a/debian/rules +++ b/debian/rules @@ -15,7 +15,13 @@ export PG_UPDATECONTROL=yes include /usr/share/dpkg/architecture.mk include /usr/share/dpkg/pkg-info.mk -include /usr/share/postgresql-common/pgxs_debian_control.mk + +debian/control: debian/control.in debian/pgversions + pg_buildext checkcontrol + +# run check when clean is invoked +clean: debian/control +.PHONY: debian/control # Ignore testsuite failures on these architectures IGNORE_TEST_FAILURE_ARCHS = i386 mips mips64el mipsel s390x alpha hppa hurd-i386 kfreebsd-i386 powerpc ppc64 sparc64