|
|
@ -5,6 +5,8 @@ Summary: The Prometheus monitoring system and time series database. |
|
|
License: Apache-2.0 |
|
|
License: Apache-2.0 |
|
|
Source0: https://github.com/prometheus/%{name}/releases/download/v%{version}/%{name}-%{version}.linux-amd64.tar.gz |
|
|
Source0: https://github.com/prometheus/%{name}/releases/download/v%{version}/%{name}-%{version}.linux-amd64.tar.gz |
|
|
Source1: prometheus.service |
|
|
Source1: prometheus.service |
|
|
|
|
|
Source2: prometheus.yaml |
|
|
|
|
|
Source3: prometheus.env |
|
|
ExclusiveArch: x86_64 |
|
|
ExclusiveArch: x86_64 |
|
|
Requires(pre): shadow-utils |
|
|
Requires(pre): shadow-utils |
|
|
BuildRequires: systemd |
|
|
BuildRequires: systemd |
|
|
@ -24,6 +26,8 @@ trigger alerts when specified conditions are observed. |
|
|
%prep |
|
|
%prep |
|
|
%setup -q -n %{name}-%{version}.linux-amd64 |
|
|
%setup -q -n %{name}-%{version}.linux-amd64 |
|
|
cp %{S:1} %{name}.service |
|
|
cp %{S:1} %{name}.service |
|
|
|
|
|
cp %{S:2} %{name}.yaml |
|
|
|
|
|
cp %{S:3} %{name}.env |
|
|
|
|
|
|
|
|
%build |
|
|
%build |
|
|
rm NOTICE |
|
|
rm NOTICE |
|
|
@ -35,6 +39,8 @@ install -D promtool %{buildroot}/opt/%{name}/bin/promtool |
|
|
install -D -m 0644 consoles/* -t %{buildroot}/opt/%{name}/bin/consoles/ |
|
|
install -D -m 0644 consoles/* -t %{buildroot}/opt/%{name}/bin/consoles/ |
|
|
install -D -m 0644 console_libraries/* -t %{buildroot}/opt/%{name}/bin/console_libraries/ |
|
|
install -D -m 0644 console_libraries/* -t %{buildroot}/opt/%{name}/bin/console_libraries/ |
|
|
install -D -m 0644 prometheus.yml %{buildroot}/opt/%{name}/etc/prometheus.yaml |
|
|
install -D -m 0644 prometheus.yml %{buildroot}/opt/%{name}/etc/prometheus.yaml |
|
|
|
|
|
install -D -m 0600 %{name}.yaml %{buildroot}/opt/%{name}/etc/%{name}.yaml |
|
|
|
|
|
install -D -m 0644 %{name}.env %{buildroot}/opt/%{name}/etc/%{name}.env |
|
|
install -D -m 0644 %{name}.service %{buildroot}/%{_unitdir}/%{name}.service |
|
|
install -D -m 0644 %{name}.service %{buildroot}/%{_unitdir}/%{name}.service |
|
|
|
|
|
|
|
|
%files |
|
|
%files |
|
|
@ -44,12 +50,13 @@ install -D -m 0644 %{name}.service %{buildroot}/%{_unitdir}/%{name}.service |
|
|
%dir /opt/%{name}/bin/consoles/ |
|
|
%dir /opt/%{name}/bin/consoles/ |
|
|
%dir /opt/%{name}/bin/console_libraries/ |
|
|
%dir /opt/%{name}/bin/console_libraries/ |
|
|
%dir /opt/%{name}/etc/ |
|
|
%dir /opt/%{name}/etc/ |
|
|
%dir /srv/%{name}/ |
|
|
|
|
|
%attr(0644, root, root) /opt/%{name}/bin/prometheus |
|
|
|
|
|
%attr(0644, root, root) /opt/%{name}/bin/promtool |
|
|
|
|
|
/opt/%{name}/bin/consoles/* |
|
|
/opt/%{name}/bin/consoles/* |
|
|
/opt/%{name}/bin/console_libraries/* |
|
|
/opt/%{name}/bin/console_libraries/* |
|
|
%config /opt/%{name}/etc/prometheus.yaml |
|
|
%attr(0700, prometheus, itix-svc) %dir /srv/%{name}/ |
|
|
|
|
|
%attr(0755, root, root) /opt/%{name}/bin/prometheus |
|
|
|
|
|
%attr(0755, root, root) /opt/%{name}/bin/promtool |
|
|
|
|
|
%attr(0600, prometheus, itix-svc) %config(noreplace) /opt/%{name}/etc/%{name}.yaml |
|
|
|
|
|
%config(noreplace) /opt/%{name}/etc/%{name}.env |
|
|
%{_unitdir}/%{name}.service |
|
|
%{_unitdir}/%{name}.service |
|
|
|
|
|
|
|
|
%pre |
|
|
%pre |
|
|
@ -61,5 +68,3 @@ getent passwd %{name} >/dev/null || useradd -r -g itix-svc \ |
|
|
exit 0 |
|
|
exit 0 |
|
|
|
|
|
|
|
|
%changelog |
|
|
%changelog |
|
|
* Mon Feb 22 2021 Nicolas MASSE <nicolas.masse@itix.fr> - 2.25.0-itix1 |
|
|
|
|
|
- First release |
|
|
|
|
|
|