bgw_replstatus: Add SLES 16 support
authorDevrim Gunduz <devrim@gunduz.org>
Sun, 5 Oct 2025 20:55:29 +0000 (23:55 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Sun, 5 Oct 2025 20:55:29 +0000 (23:55 +0300)
rpm/redhat/main/non-common/bgw_replstatus/main/bgw_replstatus.spec

index 524b55f47f90aef450f2d3fc71483c0302f50d2f..6f87618e6b404406d5ff9aa47ad3c8c6555893d4 100644 (file)
@@ -4,7 +4,7 @@
 
 Name:          %{sname}_%{pgmajorversion}
 Version:       1.0.8
-Release:       2PGDG%{?dist}
+Release:       3PGDG%{?dist}
 Summary:       PostgreSQL background worker to report wether a node is a replication master or standby
 License:       PostgreSQL
 URL:           https://github.com/mhagander/%{sname}
@@ -13,8 +13,6 @@ Source0:      https://github.com/mhagander/%{sname}/archive/%{version}.tar.gz
 BuildRequires: postgresql%{pgmajorversion}-devel pgdg-srpm-macros >= 1.0.12
 Requires:      postgresql%{pgmajorversion}-server
 
-Obsoletes:     %{sname}%{pgmajorversion} < 1.0.3-2
-
 %description
 bgw_replstatus is a tiny background worker to cheaply report the
 replication status of a node. It's intended to be polled by a load
@@ -35,13 +33,17 @@ checking the status.
 %package llvmjit
 Summary:       Just-in-time compilation support for bgw_replstatus
 Requires:      %{name}%{?_isa} = %{version}-%{release}
-%if 0%{?suse_version} >= 1500
+%if 0%{?suse_version} == 1500
 BuildRequires: llvm17-devel clang17-devel
 Requires:      llvm17
 %endif
+%if 0%{?suse_version} == 1600
+BuildRequires: llvm19-devel clang19-devel
+Requires:      llvm19
+%endif
 %if 0%{?fedora} || 0%{?rhel} >= 8
-BuildRequires: llvm-devel >= 17.0 clang-devel >= 17.0
-Requires:      llvm >= 17.0
+BuildRequires: llvm-devel >= 19.0 clang-devel >= 19.0
+Requires:      llvm >= 19.0
 %endif
 
 %description llvmjit
@@ -69,6 +71,9 @@ USE_PGXS=1 PATH=%{pginstdir}/bin:$PATH %{__make} %{?_smp_mflags} install DESTDIR
 %endif
 
 %changelog
+* Sun Oct 5 2025 Yogesh Sharma <yogesh.sharma@catprosystems.com> - 1.0.8-3PGDG
+- Add SLES 16 support
+
 * Wed Oct 01 2025 Yogesh Sharma <yogesh.sharma@catprosystems.com> - 1.0.8-2PGDG
 - Bump release number (missed in previous commit)