PostgrSQL 14: Build against OpenSSL 3 on SLES 15.
authorDevrim Gunduz <devrim@gunduz.org>
Fri, 7 Nov 2025 12:16:46 +0000 (15:16 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Fri, 7 Nov 2025 12:16:46 +0000 (15:16 +0300)
rpm/redhat/main/non-common/postgresql-14/main/postgresql-14.spec

index ea2d09b6158c7e886a0909d2fdf202899d8ed268..c9abc2e807a37353f6f1e0a93880b1ae3ea16c81 100644 (file)
@@ -85,9 +85,9 @@ Version:      14.19
 %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:       420003PGDG%{?dist}
+Release:       420006PGDG%{?dist}
 %else
-Release:       5PGDG%{?dist}
+Release:       6PGDG%{?dist}
 %endif
 License:       PostgreSQL
 Url:           https://www.postgresql.org/
@@ -235,16 +235,19 @@ BuildRequires:    selinux-policy >= 3.9.13
 %endif
 
 %if %ssl
-%if 0%{?suse_version} >= 1315
+%if 0%{?suse_version} >= 1315 && 0%{?suse_version} <= 1499
 BuildRequires: libopenssl-devel
-%else
-BuildRequires: openssl-devel
 %endif
+%if 0%{?suse_version} >= 1500
+BuildRequires: libopenssl-3-devel
+%endif
+%if 0%{?fedora} >= 41 || 0%{?rhel} >= 8
+BuildRequires: openssl-devel
 %endif
-
 %if 0%{?fedora} >= 41
 BuildRequires: openssl-devel-engine
 %endif
+%endif
 
 %if %uuid
 %if 0%{?suse_version}
@@ -303,7 +306,7 @@ Provides:   postgresql-libs = %{pgmajorversion} libpq5 >= 10.0
 Requires:      libopenssl1_0_0
 %endif
 %if 0%{?suse_version} == 1500
-Requires:      libopenssl1_1
+Requires:      libopenssl3
 %endif
 %if 0%{?suse_version} == 1600
 Requires:      libopenssl3
@@ -1417,6 +1420,9 @@ fi
 %endif
 
 %changelog
+* Fri Nov 7 2025 Devrim Gunduz <devrim@gunduz.org> - 14.19-6PGDG
+- Build against OpenSSL 3 on SLES 15.
+
 * Tue Oct 14 2025 Devrim Gunduz <devrim@gunduz.org> - 14.19-5PGDG
 - Add SLES 16 support