2019-04-29 12:46:34 +00:00
# grafana
2020-04-22 16:14:45 +00:00
The grafana package
2019-04-29 12:46:34 +00:00
2020-04-22 16:14:45 +00:00
## Upgrade instructions
(replace X.Y.Z with the new Grafana version)
2020-04-28 12:01:56 +00:00
* update `Version` and `%changelog` in the specfile
2020-11-04 16:44:15 +00:00
* create bundles and manifests: `VER=X.Y.Z make clean all`
* update specfile with contents of the `*.manifest` files
2020-04-22 16:14:45 +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
2020-07-30 15:52:28 +00:00
* run local build: `rpkg local`
2020-11-04 16:44:15 +00:00
* run rpm linter: `rpkg lint -r grafana.rpmlintrc`
* run local builds with different OS versions: `./run_container_build.sh fedora-version`
2020-04-22 16:14:45 +00:00
* run a scratch build: `fedpkg scratch-build --srpm`
2020-11-10 19:19:51 +00:00
* upload new source tarballs: `fedpkg new-sources *.tar.gz`
2020-11-04 16:44:15 +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`
* update the specfile
Note: the Makefile automatically applies all patches before creating the tarballs