From 3d2e6edaee653f0a4f35a667d4f61f8c104075e2 Mon Sep 17 00:00:00 2001 From: Matej Kubinec <32638572+matejkubinec@users.noreply.github.com> Date: Thu, 16 Mar 2023 11:46:40 +0100 Subject: [PATCH] PMM-11762 Update grafana to 9.2.13 (#1858) (#1876) * PMM-11762 Update grafana to 9.2.13 (#1858) * PMM-11762 Update grafana version * PMM-11762 Use correct ticket number * PMM-11762 copy grafana binary to destination * PMM-11762 disable fastestmirror plugin * PMM-11762 fix grafana.spec * PMM-11762 disable the mirrors * PMM-11762 re-enable the fastestmirror plugin * PMM-11762 remove redundant files * PMM-11762 cleanup the spec * PMM-11762 put back grafana/public --------- Co-authored-by: Alex Tymchuk * PMM-11762 remove the experiment with epel.repo config --------- Co-authored-by: Alex Tymchuk --- build/packages/rpm/server/SPECS/grafana.spec | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/build/packages/rpm/server/SPECS/grafana.spec b/build/packages/rpm/server/SPECS/grafana.spec index 565359d84f..6475c4d1b8 100644 --- a/build/packages/rpm/server/SPECS/grafana.spec +++ b/build/packages/rpm/server/SPECS/grafana.spec @@ -2,8 +2,8 @@ %global commit 33423d34f211ce1ce5ce0a265a38f0709ec44360 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %define build_timestamp %(date -u +"%y%m%d%H%M") -%define release 97 -%define grafana_version 9.2.5 +%define release 98 +%define grafana_version 9.2.13 %define full_pmm_version 2.0.0 %define full_version v%{grafana_version}-%{full_pmm_version} %define rpm_release %{release}.%{build_timestamp}.%{shortcommit}%{?dist} @@ -45,18 +45,13 @@ make build-js install -d -p %{buildroot}%{_datadir}/grafana cp -rpav conf %{buildroot}%{_datadir}/grafana cp -rpav public %{buildroot}%{_datadir}/grafana -cp -rpav scripts %{buildroot}%{_datadir}/grafana cp -rpav tools %{buildroot}%{_datadir}/grafana -if [ ! -d tmp/bin ]; then - mkdir -p tmp/bin -fi -cp -rpav bin/* tmp/bin/ - install -d -p %{buildroot}%{_sbindir} -cp tmp/bin/linux-amd64/grafana-server %{buildroot}%{_sbindir}/ +cp bin/linux-amd64/grafana-server %{buildroot}%{_sbindir}/ +cp bin/linux-amd64/grafana %{buildroot}%{_sbindir}/ install -d -p %{buildroot}%{_bindir} -cp tmp/bin/linux-amd64/grafana-cli %{buildroot}%{_bindir}/ +cp bin/linux-amd64/grafana-cli %{buildroot}%{_bindir}/ install -d -p %{buildroot}%{_sysconfdir}/grafana cp conf/sample.ini %{buildroot}%{_sysconfdir}/grafana/grafana.ini @@ -69,6 +64,7 @@ install -d -p %{buildroot}%{_sharedstatedir}/grafana %{_datadir}/grafana %doc *.md %license LICENSE +%attr(0755, root, root) %{_sbindir}/grafana %attr(0755, root, root) %{_sbindir}/grafana-server %attr(0755, root, root) %{_bindir}/grafana-cli %{_sysconfdir}/grafana/grafana.ini @@ -83,6 +79,9 @@ getent passwd grafana >/dev/null || \ exit 0 %changelog +* Fri Mar 10 2023 Matej Kubinec - 9.2.13-1 +- PMM-11762 Grafana 9.2.13 + * Tue Nov 29 2022 Alex Tymchuk - 9.2.5-1 - PMM-10881 Grafana 9.2.5