From cf627c7101131d720ec0e2296edbfdc343ed65b6 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Tue, 5 Jul 2022 23:30:29 +0200 Subject: [PATCH] Rename Python package to python3-location To comply with the Debian Python policy. Also add a transitional package with the old name. --- debian/control | 16 +++++++++++++--- ...python.examples => python3-location.examples} | 0 ...n-python.install => python3-location.install} | 0 debian/rules | 6 +++--- 4 files changed, 16 insertions(+), 6 deletions(-) rename debian/{location-python.examples => python3-location.examples} (100%) rename debian/{location-python.install => python3-location.install} (100%) diff --git a/debian/control b/debian/control index 4b1407a..660f759 100644 --- a/debian/control +++ b/debian/control @@ -54,7 +54,7 @@ Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: - location-python (= ${binary:Version}), + python3-location, ${misc:Depends}, ${python3:Depends} Multi-Arch: same @@ -66,14 +66,14 @@ Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: - location-python (= ${binary:Version}), + python3-location, ${misc:Depends}, ${python3:Depends} Multi-Arch: foreign Description: Tools to author location databases This package contains tools that are required to build location databases -Package: location-python +Package: python3-location Architecture: any Section: python Pre-Depends: @@ -82,6 +82,16 @@ Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} +Replaces: location-python (<< 0.9.14-1~) +Breaks: location-python (<< 0.9.14-1~) Multi-Arch: foreign Description: Python modules for libloc This package contains Python bindings for libloc + +Package: location-python +Depends: python3-location, ${misc:Depends} +Architecture: all +Priority: optional +Section: oldlibs +Description: transitional package + This is a transitional package. It can safely be removed. diff --git a/debian/location-python.examples b/debian/python3-location.examples similarity index 100% rename from debian/location-python.examples rename to debian/python3-location.examples diff --git a/debian/location-python.install b/debian/python3-location.install similarity index 100% rename from debian/location-python.install rename to debian/python3-location.install diff --git a/debian/rules b/debian/rules index 05b88fd..8c252ec 100755 --- a/debian/rules +++ b/debian/rules @@ -22,7 +22,7 @@ override_dh_systemd_enable: override_dh_install: dh_install # lintian: unknown-file-in-python-module-directory - rm debian/location-python/usr/lib/python3*/site-packages/_location.la + rm debian/python3-location/usr/lib/python3*/site-packages/_location.la # linitan: binaries-have-file-conflict (d/location-importer.install) - rm debian/location-python/usr/lib/python3*/site-packages/location/database.py - rm debian/location-python/usr/lib/python3*/site-packages/location/importer.py + rm debian/python3-location/usr/lib/python3*/site-packages/location/database.py + rm debian/python3-location/usr/lib/python3*/site-packages/location/importer.py -- 2.36.1