diff --git a/_constraints b/_constraints
deleted file mode 100644
index f2c2682..0000000
--- a/_constraints
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
- s390x
-
-
-
- 12
-
-
-
-
diff --git a/postgresql-14.11.tar.bz2 b/postgresql-14.11.tar.bz2
deleted file mode 100644
index 560bf25..0000000
--- a/postgresql-14.11.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:a670bd7dce22dcad4297b261136b3b1d4a09a6f541719562aa14ca63bf2968a8
-size 22354758
diff --git a/postgresql-14.11.tar.bz2.sha256 b/postgresql-14.11.tar.bz2.sha256
deleted file mode 100644
index c2d2d37..0000000
--- a/postgresql-14.11.tar.bz2.sha256
+++ /dev/null
@@ -1 +0,0 @@
-a670bd7dce22dcad4297b261136b3b1d4a09a6f541719562aa14ca63bf2968a8 postgresql-14.11.tar.bz2
diff --git a/postgresql-14.12.tar.bz2 b/postgresql-14.12.tar.bz2
new file mode 100644
index 0000000..6fb8c51
--- /dev/null
+++ b/postgresql-14.12.tar.bz2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6118d08f9ddcc1bd83cf2b7cc74d3b583bdcec2f37e6245a8ac003b8faa80923
+size 22390865
diff --git a/postgresql-14.12.tar.bz2.sha256 b/postgresql-14.12.tar.bz2.sha256
new file mode 100644
index 0000000..3c79193
--- /dev/null
+++ b/postgresql-14.12.tar.bz2.sha256
@@ -0,0 +1 @@
+6118d08f9ddcc1bd83cf2b7cc74d3b583bdcec2f37e6245a8ac003b8faa80923 postgresql-14.12.tar.bz2
diff --git a/postgresql14.changes b/postgresql14.changes
index 0e1671d..5df7132 100644
--- a/postgresql14.changes
+++ b/postgresql14.changes
@@ -1,3 +1,26 @@
+-------------------------------------------------------------------
+Wed May 8 12:07:46 UTC 2024 - Reinhard Max
+
+- Upgrade to 14.12 (bsc#1224051):
+ * bsc#1224038, CVE-2024-4317: Restrict visibility of pg_stats_ext
+ and pg_stats_ext_exprs entries to the table owner. See the
+ release notes for the steps that have to be taken to fix
+ existing PostgreSQL instances.
+ * Fix incompatibility with LLVM 18.
+ * https://www.postgresql.org/docs/release/14.12/
+- Prepare for PostgreSQL 17.
+- Make sure all compilation and doc generation happens in %build.
+
+-------------------------------------------------------------------
+Wed May 1 15:24:39 UTC 2024 - Aaron Puchert
+
+- Require LLVM <= 17 for now, because LLVM 18 doesn't seem to work.
+
+-------------------------------------------------------------------
+Thu Mar 7 15:04:40 UTC 2024 - Sarah Kriesch
+
+- Remove constraints file because improved memory usage for s390x
+
-------------------------------------------------------------------
Thu Feb 29 14:37:37 UTC 2024 - Dominique Leuenberger
diff --git a/postgresql14.spec b/postgresql14.spec
index f5a2673..0a540dc 100644
--- a/postgresql14.spec
+++ b/postgresql14.spec
@@ -16,7 +16,7 @@
#
-%define pgversion 14.11
+%define pgversion 14.12
%define pgmajor 14
%define buildlibs 0
%define tarversion %{pgversion}
@@ -59,6 +59,12 @@ Name: %pgname
%define python python
%endif
+%if %pgmajor >= 17
+%bcond_with dreived
+%else
+%bcond_without derived
+%endif
+
%if 0%{?suse_version} >= 1500
%bcond_without liblz4
%endif
@@ -88,6 +94,12 @@ BuildRequires: zlib-devel
%if %{with liblz4}
BuildRequires: pkgconfig(liblz4)
%endif
+%if %{without derived}
+BuildRequires: bison
+BuildRequires: docbook-xsl-stylesheets
+BuildRequires: flex
+BuildRequires: perl
+%endif
%if %{with libzstd}
BuildRequires: pkgconfig(libzstd)
@@ -573,7 +585,7 @@ PACKAGE_TARNAME=%pgname %configure \
%if %mini
make -C src/interfaces %{?_smp_mflags} PACKAGE_TARNAME=%pgname
%else
-make %{?_smp_mflags} PACKAGE_TARNAME=%pgname
+make %{?_smp_mflags} PACKAGE_TARNAME=%pgname world
%if %{with check}
@@ -641,9 +653,9 @@ find %buildroot -type f -cnewer flag -printf "/%%P\n" |
> contrib.files
rm flag
install -d -m 750 %buildroot/var/lib/pgsql
-install -d -m755 %buildroot%pgdocdir
+install -d -m 755 %buildroot%pgdocdir
cp doc/KNOWN_BUGS doc/MISSING_FEATURES COPYRIGHT \
- README HISTORY %buildroot%pgdocdir
+ README* HISTORY %buildroot%pgdocdir
# Use versioned names for the man pages:
for f in %buildroot%pgmandir/man*/*; do
mv $f ${f}pg%pgmajor
@@ -701,6 +713,7 @@ genlists main \
pg_receivewal \
pg_verify_checksums \
pg_checksums \
+ pg_combinebackup \
pg_verifybackup
%find_lang plpgsql-$VLANG main.files
@@ -711,6 +724,8 @@ genlists server \
pg_ctl \
pg_controldata \
pg_resetwal \
+ pg_createsubscriber \
+ pg_walsummary \
pg_waldump \
pg_resetxlog \
%if %pgmajor >= 15
@@ -924,7 +939,6 @@ fi
%files llvmjit-devel
%defattr(-,root,root)
-%doc README
%files pltcl -f pltcl.lang
%defattr(-,root,root)