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

index b4baecc2db973b850720dc2cae41682997eb4ce2..afb5a7ea11346683c32c3bb6cd2c283315234eff 100644 (file)
@@ -62,9 +62,9 @@ Version:      16.10
 %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/
@@ -200,16 +200,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}
@@ -263,7 +266,7 @@ Summary:    The shared libraries required for any PostgreSQL clients
 Provides:      postgresql-libs = %{pgmajorversion} libpq5 >= 10.0
 
 %if 0%{?suse_version} == 1500
-Requires:      libopenssl1_1
+Requires:      libopenssl3
 %endif
 %if 0%{?suse_version} == 1600
 Requires:      libopenssl3
@@ -1268,6 +1271,9 @@ fi
 %endif
 
 %changelog
+* Fri Nov 7 2025 Devrim Gunduz <devrim@gunduz.org> - 16.10-6PGDG
+- Build against OpenSSL 3 on SLES 15.
+
 * Tue Oct 14 2025 Devrim Gunduz <devrim@gunduz.org> - 16.10-5PGDG
 - Add SLES 16 support