commit
3461d06eeb
2 changed files with 56 additions and 0 deletions
@ -0,0 +1,50 @@ |
|||
Name: prometheus |
|||
Version: 2.25.0 |
|||
Release: itix1 |
|||
Summary: The Prometheus monitoring system and time series database. |
|||
License: Apache-2.0 |
|||
Source0: https://github.com/prometheus/prometheus/releases/download/v%{version}/%{name}-%{version}.linux-amd64.tar.gz |
|||
ExclusiveArch: x86_64 |
|||
|
|||
%description |
|||
|
|||
Prometheus, a Cloud Native Computing Foundation project, is a systems and |
|||
service monitoring system. It collects metrics from configured targets at |
|||
given intervals, evaluates rule expressions, displays the results, and can |
|||
trigger alerts when specified conditions are observed. |
|||
|
|||
# Since we don't recompile from source, disable the build_id checking |
|||
%global _missing_build_ids_terminate_build 0 |
|||
%global _build_id_links none |
|||
%global debug_package %{nil} |
|||
|
|||
%prep |
|||
%setup -q -n prometheus-%{version}.linux-amd64 |
|||
|
|||
%build |
|||
rm NOTICE |
|||
|
|||
%install |
|||
mkdir -p %{buildroot}/opt/prometheus/bin/ |
|||
cp -v prometheus %{buildroot}/opt/prometheus/bin/prometheus |
|||
cp -v promtool %{buildroot}/opt/prometheus/bin/promtool |
|||
cp -rv consoles %{buildroot}/opt/prometheus/bin/consoles/ |
|||
cp -rv console_libraries %{buildroot}/opt/prometheus/bin/console_libraries/ |
|||
cp -v prometheus.yml %{buildroot}/opt/prometheus/etc/prometheus.yaml |
|||
|
|||
%files |
|||
%defattr(0644, root, root, 0755) |
|||
%license LICENSE |
|||
%dir /opt/prometheus/bin/ |
|||
%dir /opt/prometheus/bin/consoles/ |
|||
%dir /opt/prometheus/bin/console_libraries/ |
|||
/opt/prometheus/bin/prometheus |
|||
/opt/prometheus/bin/promtool |
|||
/opt/prometheus/bin/consoles/* |
|||
/opt/prometheus/bin/console_libraries/* |
|||
%dir /opt/prometheus/etc/prometheus.yaml |
|||
%config /opt/prometheus/etc/prometheus.yaml |
|||
|
|||
%changelog |
|||
* Mon Feb 22 2021 Nicolas MASSE <nicolas.masse@itix.fr> - 2.25.0-itix1 |
|||
- First release |
|||
@ -0,0 +1,6 @@ |
|||
#!/bin/sh |
|||
|
|||
for spec in SPECS/*.spec; do |
|||
spectool -g -R $spec |
|||
rpmbuild -ba $spec |
|||
done |
|||
Loading…
Reference in new issue