diff -Nru geographiclib-1.45/debian/changelog geographiclib-1.45/debian/changelog --- geographiclib-1.45/debian/changelog 2015-10-11 10:27:30.000000000 +0000 +++ geographiclib-1.45/debian/changelog 2015-12-04 15:31:52.000000000 +0000 @@ -1,3 +1,12 @@ +geographiclib (1.45-2) unstable; urgency=medium + + * Also build geographiclib for Python 3. + (closes: #805964) + * Enable parallel builds. + * Update Vcs-Browser URL to use HTTPS. + + -- Bas Couwenberg Fri, 04 Dec 2015 16:31:49 +0100 + geographiclib (1.45-1) unstable; urgency=medium * Move from experimental to unstable. diff -Nru geographiclib-1.45/debian/control geographiclib-1.45/debian/control --- geographiclib-1.45/debian/control 2015-10-02 12:15:14.000000000 +0000 +++ geographiclib-1.45/debian/control 2015-12-04 15:27:19.000000000 +0000 @@ -8,13 +8,15 @@ Build-Depends: autoconf-archive, debhelper (>= 9), dh-autoreconf, - doxygen, dh-python, + doxygen, python-all (>= 2.6.6-3~), python-setuptools, + python3-all, + python3-setuptools, pkg-kde-tools Standards-Version: 3.9.6 -Vcs-Browser: http://anonscm.debian.org/cgit/pkg-grass/geographiclib.git +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/geographiclib.git Vcs-Git: git://anonscm.debian.org/pkg-grass/geographiclib.git Homepage: http://geographiclib.sf.net/ X-Python-Version: >= 2.6 @@ -115,6 +117,19 @@ . This package contains the Python implementation of GeographicLib. +Package: python3-geographiclib +Architecture: any +Section: python +Depends: ${misc:Depends}, + ${python3:Depends} +Description: Python 3 implementation of GeographicLib + GeographicLib is a small set of C++ classes for converting between + geographic, UTM, UPS, MGRS, geocentric, and local cartesian coordinates, + for geoid calculations, and for computing geodesic. It is a suitable + replacement for the core functionality provided by NGA Geotrans. + . + This package contains the Python 3 implementation of GeographicLib. + Package: node-geographiclib Architecture: all Section: web diff -Nru geographiclib-1.45/debian/patches/disable-python-build.patch geographiclib-1.45/debian/patches/disable-python-build.patch --- geographiclib-1.45/debian/patches/disable-python-build.patch 1970-01-01 00:00:00.000000000 +0000 +++ geographiclib-1.45/debian/patches/disable-python-build.patch 2015-12-04 15:23:28.000000000 +0000 @@ -0,0 +1,72 @@ +Description: Disable python support as part of the larger build. + The python support is now built separately with pybuild, + adding support for all Python 2 and Python 3 versions. +Author: Bas Couwenberg +Bug-Debian: https://bugs.debian.org/805964 +Forwarded: not-needed + +--- a/Makefile.am ++++ b/Makefile.am +@@ -7,7 +7,7 @@ AUTOMAKE_OPTIONS = foreign + + ACLOCAL_AMFLAGS = -I m4 + +-SUBDIRS = src man tools doc js include matlab python cmake examples ++SUBDIRS = src man tools doc js include matlab cmake examples + + EXTRA_DIST = AUTHORS 00README.txt LICENSE.txt NEWS INSTALL README.md pom.xml \ + Makefile.mk CMakeLists.txt windows maxima doc legacy java js dotnet +@@ -47,4 +47,4 @@ install-doc: + man: + $(MAKE) -C man man + +-.PHONY: doc install-doc man install-matlab install-python ++.PHONY: doc install-doc man install-matlab +--- a/Makefile.mk ++++ b/Makefile.mk +@@ -1,7 +1,7 @@ + MAKEFILE := $(lastword $(MAKEFILE_LIST)) + MAKE := $(MAKE) -f $(MAKEFILE) + SUBDIRS = src man tools doc js +-ALLDIRS = include $(SUBDIRS) maxima matlab python cmake ++ALLDIRS = include $(SUBDIRS) maxima matlab cmake + + all: src man tools js + +@@ -10,9 +10,8 @@ $(SUBDIRS): + + tools: src + install: install-headers install-lib install-tools install-man install-cmake \ +- install-doc install-js install-matlab install-python +-clean: clean-src clean-tools clean-doc clean-js clean-man clean-matlab \ +- clean-python ++ install-doc install-js install-matlab ++clean: clean-src clean-tools clean-doc clean-js clean-man clean-matlab + + install-headers: + $(MAKE) -C include install +@@ -30,8 +29,6 @@ install-man: man + $(MAKE) -C man install + install-matlab: matlab + $(MAKE) -C matlab install +-install-python: python +- $(MAKE) -C python install + clean-src: + $(MAKE) -C src clean + clean-tools: +@@ -44,13 +41,10 @@ clean-man: + $(MAKE) -C man clean + clean-matlab: matlab + $(MAKE) -C matlab clean +-clean-python: python +- $(MAKE) -C python clean + + VERSION:=$(shell grep '\bVERSION=' configure | cut -f2 -d\' | head -1) + + .PHONY: all $(SUBDIRS) install clean \ + install-headers install-lib install-tools install-man install-cmake \ +- install-doc install-js install-matlab install-python \ +- clean-src clean-tools clean-doc clean-js clean-man clean-matlab \ +- clean-python ++ install-doc install-js install-matlab \ ++ clean-src clean-tools clean-doc clean-js clean-man clean-matlab diff -Nru geographiclib-1.45/debian/patches/series geographiclib-1.45/debian/patches/series --- geographiclib-1.45/debian/patches/series 2014-12-22 20:47:06.000000000 +0000 +++ geographiclib-1.45/debian/patches/series 2015-12-04 15:23:28.000000000 +0000 @@ -1,3 +1,4 @@ css.patch privacy.patch manpage_lintian.patch +disable-python-build.patch diff -Nru geographiclib-1.45/debian/python-geographiclib.install geographiclib-1.45/debian/python-geographiclib.install --- geographiclib-1.45/debian/python-geographiclib.install 2014-12-22 20:47:06.000000000 +0000 +++ geographiclib-1.45/debian/python-geographiclib.install 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -usr/lib/*/python/site-packages/geographiclib usr/share/pyshared diff -Nru geographiclib-1.45/debian/rules geographiclib-1.45/debian/rules --- geographiclib-1.45/debian/rules 2015-10-02 12:18:19.000000000 +0000 +++ geographiclib-1.45/debian/rules 2015-12-04 15:23:46.000000000 +0000 @@ -1,14 +1,33 @@ #!/usr/bin/make -f export PYBUILD_NAME=geographiclib -export PYBUILD_SYSTEM=pybuild UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://') DBG_PACKAGE=$(shell grep "^Package: libgeographic[0-9]*-dbg$$" debian/control | awk '{print $$2}') %: - dh $@ --with autoreconf,python2,pkgkde_symbolshelper + dh $@ --with autoreconf,python2,python3,pkgkde_symbolshelper --parallel + +override_dh_auto_clean: + dh_auto_clean + dh_auto_clean --buildsystem=pybuild --sourcedirectory=python + +override_dh_auto_configure: + dh_auto_configure + dh_auto_configure --buildsystem=pybuild --sourcedirectory=python + +override_dh_auto_build: + dh_auto_build + dh_auto_build --buildsystem=pybuild --sourcedirectory=python + +override_dh_auto_test: + dh_auto_test + dh_auto_test --buildsystem=pybuild --sourcedirectory=python + +override_dh_auto_install: + dh_auto_install + dh_auto_install --buildsystem=pybuild --sourcedirectory=python override_dh_install: # Remove duplicate license information