Pacemaker Configuration System
Go to file
Michal Pospíšil cf0d6484c8 package licenses and docs for pcs-web-ui
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-86233

[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
2025-07-09 16:53:06 +02:00
.fmf migrate gating tests to fmf 2023-11-01 15:21:38 +01:00
.gitignore pcs-0.11.9-3.el9 2025-05-21 12:31:38 +02:00
do-not-support-cluster-setup-with-udp-u-transport.patch pcs-0.11.9-3.el9 2025-05-21 12:31:38 +02:00
gating.fmf ignore failure when allowing repositories 2023-11-02 15:39:04 +01:00
gating.yaml Resolves: rhbz#1493416 rhbz#1796827 rhbz#2059147 rhbz#2092950 rhbz#2112079 rhbz#2112270 rhbz#2112293 rhbz#2117599 rhbz#2117601 2022-10-25 16:01:39 +02:00
pcs.spec package licenses and docs for pcs-web-ui 2025-07-09 16:53:06 +02:00
prepare-env.sh pcs-0.11.7-1 2024-01-11 15:19:58 +01:00
rpminspect.yaml add rpminspect configuration file 2021-12-08 18:47:46 +01:00
sources pcs-0.11.9-3.el9 2025-05-21 12:31:38 +02:00