diff --git a/blackbox_exporter.spec b/blackbox_exporter.spec index 41a84c6403d7b89bc6a89f6ae07d1639fd41a63c..da2821eddcbeb714f5d10dbfd69c4c8705117c85 100644 --- a/blackbox_exporter.spec +++ b/blackbox_exporter.spec @@ -2,7 +2,7 @@ %define debug_package %{nil} Name: blackbox_exporter Version: 0.19.0 -Release: 1 +Release: 2 Summary: Prometheus blackbox prober exporter License: Apache-2.0 Url: https://github.com/prometheus/blackbox_exporter @@ -29,10 +29,10 @@ install -m0644 blackbox.yml %{buildroot}%{_sysconfdir}/prometheus/blackbox.yml install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service %post -%system_post %{name}.service +%systemd_post %{name}.service -%postun -%system_preun %{name}.service +%preun +%systemd_preun %{name}.service %files %doc LICENSE README.md CONFIGURATION.md example.yml @@ -41,5 +41,8 @@ install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service %config(noreplace) %{_sysconfdir}/prometheus/blackbox.yml %changelog +* Thu Aug 10 2021 huanghaitao - 0.19.0-2 +- Fix systemd macro spelling errors. + * Thu Aug 5 2021 huanghaitao - 0.19.0-1 - package init