From 35ec0d795897b8d0d70b2e0b1535b5d0462c730f Mon Sep 17 00:00:00 2001 From: Balazs Scheidler Date: Fri, 24 May 2024 11:01:39 +0200 Subject: [PATCH] packaging/rhel: add fixes to adjust to AlmaLinux:9 Use Python 3.11 Signed-off-by: Balazs Scheidler --- packaging/rhel/axosyslog.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packaging/rhel/axosyslog.spec b/packaging/rhel/axosyslog.spec index 55044ddcad..a320ec6eae 100644 --- a/packaging/rhel/axosyslog.spec +++ b/packaging/rhel/axosyslog.spec @@ -27,6 +27,10 @@ Source4: syslog-ng.logrotate7 %bcond_without mqtt +%if 0%{?rhel} == 9 +%global python_devel python3.11-devel +%global py_ver 3.11 +%else %if 0%{?rhel} == 8 %global python_devel python39-devel %global py_ver 3.9 @@ -39,6 +43,7 @@ Source4: syslog-ng.logrotate7 %global py_ver %{python3_version} %endif %endif +%endif %if 0%{?rhel} >= 7 || 0%{?fedora} <= 32 %bcond_without java @@ -371,6 +376,9 @@ make DESTDIR=%{buildroot} install %if 0%{?rhel} == 8 %{__install} -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/syslog %endif +%if 0%{?rhel} >= 9 +%{__install} -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/syslog-ng +%endif %if 0%{?fedora} >= 28 %{__install} -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/syslog-ng %endif