diff --git a/.gitignore b/.gitignore
index b372a18..36b672f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-SOURCES/postgresql-13.3.tar.bz2
+SOURCES/postgresql-13.5.tar.bz2
diff --git a/.libpq.metadata b/.libpq.metadata
index a586df3..e3a72b0 100644
--- a/.libpq.metadata
+++ b/.libpq.metadata
@@ -1 +1 @@
-7a775f95367613ed5f7e4cd632586f9628475a92 SOURCES/postgresql-13.3.tar.bz2
+9321e2b01d1ffb15adae06945cb2c5f9dd671bc9 SOURCES/postgresql-13.5.tar.bz2
diff --git a/SOURCES/postgresql-13.3.tar.bz2.sha256 b/SOURCES/postgresql-13.3.tar.bz2.sha256
deleted file mode 100644
index 7898d34..0000000
--- a/SOURCES/postgresql-13.3.tar.bz2.sha256
+++ /dev/null
@@ -1 +0,0 @@
-3cd9454fa8c7a6255b6743b767700925ead1b9ab0d7a0f9dcb1151010f8eb4a1  postgresql-13.3.tar.bz2
diff --git a/SOURCES/postgresql-13.5.tar.bz2.sha256 b/SOURCES/postgresql-13.5.tar.bz2.sha256
new file mode 100644
index 0000000..834e50e
--- /dev/null
+++ b/SOURCES/postgresql-13.5.tar.bz2.sha256
@@ -0,0 +1 @@
+9b81067a55edbaabc418aacef457dd8477642827499560b00615a6ea6c13f6b3  postgresql-13.5.tar.bz2
diff --git a/SPECS/libpq.spec b/SPECS/libpq.spec
index 6273fe7..12ca08f 100644
--- a/SPECS/libpq.spec
+++ b/SPECS/libpq.spec
@@ -3,7 +3,7 @@
 
 Summary: PostgreSQL client library
 Name: libpq
-Version: %{majorversion}.3
+Version: %{majorversion}.5
 Release: 1%{?dist}
 
 License: PostgreSQL
@@ -130,6 +130,10 @@ find_lang_bins %name-devel.lst  pg_config
 
 
 %changelog
+* Mon Nov 29 2021 Marek Kulik <mkulik@redhat.com> - 13.5-1
+- Rebase to 13.5
+  Resolves: #2023294
+
 * Mon May 31 2021 Honza Horak <hhorak@redhat.com> - 13.3-1
 - Rebase to 13.3
   Resolves: #1966146