check_patroni: Fix builds on SLES
authorDevrim Gunduz <devrim@gunduz.org>
Wed, 15 Oct 2025 07:09:53 +0000 (10:09 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Wed, 15 Oct 2025 07:09:53 +0000 (10:09 +0300)
rpm/redhat/main/common/check_patroni/main/check_patroni.spec

index cf9041e0b9d9ba31a481621928fed29cdfd2ac06..27b463c110594b89ae6c856bb2993cbb1ce6b267 100644 (file)
 
 Name:          nagios-plugins-patroni
 Version:       2.2.0
-Release:       2PGDG%{dist}
+Release:       3PGDG%{dist}
 Summary:       Patroni monitoring plugin for Nagios
 License:       PostgreSQL
 Url:           https://github.com/dalibo/%{sname}/
 Source0:       https://github.com/dalibo/%{sname}/archive/refs/tags/v%{version}.tar.gz
 BuildArch:     noarch
+%if 0%{?suse_version} >= 1500
+BuildRequires: python-rpm-macros
+%else
 BuildRequires: pyproject-rpm-macros
+%endif
 Requires:      nagios-plugins
 Provides:      %{sname} = %{version}
 
@@ -56,6 +60,9 @@ check_patroni is a monitoring plugin of patroni for Nagios.
 %{python3_sitelib}/%{sname}/__pycache__/*.pyc
 
 %changelog
+* Wed Oct 15 2025 Devrim Gündüz <devrim@gunduz.org> 2.2.0-3PGDG
+- Fix builds on SLES
+
 * Wed Oct 8 2025 Devrim Gündüz <devrim@gunduz.org> 2.2.0-2PGDG
 - Add SLES 16 support
 - Use Python 3.1x on all platforms