debian/0000775000000000000000000000000012303361705007170 5ustar debian/watch0000664000000000000000000000023312303361350010213 0ustar version=3 https://github.com/dvarrazzo/pgmp/tags /dvarrazzo/pgmp/archive/rel-(.*).tar.gz #http://pgfoundry.org/frs/?group_id=1000561 .*/pgmp-(.*)\.tar\.gz debian/tests/0000775000000000000000000000000012303361476010337 5ustar debian/tests/installcheck0000775000000000000000000000050712303361350012722 0ustar #!/bin/sh set -e unset TMPDIR for v in $(pg_buildext supported-versions); do # redirect stderr to stdout so autopkgtest doesn't consider "NOTICE: # database "contrib_regression" does not exist, skipping" to be an # error pg_virtualenv -v $v \ make installcheck PG_CONFIG=/usr/lib/postgresql/$v/bin/pg_config 2>&1 done debian/tests/control0000664000000000000000000000013312303361475011736 0ustar Tests: installcheck Depends: @, postgresql-server-dev-all, python Restrictions: needs-root debian/svn-deblayout0000664000000000000000000000002712303361350011702 0ustar origDir=../../upstream debian/source/0000775000000000000000000000000012303361350010464 5ustar debian/source/format0000664000000000000000000000001412303361350011672 0ustar 3.0 (quilt) debian/rules0000775000000000000000000000377612303361350010261 0ustar #!/usr/bin/make -f SRCDIR := . include /usr/share/postgresql-common/pgxs_debian_control.mk build build-arch: build-stamp build-stamp: dh_testdir dh_prep # package doesn't support o-o-t build yet set -e; \ for version in $$(pg_buildext supported-versions .) ; do \ pg_config="/usr/lib/postgresql/$$version/bin/pg_config" ; \ echo "### Cleaning for PostgreSQL $$version" ; \ $(MAKE) clean PG_CONFIG="$$pg_config" ; \ echo "### Building for PostgreSQL $$version" ; \ $(MAKE) PG_CONFIG="$$pg_config" ; \ echo "### Installing for PostgreSQL $$version" ; \ destdir="$(CURDIR)/debian/postgresql-$$version-pgmp" ; \ if [ $$version '>' 9.0 ] ; then \ mkdir -p $$destdir/usr/share/postgresql/$$version/extension ; \ fi ; \ $(MAKE) install PG_CONFIG="$$pg_config" DESTDIR="$$destdir" ; \ if [ -d $$destdir/usr/share/doc/postgresql-doc* ] ; then \ mv $$destdir/usr/share/doc/postgresql-doc-*/* $$destdir/usr/share/doc/postgresql-$$version-pgmp ; \ rmdir $$destdir/usr/share/doc/postgresql-doc-* ; \ else \ mv $$destdir/usr/share/doc/postgresql/* $$destdir/usr/share/doc/postgresql-$$version-pgmp ; \ rmdir $$destdir/usr/share/doc/postgresql ; \ fi \ done touch $@ build-indep: clean: debian/control dh_testdir dh_testroot set -e; for version in $$(pg_buildext supported-versions .) ; do \ pg_config="/usr/lib/postgresql/$$version/bin/pg_config" ; \ echo "### Cleaning for PostgreSQL $$version" ; \ $(MAKE) clean PG_CONFIG="$$pg_config" || exit 1 ; \ done rm -rf build-stamp sql/pgmp.sql debian/postgresql-*-pgmp/ debian/*.substvars dh_clean install: build dh_testdir dh_testroot # no dh_prep here, we have already installed stuff binary binary-arch: install dh_testdir dh_testroot dh_installchangelogs -a dh_installdocs -a dh_install -a dh_link -a dh_strip -a dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary-indep: .PHONY: build build-arch build-indep clean binary binary-indep binary-arch debian/control debian/pgversions0000664000000000000000000000000412303361350011300 0ustar all debian/patches/0000775000000000000000000000000012303361350010613 5ustar debian/patches/series0000664000000000000000000000002612303361350012026 0ustar makefile htup_details debian/patches/makefile0000664000000000000000000000062512303361350012316 0ustar --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ SRC_H = $(wildcard src/*.h) SRCFILES = $(SRC_C) $(SRC_H) OBJS = $(patsubst %.c,%.o,$(SRC_C)) TESTFILES = $(wildcard test/sql/*.sql) $(wildcard test/expected/*.out) -DOCS = $(wildcard docs/*.rst) docs/conf.py docs/Makefile docs/_static/pgmp.css +DOCS = $(wildcard docs/*.rst) PKGFILES = AUTHORS COPYING README.rst Makefile \ META.json pgmp.control \ debian/patches/htup_details0000664000000000000000000000206512303361350013226 0ustar diff --git a/src/pmpz_arith.c b/src/pmpz_arith.c index 6231e8b..91accce 100644 --- a/src/pmpz_arith.c +++ b/src/pmpz_arith.c @@ -25,6 +25,9 @@ #include "fmgr.h" #include "funcapi.h" #include "access/hash.h" /* for hash_any */ +#if PG_VERSION_NUM >= 90300 +#include /* for heap_form_tuple */ +#endif /* diff --git a/src/pmpz_roots.c b/src/pmpz_roots.c index d771342..1ac7b86 100644 --- a/src/pmpz_roots.c +++ b/src/pmpz_roots.c @@ -24,6 +24,9 @@ #include "fmgr.h" #include "funcapi.h" +#if PG_VERSION_NUM >= 90300 +#include /* for heap_form_tuple */ +#endif /* Functions with a more generic signature are defined in pmpz.arith.c */ diff --git a/src/pmpz_theor.c b/src/pmpz_theor.c index ef77065..4290fc9 100644 --- a/src/pmpz_theor.c +++ b/src/pmpz_theor.c @@ -24,6 +24,9 @@ #include "fmgr.h" #include "funcapi.h" +#if PG_VERSION_NUM >= 90300 +#include /* for heap_form_tuple */ +#endif /* Function with a more generic signature are defined in pmpz.arith.c */ debian/copyright0000664000000000000000000000554512303361350011130 0ustar This package was debianized by Christoph Berg on April 26th, 2011. It was downloaded from http://pgmp.projects.postgresql.org/ Upstream Author and Copyright: * Copyright (C) 2011 Daniele Varrazzo * * The PostgreSQL GMP Module is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 3 of the License, * or (at your option) any later version. * * The PostgreSQL GMP Module is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * General Public License for more details. On Debian systems, a copy of the LGPL can be found in /usr/share/common-licenses/LGPL. Some css and js files in docs/html/_static/ have a different Copyright: * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * Sphinx stylesheet -- basic theme. * * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. Sphinx Copyright Holders: Georg Brandl , Armin Ronacher , Josip Dzolonga, Gerold Penz, Vivake Gupta License for Sphinx ================== Copyright (c) 2007-2011 by the Sphinx team (see AUTHORS file). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/control.in0000664000000000000000000000234612303361350011201 0ustar Source: postgresql-pgmp Section: database Priority: optional Maintainer: Christoph Berg Build-Depends: debhelper (>= 7), libgmp-dev, postgresql-server-dev-all (>= 148~), python-minimal Standards-Version: 3.9.4 Homepage: https://github.com/dvarrazzo/pgmp Vcs-Git: git://anonscm.debian.org/pkg-postgresql/postgresql-pgmp.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/postgresql-pgmp.git XS-Testsuite: autopkgtest Package: postgresql-PGVERSION-pgmp Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, postgresql-PGVERSION Description: arbitrary precision integers and rationals for PostgreSQL PGVERSION pgmp is a PostgreSQL extension to add the GMP data types and functions directly into the database. . The extension adds the types mpz (arbitrary size integers) and mpq (arbitrary precision rationals) to PostgreSQL and exposes to the database all the functions available in the GMP library for these data types, allowing: . * higher performance arithmetic on integers respect to the numeric data type * a rational data type for absolute precision storage and arithmetic * using specialized functions to deal with prime numbers, random numbers, factorization directly into the database. debian/control0000664000000000000000000000232512303361350010571 0ustar Source: postgresql-pgmp Section: database Priority: optional Maintainer: Christoph Berg Build-Depends: debhelper (>= 7), libgmp-dev, postgresql-server-dev-all (>= 148~), python-minimal Standards-Version: 3.9.4 Homepage: https://github.com/dvarrazzo/pgmp Vcs-Git: git://anonscm.debian.org/pkg-postgresql/postgresql-pgmp.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/postgresql-pgmp.git XS-Testsuite: autopkgtest Package: postgresql-9.3-pgmp Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, postgresql-9.3 Description: arbitrary precision integers and rationals for PostgreSQL 9.3 pgmp is a PostgreSQL extension to add the GMP data types and functions directly into the database. . The extension adds the types mpz (arbitrary size integers) and mpq (arbitrary precision rationals) to PostgreSQL and exposes to the database all the functions available in the GMP library for these data types, allowing: . * higher performance arithmetic on integers respect to the numeric data type * a rational data type for absolute precision storage and arithmetic * using specialized functions to deal with prime numbers, random numbers, factorization directly into the database. debian/compat0000664000000000000000000000000212303361350010362 0ustar 7 debian/changelog0000664000000000000000000000401512303361705011042 0ustar postgresql-pgmp (1.0.1-3git1) trusty; urgency=medium Upload current Debian packaging git head to fix autopkgtest. * Add missing python test dependency, the test calls unmix.py. -- Martin Pitt Wed, 26 Feb 2014 13:53:12 +0100 postgresql-pgmp (1.0.1-3) unstable; urgency=low [ Martin Pitt ] * debian/tests/control: Add missing postgresql-server-dev-all test dependency, so that installcheck can find pg_buildext. [ Christoph Berg ] * debian/pgversions: Use "all" and B-D on pg-server-dev-all >= 148. * Pull patch from upstream to fix 9.3 build. -- Christoph Berg Wed, 11 Sep 2013 11:20:54 +0200 postgresql-pgmp (1.0.1-2) unstable; urgency=low * Update watch file to only look at github. * debian/tests/installcheck: unset TMPDIR. -- Christoph Berg Mon, 01 Jul 2013 12:07:17 +0200 postgresql-pgmp (1.0.1-1) experimental; urgency=low * New upstream release. * Packaging repository moved to git.debian.org. * Point Homepage at github, pgfoundry is offline way too often. * debian/pgversions: add 9.2 and 9.3. * debian/tests: add autopkgtest support using make installcheck. -- Christoph Berg Mon, 07 Jan 2013 09:58:46 +0100 postgresql-pgmp (1.0.0-4) unstable; urgency=low * Fix installation of doc dir for 9.1. Closes: #646656. -- Christoph Berg Sun, 09 Oct 2011 14:10:07 +0200 postgresql-pgmp (1.0.0-3) unstable; urgency=low * Rebuild for PostgreSQL 9.1. * Manually create /usr/share/postgresql/$$version/extension. * Remove sql/pgmp.sql on clean. -- Christoph Berg Wed, 24 Aug 2011 10:00:48 +0200 postgresql-pgmp (1.0.0-2) unstable; urgency=low * The clean target needs per-version PG_CONFIG too. -- Christoph Berg Tue, 09 Aug 2011 11:05:56 +0200 postgresql-pgmp (1.0.0-1) unstable; urgency=low * Initial release. * Patch Makefile not to install non-doc files as documenation. -- Christoph Berg Tue, 09 Aug 2011 00:06:25 +0200