diff -pruN 1.5.1+ds-1/debian/changelog 1.5.1+ds-1ubuntu1/debian/changelog
--- 1.5.1+ds-1/debian/changelog	2023-01-22 21:03:29.000000000 +0000
+++ 1.5.1+ds-1ubuntu1/debian/changelog	2023-01-26 21:12:51.000000000 +0000
@@ -1,3 +1,12 @@
+libgit2 (1.5.1+ds-1ubuntu1) lunar; urgency=low
+
+  * Merge from Debian unstable. Remaining changes:
+    - Use OpenSSL as the crypto backend
+    - Use cmake:native in d/tests/control
+    - Lower optimization level to O2 on ppc64el to fix a test failure
+
+ -- Gianfranco Costamagna <locutusofborg@debian.org>  Thu, 26 Jan 2023 22:12:51 +0100
+
 libgit2 (1.5.1+ds-1) unstable; urgency=high
 
   * Team upload.
@@ -7,6 +16,15 @@ libgit2 (1.5.1+ds-1) unstable; urgency=h
 
  -- Timo Röhling <roehling@debian.org>  Sun, 22 Jan 2023 22:03:29 +0100
 
+libgit2 (1.5.0+ds-6ubuntu2) lunar; urgency=medium
+
+  * Merge from Debian unstable. Remaining changes:
+    - Use OpenSSL as the crypto backend
+    - Use cmake:native in d/tests/control
+    - Lower optimization level to O2 on ppc64el to fix a test failure
+
+ -- Gianfranco Costamagna <locutusofborg@debian.org>  Fri, 04 Nov 2022 12:25:02 +0100
+
 libgit2 (1.5.0+ds-6) unstable; urgency=medium
 
   * Team upload.
@@ -65,6 +83,22 @@ libgit2 (1.4.3+dfsg.1-1) experimental; u
 
  -- Mohammed Bilal <mdbilal@disroot.org>  Thu, 05 May 2022 17:17:21 +0530
 
+libgit2 (1.3.2+dfsg.1-0ubuntu1) kinetic; urgency=medium
+
+  * New upstream bugfix version (LP: #1991636)
+  * d/watch: switch to the GH tags page as the release page broke
+    tarball links
+  * d/p/fix-warnings-atomic-exchange.patch: cherry-picked from upstream
+    to silence a particularly loud warning
+
+ -- Simon Chopin <schopin@ubuntu.com>  Tue, 04 Oct 2022 09:55:21 +0200
+
+libgit2 (1.3.0+dfsg.1-3ubuntu1) kinetic; urgency=medium
+
+  * d/control: Use OpenSSL as the crypto backend
+
+ -- Simon Chopin <schopin@ubuntu.com>  Fri, 01 Jul 2022 12:05:54 +0200
+
 libgit2 (1.3.0+dfsg.1-3) unstable; urgency=medium
 
   * Reupload to unstable
diff -pruN 1.5.1+ds-1/debian/control 1.5.1+ds-1ubuntu1/debian/control
--- 1.5.1+ds-1/debian/control	2023-01-22 21:03:29.000000000 +0000
+++ 1.5.1+ds-1ubuntu1/debian/control	2023-01-23 06:41:30.000000000 +0000
@@ -10,7 +10,7 @@ Build-Depends: debhelper-compat (= 13),
                ca-certificates,
                cmake,
                zlib1g-dev,
-               libmbedtls-dev,
+               libssl-dev,
                libssh2-1-dev,
                libhttp-parser-dev,
                libpcre2-dev,
@@ -28,7 +28,7 @@ Section: libdevel
 Multi-Arch: same
 Depends: libgit2-1.5 (= ${binary:Version}),
          zlib1g-dev,
-         libmbedtls-dev,
+         libssl-dev,
          libssh2-1-dev,
          libhttp-parser-dev,
          libpcre2-dev,
diff -pruN 1.5.1+ds-1/debian/rules 1.5.1+ds-1ubuntu1/debian/rules
--- 1.5.1+ds-1/debian/rules	2023-01-22 21:03:29.000000000 +0000
+++ 1.5.1+ds-1ubuntu1/debian/rules	2023-01-23 06:41:30.000000000 +0000
@@ -19,12 +19,16 @@ COMMON_CMAKE_FLAGS = \
 	-DENABLE_REPRODUCIBLE_BUILDS=ON \
 	-DREGEX_BACKEND=pcre2 \
 	-DUSE_GSSAPI=ON \
-	-DUSE_HTTPS=mbedTLS \
+	-DUSE_HTTPS=OpenSSL \
 	-DUSE_HTTP_PARSER=system \
 	-DUSE_NTLMCLIENT=OFF \
 	-DUSE_SSH=ON
 
 
+ifeq ($(DEB_HOST_ARCH),ppc64el)
+  export DEB_CFLAGS_MAINT_APPEND = -O2
+endif
+
 # The stat() in the Git fs layer has some issues
 export GITTEST_FLAKY_STAT = true
 
diff -pruN 1.5.1+ds-1/debian/tests/control 1.5.1+ds-1ubuntu1/debian/tests/control
--- 1.5.1+ds-1/debian/tests/control	2022-03-03 08:22:45.000000000 +0000
+++ 1.5.1+ds-1ubuntu1/debian/tests/control	2023-01-23 06:41:31.000000000 +0000
@@ -1,2 +1,2 @@
 Test-Command: cmake debian/tests;make;./libgit2_test
-Depends: @, cmake, gcc, g++
+Depends: @, cmake:native, gcc:native, g++:native
