patroni: Add SLES 16 support
authorDevrim Gunduz <devrim@gunduz.org>
Sun, 5 Oct 2025 16:31:56 +0000 (19:31 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Sun, 5 Oct 2025 16:31:56 +0000 (19:31 +0300)
rpm/redhat/main/common/patroni/main/patroni.spec

index 7d04f7b2616ec99bf58eccfb4a49917c9619ab7a..133d9027644e1ec8c10134dcce36e72d1e939cb6 100644 (file)
@@ -1,7 +1,3 @@
-%if 0%{?fedora} && 0%{?fedora} == 43
-%global __ospython %{_bindir}/python3.14
-%global python3_pkgversion 3.14
-%endif
 %if 0%{?fedora} && 0%{?fedora} <= 42
 %global        __ospython %{_bindir}/python3.13
 %global        python3_pkgversion 3.13
 %global        __ospython %{_bindir}/python3.12
 %global        python3_pkgversion 3.12
 %endif
-%if 0%{?suse_version} >= 1500
+%if 0%{?suse_version} == 1500
 %global        __ospython %{_bindir}/python3.11
 %global        python3_pkgversion 311
 %endif
+%if 0%{?suse_version} == 1600
+%global        __ospython %{_bindir}/python3.13
+%global        python3_pkgversion 313
+%endif
 
 %global python3_sitelib %(%{__ospython} -Esc "import sysconfig; print(sysconfig.get_path('purelib', vars={'platbase': '/usr', 'base': '%{_prefix}'}))")
 
 Summary:       A Template for PostgreSQL HA with ZooKeeper, etcd or Consul
 Name:          patroni
 Version:       4.1.0
-Release:       1PGDG%{?dist}
+Release:       2PGDG%{?dist}
 License:       MIT
 Source0:       https://github.com/patroni/%{name}/archive/v%{version}.tar.gz
 Source1:       %{name}.service
@@ -235,6 +235,9 @@ fi
 %files -n %{name}-zookeeper
 
 %changelog
+* Sun Oct 5 2025 Devrim Gündüz <devrim@gunduz.org> - 4.1.0-2PGDG
+- Add SLES 16 support
+
 * Tue Sep 23 2025 Devrim Gündüz <devrim@gunduz.org> - 4.1.0-1PGDG
 - Update to 4.1.0, per changes described at:
   https://github.com/zalando/patroni/blob/master/docs/releases.rst#version-410