Name: minmon Version: 0.11.1 Release: 3%{?dist} Summary: An opinionated minimal monitoring and alarming tool License: MIT OR Apache-2.0 URL: https://github.com/flo-at/minmon Source0: https://github.com/flo-at/minmon/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: rust >= 1.70 BuildRequires: cargo BuildRequires: gcc BuildRequires: openssl-devel BuildRequires: systemd-devel BuildRequires: pkgconfig BuildRequires: lm_sensors-devel Requires: glibc Requires: openssl Requires: systemd Requires: lm_sensors # Disable debuginfo package generation for Rust binaries %global debug_package %{nil} %description MinMon is an opinionated minimal monitoring and alarming tool for Linux. This tool is just a single binary and a config file. No database, no GUI, no graphs. Just monitoring and alarms. Features include filesystem usage monitoring, memory usage tracking, network throughput monitoring, systemd unit status checking, temperature monitoring, and various notification methods including email, webhooks, and process execution. %prep %autosetup -n %{name}-%{version} %build # Build with full features including systemd, docker, sensors, http, and smtp support cargo build --release --verbose --features full %install # Install binary install -D -m 755 target/release/%{name} %{buildroot}%{_bindir}/%{name} # Install systemd service file install -D -m 644 systemd.%{name}.service %{buildroot}%{_unitdir}/%{name}.service # Install documentation install -d %{buildroot}%{_docdir}/%{name} install -m 644 README.md %{buildroot}%{_docdir}/%{name}/ install -m 644 CONTRIBUTING.md %{buildroot}%{_docdir}/%{name}/ # Create config directory install -d %{buildroot}%{_sysconfdir}/%{name} # Install example config file install -m 644 example_config.toml %{buildroot}%{_sysconfdir}/%{name}/minmon.toml %files %license LICENSE-MIT LICENSE-APACHE %doc %{_docdir}/%{name}/README.md %doc %{_docdir}/%{name}/CONTRIBUTING.md %config(noreplace) %{_sysconfdir}/%{name}/minmon.toml %{_bindir}/%{name} %{_unitdir}/%{name}.service %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %changelog * Thu Sep 11 2025 Florian Wickert - 0.11.1-3 - Fixed a bug where the bad cycles counter wasn't reset while in the good state.