[client] use soname-based RPM deps for UI webkitgtk/gtk4

Hardcoded RPM dependency names (gtk4, webkitgtk6.0) only exist on
Fedora; OpenSUSE names them libgtk-4-1 / libwebkitgtk-6_0-4, so the
shared RPM failed to install there with a missing webkitgtk6.0 error.

Depend on the soname capabilities the ELF auto-generates instead
(libgtk-4.so.1, libwebkitgtk-6.0.so.4), which every distro that
ships these libraries Provides, so a single RPM resolves on Fedora,
OpenSUSE and RHEL 10 (EPEL) alike.
This commit is contained in:
Zoltán Papp
2026-06-19 07:51:32 +02:00
parent 62afff6d52
commit 794778fcd9

View File

@@ -111,8 +111,11 @@ nfpms:
dst: /usr/share/pixmaps/netbird.png
dependencies:
- netbird
- gtk4
- webkitgtk6.0
# Depend on auto-generated soname capabilities, not distro package names:
# Fedora gtk4/webkitgtk6.0, OpenSUSE libgtk-4-1/libwebkitgtk-6_0-4 and
# RHEL 10 (EPEL) all Provide these, so one RPM resolves everywhere they exist.
- libgtk-4.so.1()(64bit)
- libwebkitgtk-6.0.so.4()(64bit)
rpm:
signature:
key_file: '{{ if index .Env "GPG_RPM_KEY_FILE" }}{{ .Env.GPG_RPM_KEY_FILE }}{{ end }}'