## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 8; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 27 %bcond check 1 %global crate monitord-exporter Name: rust-monitord-exporter Version: 0.4.1 Release: %autorelease Summary: Let Prometheus know how happy your systemd is License: GPL-2.0-or-later URL: https://crates.io/crates/monitord-exporter Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Bump monitord to 0.12 Patch: monitord-exporter-fix-metadata.diff Patch: 0001-Add-missing-type-annotation-for-prometheus-0.14-comp.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: systemd-rpm-macros %global _description %{expand: monitord-exporter is a Prometheus exporter using monitord to export statistic to Prometheus collectors.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-3.0 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # GPL-2.0-or-later # MIT # MIT OR Apache-2.0 # MIT OR LGPL-3.0-or-later # MIT OR Zlib OR Apache-2.0 # Unlicense OR MIT License: ((MIT OR Apache-2.0) AND Unicode-3.0) AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND GPL-2.0-or-later AND MIT AND (MIT OR Apache-2.0) AND (MIT OR LGPL-3.0-or-later) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/monitord-exporter %{_unitdir}/monitord-exporter.service %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install install -Dpm0644 -t %{buildroot}%{_unitdir} monitord-exporter.service %post %systemd_post monitord-exporter.service %preun %systemd_preun monitord-exporter.service %postun %systemd_postun_with_restart monitord-exporter.service %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Sat Feb 07 2026 Fabio Valentini - 0.4.1-8 - Rebuild for RUSTSEC-2026-{0007,0008,0009} and CVE-2026-25537 * Sat Jan 17 2026 Fedora Release Engineering - 0.4.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Mon Oct 06 2025 Fabio Valentini - 0.4.1-6 - Add missing type annotation for prometheus 0.14 compatibility * Tue Sep 02 2025 Fabio Valentini - 0.4.1-5 - Rebuild with tracing-subscriber v0.3.20 for CVE-2025-58160 * Fri Jul 25 2025 Fedora Release Engineering - 0.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Jan 31 2025 Davide Cavalca - 0.4.1-3 - Rebuild for rust-monitord 0.12.1; Fixes: RHBZ#2343008 * Sun Jan 19 2025 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Oct 24 2024 Michel Lind - 0.4.1-1 - Update to version 0.4.1; Fixes: RHBZ#2317950 * Tue Sep 10 2024 Davide Cavalca - 0.3.0-2 - Backport bugfix commit for the systemd unit * Tue Jul 23 2024 Davide Cavalca - 0.3.0-1 - Initial import; Fixes: RHBZ#2290730 ## END: Generated by rpmautospec