diff --git a/PilotGo-plugin-grafana.spec b/PilotGo-plugin-grafana.spec index 9bf792fabc79fe2cff1d1b78036d9e84d3d1ded6..b93bb73b3f876bb4a54a05daddfdaee5615fa248 100644 --- a/PilotGo-plugin-grafana.spec +++ b/PilotGo-plugin-grafana.spec @@ -1,22 +1,23 @@ %define debug_package %{nil} Name: PilotGo-plugin-grafana -Version: 1.0.1 -Release: 2 +Version: 1.1.0 +Release: 1 Summary: PilotGo grafana plugin maintains grafana to provide beautiful visual monitoring interface. License: MulanPSL-2.0 URL: https://gitee.com/openeuler/PilotGo-plugin-grafana -Source0: https://gitee.com/openeuler/%{name}-%{version}.tar.gz +Source0: https://gitee.com/openeuler/PilotGo-plugin-grafana/repository/archive/v%{version}.tar.gz + BuildRequires: systemd BuildRequires: golang +Requires: grafana Provides: pilotgo-plugin-grafana = %{version}-%{release} %description PilotGo grafana plugin maintains grafana to provide beautiful visual monitoring interface. - %prep -%autosetup -p1 -n %{name}-%{version} +%setup -n %{name}-v%{version} %build GO111MODULE=on go build -mod=vendor -o PilotGo-plugin-grafana main.go @@ -35,18 +36,19 @@ install -D -m 0644 scripts/PilotGo-plugin-grafana.service %{buildroot}%{_unitdir %postun %systemd_postun PilotGo-plugin-grafana.service +# Clear all installed files when uninstalling +rm -rf /opt/PilotGo/plugin/grafana %files -%dir /opt/PilotGo -%dir /opt/PilotGo/plugin -%dir /opt/PilotGo/plugin/grafana -%dir /opt/PilotGo/plugin/grafana/log /opt/PilotGo/plugin/grafana/PilotGo-plugin-grafana /opt/PilotGo/plugin/grafana/config.yaml +/opt/PilotGo/plugin/grafana/log %{_unitdir}/PilotGo-plugin-grafana.service - %changelog +* Tue Apr 02 2024 jianxinyu - 1.1.0-1 +- Update package to version 1.1.0 + * Wed Sep 13 2023 wubijie - 1.0.1-2 - Modify the README.md file diff --git a/PilotGo-plugin-grafana-1.0.1.tar.gz b/v1.1.0.tar.gz similarity index 40% rename from PilotGo-plugin-grafana-1.0.1.tar.gz rename to v1.1.0.tar.gz index 4c02c4f70c9098e64a78401980100273f88e52f4..2409ef5ff73bd7f09824b11821f759d81eef3901 100644 Binary files a/PilotGo-plugin-grafana-1.0.1.tar.gz and b/v1.1.0.tar.gz differ