From ca729e03975bb14e3e389e9d442c0cacacd264de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dylan=20A=C3=AFssi?= <dylan.aissi@collabora.com>
Date: Thu, 30 Mar 2023 10:26:32 +0200
Subject: [PATCH] Add Breaks+Replaces+Provides fields and transitional packages
 to ensure smooth upgrade
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
---
 debian/control | 104 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 104 insertions(+)

diff --git a/debian/control b/debian/control
index 5d7cf4c..797ab9a 100644
--- a/debian/control
+++ b/debian/control
@@ -19,6 +19,9 @@ Build-Depends:
 Standards-Version: 3.9.6
 
 Package: libtraprain-common-0-1
+Breaks: libtraprain-common-0-0 (<< 0.2022.2~)
+Replaces: libtraprain-common-0-0 (<< 0.2022.2~)
+Provides: libtraprain-common-0-0
 Architecture: any
 Multi-arch: same
 Depends:
@@ -31,6 +34,9 @@ Description: Navigation API - shared library
  and service libraries. It is part of the SDK-API.
 
 Package: gir1.2-trapraincommon-0
+Breaks: gir1.2-traprain-common-0 (<< 0.2022.2~)
+Replaces: gir1.2-traprain-common-0 (<< 0.2022.2~)
+Provides: gir1.2-traprain-common-0
 Section: introspection
 Architecture: any
 Multi-arch: same
@@ -74,6 +80,9 @@ Description: Navigation API - documentation
  by applications and navigation services.
 
 Package: libtraprain-service-0-1
+Breaks: libtraprain-service-0-0 (<< 0.2022.2~)
+Replaces: libtraprain-service-0-0 (<< 0.2022.2~)
+Provides: libtraprain-service-0-0
 Architecture: any
 Multi-arch: same
 Depends:
@@ -87,6 +96,9 @@ Description: Navigation API - service shared library
  services. It is part of the SDK-API.
 
 Package: gir1.2-traprainservice-0
+Breaks: gir1.2-traprain-service-0 (<< 0.2022.2~)
+Replaces: gir1.2-traprain-service-0 (<< 0.2022.2~)
+Provides: gir1.2-traprain-service-0
 Section: introspection
 Architecture: any
 Multi-arch: same
@@ -120,6 +132,9 @@ Description: Navigation API - development library
  navigation services. It is part of the SDK-API.
 
 Package: libtraprain-client-0-1
+Breaks: libtraprain-client-0-0 (<< 0.2022.2~)
+Replaces: libtraprain-client-0-0 (<< 0.2022.2~)
+Provides: libtraprain-client-0-0
 Architecture: any
 Multi-arch: same
 Depends:
@@ -133,6 +148,9 @@ Description: Navigation API - client shared library
  It is part of the SDK-API.
 
 Package: gir1.2-traprainclient-0
+Breaks: gir1.2-traprain-client-0 (<< 0.2022.2~)
+Replaces: gir1.2-traprain-client-0 (<< 0.2022.2~)
+Provides: gir1.2-traprain-client-0
 Section: introspection
 Architecture: any
 Multi-arch: same
@@ -212,6 +230,9 @@ Description: Navigation API - tests
  services, applications and the mock service.
 
 Package: libtraprain-guidance-0-1
+Breaks: libtraprain-guidance-0-0 (<< 0.2022.2~)
+Replaces: libtraprain-guidance-0-0 (<< 0.2022.2~)
+Provides: libtraprain-guidance-0-0
 Architecture: any
 Multi-arch: same
 Depends:
@@ -225,6 +246,9 @@ Description: Guidance API - service shared library
  It is part of the SDK-API.
 
 Package: gir1.2-traprainguidance-0
+Breaks: gir1.2-traprain-guidance-0 (<< 0.2022.2~)
+Replaces: gir1.2-traprain-guidance-0 (<< 0.2022.2~)
+Provides: gir1.2-traprain-guidance-0
 Section: introspection
 Architecture: any
 Multi-arch: same
@@ -282,3 +306,83 @@ Description: Tool to send turn-by-turn notifications
  .
  This package contains a command line tool to send turn-by-turn notifications
  to the service in charge of displaying those.
+
+Package: libtraprain-common-0-0
+Section: oldlibs
+Architecture: all
+Depends: libtraprain-common-0-1,
+         ${misc:Depends}
+Description: Navigation API - transitional package
+ Navigation route list and guidance
+ .
+ This is a transitional package. It can safely be removed.
+
+Package: libtraprain-service-0-0
+Section: oldlibs
+Architecture: all
+Depends: libtraprain-service-0-1,
+         ${misc:Depends}
+Description: Navigation API - transitional package
+ Navigation route list and guidance
+ .
+ This is a transitional package. It can safely be removed.
+
+Package: libtraprain-client-0-0
+Section: oldlibs
+Architecture: all
+Depends: libtraprain-client-0-1,
+         ${misc:Depends}
+Description: Navigation API - transitional package
+ Navigation route list and guidance
+ .
+ This is a transitional package. It can safely be removed.
+
+Package: libtraprain-guidance-0-0
+Section: oldlibs
+Architecture: all
+Depends: libtraprain-guidance-0-1,
+         ${misc:Depends}
+Description: Guidance API - transitional package
+ Navigation guidance turn-by-turn service
+ .
+ This is a transitional package. It can safely be removed.
+
+Package: gir1.2-traprain-common-0
+Section: oldlibs
+Architecture: all
+Depends: gir1.2-trapraincommon-0,
+         ${misc:Depends}
+Description: Navigation API - transitional package
+ Navigation route list and guidance
+ .
+ This is a transitional package. It can safely be removed.
+
+Package: gir1.2-traprain-service-0
+Section: oldlibs
+Architecture: all
+Depends: gir1.2-traprainservice-0,
+         ${misc:Depends}
+Description: Navigation API - transitional package
+ Navigation route list and guidance
+ .
+ This is a transitional package. It can safely be removed.
+
+Package: gir1.2-traprain-client-0
+Section: oldlibs
+Architecture: all
+Depends: gir1.2-traprainclient-0,
+         ${misc:Depends}
+Description: Navigation API - transitional package
+ Navigation route list and guidance
+ .
+ This is a transitional package. It can safely be removed.
+
+Package: gir1.2-traprain-guidance-0
+Section: oldlibs
+Architecture: all
+Depends: gir1.2-traprainguidance-0,
+         ${misc:Depends}
+Description: Guidance API - transitional package
+ Navigation guidance turn-by-turn service
+ .
+ This is a transitional package. It can safely be removed.
-- 
GitLab