diff --git a/haproxy_exporter-0.12.0.tar.gz b/haproxy_exporter-0.12.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..793d2710fd5813e4790d7dcefeb3230a8288f6fb Binary files /dev/null and b/haproxy_exporter-0.12.0.tar.gz differ diff --git a/haproxy_exporter.spec b/haproxy_exporter.spec new file mode 100644 index 0000000000000000000000000000000000000000..53cfe8e21f12bb0c26515c5c5568fac343b0d4df --- /dev/null +++ b/haproxy_exporter.spec @@ -0,0 +1,43 @@ +%undefine _missing_build_ids_terminate_build + +Name: haproxy_exporter +Version: 0.12.0 +Release: 1 +Summary: A simple server for Prometheus consumption +License: Apache-2.0 +URL: https://github.oldjpg.com/repository/7939398 +Source0: https://github.com/prometheus/haproxy_exporter/archive/refs/tags/v0.12.0.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: docker golang-devel make +Requires: docker + +%description +Simple server that scrapes HAProxy stats and exports them +via HTTP for Prometheus consumption + +%prep +%autosetup -S git + + +%build +%{__git} config --global url."https://hub.fastgit.org/".insteadOf "https://github.com/" +go env -w GO111MODULE=on +go env -w GOPROXY=https://goproxy.cn,direct +go env -w GOSUMDB="sum.golang.org" + +make build + + +%install +%{__install} -d -p -m0755 %{buildroot}%{_bindir} +cp ./haproxy_exporter %{buildroot}%{_bindir}/ + + +%files +%license LICENSE +%doc README.md +%{_bindir}/haproxy_exporter + + +%changelog +* Tue Oct 12 2021 Your Name - 0.12.0-1 +- package init