Skip to content

Commit

Permalink
packaging/rhel: add fixes to adjust to AlmaLinux:9
Browse files Browse the repository at this point in the history
Use Python 3.11

Signed-off-by: Balazs Scheidler <[email protected]>
  • Loading branch information
bazsi committed May 24, 2024
1 parent 02486f3 commit 35ec0d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packaging/rhel/axosyslog.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 35ec0d7

Please sign in to comment.