diff --git a/.gitignore b/.gitignore
index 1ff8c26..36b672f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-SOURCES/postgresql-13.2.tar.bz2
+SOURCES/postgresql-13.5.tar.bz2
diff --git a/.libpq.metadata b/.libpq.metadata
index 19b7b06..e3a72b0 100644
--- a/.libpq.metadata
+++ b/.libpq.metadata
@@ -1 +1 @@
-fc40c06ee7f2fd5f4ee5af88c8502f06a44c8698 SOURCES/postgresql-13.2.tar.bz2
+9321e2b01d1ffb15adae06945cb2c5f9dd671bc9 SOURCES/postgresql-13.5.tar.bz2
diff --git a/SOURCES/postgresql-13.2.tar.bz2.sha256 b/SOURCES/postgresql-13.2.tar.bz2.sha256
deleted file mode 100644
index 9bdf2b0..0000000
--- a/SOURCES/postgresql-13.2.tar.bz2.sha256
+++ /dev/null
@@ -1 +0,0 @@
-5fd7fcd08db86f5b2aed28fcfaf9ae0aca8e9428561ac547764c2a2b0f41adfc  postgresql-13.2.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 2f380a3..f6fe17d 100644
--- a/SPECS/libpq.spec
+++ b/SPECS/libpq.spec
@@ -3,8 +3,8 @@
 
 Summary: PostgreSQL client library
 Name: libpq
-Version: %{majorversion}.2
-Release: 4%{?dist}
+Version: %{majorversion}.5
+Release: 1%{?dist}
 
 License: PostgreSQL
 Url: http://www.postgresql.org/
@@ -131,6 +131,9 @@ find_lang_bins %name-devel.lst  pg_config
 
 
 %changelog
+* Tue Nov 16 2021 Marek Kulik <mkulik@redhat.com> - 13.5-1
+- Update to 13.5
+
 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 13.2-4
 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
   Related: rhbz#1991688