Pacemaker Configuration System
Pcs-web-ui added a changelog upstream, so I'm adding it downstream as well. It turns out that I forgot to package the readme and license before, so adding them too. For pcs, readme and changelog are installed via automake variable `dist_doc_DATA` [1] which gets automatically converted to its own target ran during `make install`. The target installs it to %docdir/%TARNAME (automake variables). This happens to align with RPM default of %_docdir/%name (spec macros). This is rendered completely useless as these later get replaced by RPM anyway. The path is therefore /usr/share/doc/pcs. RPM %doc directive has two modes. If there is a relative path, the %doc directive runs a script that goes into builddir/BUILD/<Source0> and copies the file to %_docdir. If there is an absolute path, the file is only marked as a doc file in the RPM database. The same goes for %license directive, except for it getting copied to %_defaultlicensedir. [2][3] The problem arises for pcs-web-ui files as they neither come from the pcs tarball nor are to be owned by the pcs package. Additionally, the package name changes for different downstreams. Because the package name changes, it is not desirable to install the files in the upstream Makefile which is not aware of RPM package names. I made a decision to handle file copying entirely in the specfile for these reasons. It seems like for relative paths, RPM searches the Source0 tarball, but ours are located in Source100. Therefore, I explicitly used %_docdir and %_defaultlicensedir in %install and %files. Resolves: RHEL-86232 [1]: https://www.gnu.org/software/automake/manual/html_node/amhello_0027s-Makefile_002eam-Setup-Explained.html [2]: https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ [3]: https://web.archive.org/web/20160927094629/https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s05s03.html |
||
|---|---|---|
| .fmf | ||
| .gitignore | ||
| do-not-support-cluster-setup-with-udp-u-transport.patch | ||
| gating.fmf | ||
| gating.yaml | ||
| pcs.spec | ||
| prepare-env.sh | ||
| rpminspect.yaml | ||
| show-info-page-instead-of-webui.patch | ||
| sources | ||