From 7c42baaf71857e9b26692bd49283d2b0fdb4531a Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Sun, 18 Oct 2020 22:28:25 +0200 Subject: [PATCH] Debian: Upload for PostgreSQL 13. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Use dh --with pgxs_loop. * DH 13. * R³: no. * debian/tests: Use 'make' instead of postgresql-server-dev-all. --- debian/changelog | 10 +++++++++ debian/compat | 1 - debian/control | 50 +++++------------------------------------ debian/control.in | 5 +++-- debian/rules | 17 +++----------- debian/tests/control | 2 +- debian/tests/control.in | 2 +- 7 files changed, 23 insertions(+), 64 deletions(-) delete mode 100644 debian/compat diff --git a/debian/changelog b/debian/changelog index 50d847d..10ca530 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,13 @@ +hypopg (1.1.4-2) unstable; urgency=medium + + * Team upload for PostgreSQL 13. + * Use dh --with pgxs_loop. + * DH 13. + * R³: no. + * debian/tests: Use 'make' instead of postgresql-server-dev-all. + + -- Christoph Berg Sun, 18 Oct 2020 22:16:44 +0200 + hypopg (1.1.4-1) unstable; urgency=medium * New upstream version with PG13 support. diff --git a/debian/compat b/debian/compat deleted file mode 100644 index ec63514..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/debian/control b/debian/control index c8ea42a..f6b9163 100644 --- a/debian/control +++ b/debian/control @@ -2,59 +2,19 @@ Source: hypopg Section: database Priority: optional Maintainer: Julien Rouhaud -Standards-Version: 4.1.3 -Build-Depends: debhelper (>=9~), postgresql-server-dev-all (>= 141~) +Standards-Version: 4.5.0 +Rules-Requires-Root: no +Build-Depends: debhelper-compat (= 13), postgresql-all (>= 217~) Homepage: https://hypopg.readthedocs.io/ Vcs-Browser: https://github.com/hypopg/hypopg Vcs-Git: https://github.com/hypopg/hypopg.git -Package: postgresql-9.3-hypopg +Package: postgresql-13-hypopg Architecture: any -Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.3 +Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-13 Description: PostgreSQL extension adding support for hypothetical indexes. An hypothetical, or virtual, index is an index that doesn't really exists, and thus doesn't cost CPU, disk or any resource to create. They're useful to know if specific indexes can increase performance for problematic queries, since you can know if PostgreSQL will use these indexes or not without having to spend resources to create them. - -Package: postgresql-9.4-hypopg -Architecture: any -Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.4 -Description: PostgreSQL extension adding support for hypothetical indexes. - An hypothetical, or virtual, index is an index that doesn't really exists, and - thus doesn't cost CPU, disk or any resource to create. They're useful to know - if specific indexes can increase performance for problematic queries, since - you can know if PostgreSQL will use these indexes or not without having to - spend resources to create them. - -Package: postgresql-9.5-hypopg -Architecture: any -Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.5 -Description: PostgreSQL extension adding support for hypothetical indexes. - An hypothetical, or virtual, index is an index that doesn't really exists, and - thus doesn't cost CPU, disk or any resource to create. They're useful to know - if specific indexes can increase performance for problematic queries, since - you can know if PostgreSQL will use these indexes or not without having to - spend resources to create them. - -Package: postgresql-9.6-hypopg -Architecture: any -Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-9.6 -Description: PostgreSQL extension adding support for hypothetical indexes. - An hypothetical, or virtual, index is an index that doesn't really exists, and - thus doesn't cost CPU, disk or any resource to create. They're useful to know - if specific indexes can increase performance for problematic queries, since - you can know if PostgreSQL will use these indexes or not without having to - spend resources to create them. - -Package: postgresql-10-hypopg -Architecture: any -Depends: ${misc:Depends}, ${shlibs:Depends}, postgresql-10 -Description: PostgreSQL extension adding support for hypothetical indexes. - An hypothetical, or virtual, index is an index that doesn't really exists, and - thus doesn't cost CPU, disk or any resource to create. They're useful to know - if specific indexes can increase performance for problematic queries, since - you can know if PostgreSQL will use these indexes or not without having to - spend resources to create them. - diff --git a/debian/control.in b/debian/control.in index 24fb783..0a80f54 100644 --- a/debian/control.in +++ b/debian/control.in @@ -2,8 +2,9 @@ Source: hypopg Section: database Priority: optional Maintainer: Julien Rouhaud -Standards-Version: 4.1.3 -Build-Depends: debhelper (>=9~), postgresql-server-dev-all (>= 141~) +Standards-Version: 4.5.0 +Rules-Requires-Root: no +Build-Depends: debhelper-compat (= 13), postgresql-all (>= 217~) Homepage: https://hypopg.readthedocs.io/ Vcs-Browser: https://github.com/hypopg/hypopg Vcs-Git: https://github.com/hypopg/hypopg.git diff --git a/debian/rules b/debian/rules index 0dd756b..3de2dd0 100755 --- a/debian/rules +++ b/debian/rules @@ -3,26 +3,15 @@ PKGVER = $(shell dpkg-parsechangelog | awk -F '[:-]' '/^Version:/ { print substr($$2, 2) }') EXCLUDE = --exclude-vcs --exclude=debian -include /usr/share/postgresql-common/pgxs_debian_control.mk - -override_dh_auto_build: - # do nothing - -override_dh_auto_test: - # nothing to do here, upstream tests used, see debian/tests/* - -override_dh_auto_install: - # build all supported versions - +pg_buildext loop postgresql-%v-hypopg - override_dh_installdocs: dh_installdocs --all CONTRIBUTORS.md README.md rm -rvf debian/*/usr/share/doc/postgresql-doc-* override_dh_installchangelogs: - dh_installchangelogs CHANGELOG.md upstream + dh_installchangelogs CHANGELOG.md orig: debian/control clean cd .. && tar czf hypopg_$(PKGVER).orig.tar.gz $(EXCLUDE) hypopg-$(PKGVER) + %: - dh $@ + dh $@ --with pgxs_loop diff --git a/debian/tests/control b/debian/tests/control index de2bd67..8749d12 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,3 +1,3 @@ -Depends: @, postgresql-server-dev-all, postgresql-contrib-9.3, postgresql-contrib-9.4, postgresql-contrib-9.5, postgresql-contrib-9.6, postgresql-contrib-10 +Depends: @, make, postgresql-contrib-13 Tests: installcheck Restrictions: allow-stderr diff --git a/debian/tests/control.in b/debian/tests/control.in index 6133138..9abbe52 100644 --- a/debian/tests/control.in +++ b/debian/tests/control.in @@ -1,3 +1,3 @@ -Depends: @, postgresql-server-dev-all, postgresql-contrib-PGVERSION +Depends: @, make, postgresql-contrib-PGVERSION Tests: installcheck Restrictions: allow-stderr