# SPDX-FileCopyrightText: Copyright 2013- David Sommerseth # SPDX-License-Identifier: GPL-2.0-only Name: logactio Version: 1.3 Release: 1 License: GPL-2.0-only URL: https://radicle.network/nodes/rosa.radicle.network/rad:z3L9dYEExJhof9DvqvgsMF88ZMySi Source0: https://fedorapeople.org/~dsommers/projects/%{name}-%{version}.tar.gz Summary: Simple real-time log monitoring, rule-based automation BuildArch: noarch BuildRequires: make BuildRequires: systemd-rpm-macros BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel BuildRequires: python3-setuptools >= 62.3 BuildRequires: python3-sphinx Requires: python(abi) >= 3.6 Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description LogActio is a modular log monitor, which observes changes and acts through different modules based on the event. It is purely written in Python and can easily be extended with specific actions. %prep %autosetup %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel pushd docs make text man popd %install %pyproject_install # Install man pages mkdir -p %{buildroot}/%{_mandir}/man7 install -m644 docs/build/man/%{name}.7 %{buildroot}/%{_mandir}/man7/ # Install systemd service unit mkdir -p %{buildroot}/%{_unitdir} %{buildroot}/%{_sysconfdir}/sysconfig install -m644 init/systemd/logactio.service %{buildroot}/%{_unitdir}/%{name}.service install -m644 init/systemd/logactio.sysconf %{buildroot}/%{_sysconfdir}/sysconfig/%{name} %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSES/GPL-2.0-only.txt %doc docs/build/text/configuration.txt docs/build/text/starting.txt %{_mandir}/man7/*.gz %{_bindir}/%{name} %{python3_sitelib}/LogActio %{python3_sitelib}/logactio-*.dist-info %config(noreplace) /etc/sysconfig/%{name} %{_unitdir}/%{name}.service %changelog * Wed Jul 22 2026 David Sommerseth - 1.3-1 - Update to latest release - Modernised Python code to more recent standards - Removed Qpid support - Added NftablesSet (nft set support) - Extended HTTPReporter to support POST with JSON payloads - Removed sysv init script support * Thu Jul 30 2020 David Sommerseth - 1.2-1 - Migrate to Python 3 - Improve log messages for SMTPreporter and IPTipset - Use a simpler systemd service unit file * Thu Nov 12 2015 David Sommerseth - 1.1-1 - Reworked regexp match values sent to the reporter modules - Ensure that IPTipset only uses the first regexp match as an IP address * Fri Oct 23 2015 David Sommerseth - 1.0-1 - Updated for final v1.0 with support for both systemd and sysv distros * Wed Dec 25 2013 David Sommerseth - 0.01-1 - Initial RPM packaging