PostgreSQL 13, 14 and 15 Fix builds on RHEL 7
authorDevrim Gunduz <[email protected]>
Tue, 18 Nov 2025 10:40:56 +0000 (13:40 +0300)
committerDevrim Gunduz <[email protected]>
Tue, 18 Nov 2025 10:40:56 +0000 (13:40 +0300)
rpm/redhat/main/non-common/postgresql-13/main/postgresql-13.spec
rpm/redhat/main/non-common/postgresql-14/main/postgresql-14.spec
rpm/redhat/main/non-common/postgresql-15/main/postgresql-15.spec

index 9336d07fe524ba51a7084c9ecf77c09706d4d807..510c51a280a9737f36a6f3b8f740f3781f08d400 100644 (file)
@@ -81,9 +81,9 @@ Version:      13.23
 %if 0%{?suse_version} >= 1315
 # SuSE upstream packages have release numbers like 150200.5.19.1
 # which overrides our packages. Increase our release number on SuSE.
-Release:       420001PGDG%{?dist}
+Release:       420002PGDG%{?dist}
 %else
-Release:       1PGDG%{?dist}
+Release:       2PGDG%{?dist}
 %endif
 License:       PostgreSQL
 Url:           https://www.postgresql.org/
@@ -151,7 +151,7 @@ BuildRequires:      llvm17-devel clang17-devel
 %if 0%{?suse_version} == 1600
 BuildRequires: llvm19-devel clang19-devel
 %endif
-%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?fedora} || 0%{?rhel} >= 8
 BuildRequires: llvm-devel >= 19.0 clang-devel >= 19.0
 %endif
 %endif
@@ -1377,6 +1377,9 @@ fi
 %endif
 
 %changelog
+* Tue Nov 18 2025 Devrim Gündüz <[email protected]> - 13.23-2PGDG
+- Fix builds on RHEL 7.
+
 * Tue Nov 11 2025 Devrim Gündüz <[email protected]> - 13.23-1PGDG
 - Update to 13.23, per changes described at
   https://www.postgresql.org/docs/release/13.23/
index 2fbd5fb34f8753493c2f162cc096674389b7fa11..043bd5f59b17004630fd52a0f6209baa5299180c 100644 (file)
@@ -85,9 +85,9 @@ Version:      14.20
 %if 0%{?suse_version} >= 1315
 # SuSE upstream packages have release numbers like 150200.5.19.1
 # which overrides our packages. Increase our release number on SuSE.
-Release:       420001PGDG%{?dist}
+Release:       420002PGDG%{?dist}
 %else
-Release:       1PGDG%{?dist}
+Release:       2PGDG%{?dist}
 %endif
 License:       PostgreSQL
 Url:           https://www.postgresql.org/
@@ -168,7 +168,7 @@ BuildRequires:      llvm17-devel clang17-devel
 %if 0%{?suse_version} == 1600
 BuildRequires: llvm19-devel clang19-devel
 %endif
-%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?fedora} || 0%{?rhel} >= 8
 BuildRequires: llvm-devel >= 19.0 clang-devel >= 19.0
 %endif
 %endif
@@ -1414,6 +1414,9 @@ fi
 %endif
 
 %changelog
+* Tue Nov 18 2025 Devrim Gündüz <[email protected]> - 14.20-2PGDG
+- Fix builds on RHEL 7.
+
 * Tue Nov 11 2025 Devrim Gündüz <[email protected]> - 14.20-1PGDG
 - Update to 14.20, per changes described at
   https://www.postgresql.org/docs/release/14.20/
index 1a6ecb672d5ba6e2a3c020b3e886b90c4ba3e1d3..50cd0ab79c77775b91cb68a8a1e0a77924849e30 100644 (file)
@@ -85,9 +85,9 @@ Version:      15.15
 %if 0%{?suse_version} >= 1315
 # SuSE upstream packages have release numbers like 150200.5.19.1
 # which overrides our packages. Increase our release number on SuSE.
-Release:       420001PGDG%{?dist}
+Release:       420002PGDG%{?dist}
 %else
-Release:       1PGDG%{?dist}
+Release:       2PGDG%{?dist}
 %endif
 License:       PostgreSQL
 Url:           https://www.postgresql.org/
@@ -179,7 +179,7 @@ BuildRequires:      llvm17-devel clang17-devel
 %if 0%{?suse_version} == 1600
 BuildRequires: llvm19-devel clang19-devel
 %endif
-%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?fedora} || 0%{?rhel} >= 8
 BuildRequires: llvm-devel >= 19.0 clang-devel >= 19.0
 %endif
 %endif
@@ -1424,6 +1424,9 @@ fi
 %endif
 
 %changelog
+* Tue Nov 18 2025 Devrim Gündüz <[email protected]> - 15.15-2PGDG
+- Fix builds on RHEL 7.
+
 * Tue Nov 11 2025 Devrim Gündüz <[email protected]> - 15.15-1PGDG
 - Update to 15.15, per changes described at
   https://www.postgresql.org/docs/release/15.15/