Blame README.md

97f8dbd
# grafana
3557495
The grafana package
97f8dbd
3557495
## Upgrade instructions
7f0368f
* update `Version`, `Release`, `%changelog` and tarball NVRs in the specfile
7f0368f
* create bundles and manifest: `make clean all`
6b8f02a
* update specfile with contents of the `.manifest` file
3557495
* 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
8515ac3
* update the manpages patch in `002-manpages.patch` and other patches if required
7a1a656
* run local build: `rpkg local`
35e322c
* run rpm linter: `rpkg lint -r grafana.rpmlintrc`
3557495
* run a scratch build: `fedpkg scratch-build --srpm`
8b048a5
* upload new source tarballs: `fedpkg new-sources *.tar.gz *.tar.xz`
7f0368f
* commit new `sources` file
35e322c
b3f6907
## Patches
35e322c
* create the patch
35e322c
* declare and apply (`%prep`) the patch in the specfile
35e322c
* if the patch affects Go or Node.js dependencies, or the webpack
b3f6907
  * add the patch to `PATCHES_PRE_VENDOR` or `PATCHES_PRE_WEBPACK` in the Makefile
7f0368f
  * create new tarballs
b3f6907
  * update the specfile with new tarball name and contents of the `.manifest` file
35e322c
b3f6907
### General guidelines
b3f6907
* aim to apply all patches in the specfile
b3f6907
* avoid rebuilding the tarballs
7f0368f
b3f6907
Patches fall in several categories:
b3f6907
  * modify dependency versions
b3f6907
  * modify both sources and vendored dependencies (e.g. CVEs)
b3f6907
  * modify the Node.js source (i.e. affect the webpack)
b3f6907
  * some patches are conditional (e.g. FIPS)
b3f6907
b3f6907
Patches cannot be applied twice.
b3f6907
It is not possible to unconditionally apply all patches in the Makefile, and great care must be taken to include the required patches at the correct stage of the build.
8515ac3
8515ac3
## Verification
8515ac3
* compare the list of files with the upstream RPM at https://grafana.com/grafana/download