From b8b79dc7110ea8ec22150c8c2d890b97624b08cf Mon Sep 17 00:00:00 2001 From: wu-leilei Date: Mon, 28 Feb 2022 14:19:17 +0800 Subject: [PATCH] fix %{_unitdir} not identified (cherry picked from commit 909389d70db319e724a5b32b23a668cab598f116) --- prometheus2.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prometheus2.spec b/prometheus2.spec index 91d7a6f..5170767 100644 --- a/prometheus2.spec +++ b/prometheus2.spec @@ -2,7 +2,7 @@ Name: prometheus2 Version: 2.20.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The Prometheus 2.x monitoring system and time series database. License: ASL 2.0 URL: https://prometheus.io @@ -19,6 +19,7 @@ Source0: prometheus-%{version}.linux-%{hostarch}.tar.gz Source1: prometheus.service Source2: prometheus.default +BuildRequires: systemd %{?systemd_requires} Requires(pre): shadow-utils @@ -76,5 +77,8 @@ exit 0 %dir %attr(755, prometheus, prometheus)%{_sharedstatedir}/prometheus %changelog +* Mon Feb 28 2022 wulei - 2.20.0-2 +- Fix %{_unitdir} not identified + * Tue Aug 11 2020 houjian - 2.20.0-1 - Init project prometheus