diff --git a/blackbox_exporter-0.23.0.tar.gz b/blackbox_exporter-0.23.0.tar.gz deleted file mode 100644 index d391df6..0000000 Binary files a/blackbox_exporter-0.23.0.tar.gz and /dev/null differ diff --git a/blackbox_exporter-0.24.0.tar.gz b/blackbox_exporter-0.24.0.tar.gz new file mode 100644 index 0000000..e4c49d6 Binary files /dev/null and b/blackbox_exporter-0.24.0.tar.gz differ diff --git a/blackbox_exporter-vendor.tar.gz b/blackbox_exporter-vendor.tar.gz new file mode 100644 index 0000000..d2fc4b2 Binary files /dev/null and b/blackbox_exporter-vendor.tar.gz differ diff --git a/blackbox_exporter.spec b/blackbox_exporter.spec index f768ccb..e742c91 100644 --- a/blackbox_exporter.spec +++ b/blackbox_exporter.spec @@ -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 - 0.24.0-1 +- Update package to version 0.24.0 + * Fri Mar 10 2023 wulei - 0.23.0-3 - Delete linkmode diff --git a/vendor.tar.gz b/vendor.tar.gz deleted file mode 100644 index f7ce71f..0000000 Binary files a/vendor.tar.gz and /dev/null differ