Update package to version 0.24.0

This commit is contained in:
jxy_git 2024-01-02 16:16:14 +08:00
parent 3a06cec25c
commit 34741c749c
5 changed files with 14 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,14 +1,17 @@
%define __debug_install_post %{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}" %{nil}
%define debug_package %{nil}
Name: blackbox_exporter
Version: 0.23.0
Release: 3
Version: 0.24.0
Release: 1
Summary: Prometheus blackbox prober exporter
License: Apache-2.0
URL: https://github.com/prometheus/blackbox_exporter
Source0: https://github.com/prometheus/blackbox_exporter/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0: https://github.com/prometheus/blackbox_exporter/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: %{name}.service
Source2: vendor.tar.gz
# tar -xvf Source0
# run 'go mod vendor' in it
# tar -czvf blackbox_exporter-vendor.tar.gz vendor
Source2: blackbox_exporter-vendor.tar.gz
Patch0: add-parameters-to-solve-the-strip.patch
BuildRequires: golang promu
Requires(pre): prometheus2
@ -25,10 +28,9 @@ export GOFLAGS="-mod=vendor"
promu build
%install
mkdir -p %{buildroot}{%{_bindir},%{_unitdir},%{_sysconfdir}/prometheus}
install -m0755 %{name}-%{version} %{buildroot}%{_bindir}/%{name}
install -m0644 blackbox.yml %{buildroot}%{_sysconfdir}/prometheus/blackbox.yml
install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 0755 %{name}-%{version} %{buildroot}%{_bindir}/%{name}
install -D -m 0644 blackbox.yml %{buildroot}%{_sysconfdir}/prometheus/blackbox.yml
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
%post
%systemd_post %{name}.service
@ -43,6 +45,9 @@ install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/prometheus/blackbox.yml
%changelog
* Tue Jan 02 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 0.24.0-1
- Update package to version 0.24.0
* Fri Mar 10 2023 wulei <wulei80@h-partners.com> - 0.23.0-3
- Delete linkmode

Binary file not shown.