2020-04-30 10:38:54 +00:00
# grafana
The grafana package
## Upgrade instructions
2021-07-08 13:59:27 +00:00
(replace X.Y.Z and R with the new Grafana version)
2020-04-30 10:38:54 +00:00
2020-11-25 17:52:48 +00:00
* update `Version` , `Release` and `%changelog` in the specfile
2021-07-08 13:59:27 +00:00
* create bundles and manifest: `VER=X.Y.Z REL=R make clean all`
2020-11-25 17:52:48 +00:00
* update specfile with contents of the `.manifest` file
2020-04-30 10:38:54 +00:00
* check if the default configuration has changed: `diff grafana-X.Y.Z/conf/defaults.ini distro-defaults.ini` and update `distro-defaults.ini` if necessary
2021-05-27 14:06:42 +00:00
* update the manpages patch in `002-manpages.patch` and other patches if required
2020-11-11 15:08:00 +00:00
* run local build: `rpkg local`
* run rpm linter: `rpkg lint -r grafana.rpmlintrc`
* run local builds with different OS versions: `./run_container_build.sh fedora-version`
2020-04-30 10:38:54 +00:00
* run a scratch build: `fedpkg scratch-build --srpm`
2020-12-21 19:37:43 +00:00
* upload new source tarballs: `fedpkg new-sources *.tar.gz *.tar.xz`
2020-11-11 15:08:00 +00:00
## Backporting
* create the patch
* declare and apply (`%prep`) the patch in the specfile
* if the patch affects Go or Node.js dependencies, or the webpack
* create new tarballs and rename them to `grafana-...-X.Y.Z-R.tar.gz`
2020-11-25 17:52:48 +00:00
* update the specfile with new tarball path and contents of the `.manifest` file
2020-11-11 15:08:00 +00:00
Note: the Makefile automatically applies all patches before creating the tarballs
2021-05-27 14:06:42 +00:00
## Verification
* compare the list of files with the upstream RPM at https://grafana.com/grafana/download