]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph.spec.in: use pkgconfig() for library BuildRequires
authorKefu Chai <k.chai@proxmox.com>
Wed, 1 Jul 2026 08:26:43 +0000 (16:26 +0800)
committerKefu Chai <k.chai@proxmox.com>
Thu, 2 Jul 2026 01:42:23 +0000 (09:42 +0800)
commit8664e52d4b2f0b2245fc6f18403817dfe652f4f2
treebe6bd21479c030c47fd97be87fc054f7ea2c7b1f
parenteb595fbad587e4142e0270899e3cc215b2452dc4
ceph.spec.in: use pkgconfig() for library BuildRequires

Library BuildRequires used per-distro -devel package names, some split
across %if suse / %if rhel branches only because the names differ. The
pkgconfig() virtual provides resolve identically on every rpm distro; the
spec already relies on them for fuse3, systemd and udev.

Switch every library dependency that ships a .pc to pkgconfig(), preserving
version constraints and feature guards. This collapses the suse-vs-rhel
naming splits (nss, keyutils, openssl, ldap, ibverbs, rdmacm, lz4, thrift,
libcryptopp) and the dedicated split blocks (nlohmann_json, lttng-ust,
babeltrace, expat) into single lines, and folds the duplicated xmlsec1 devel
packages together.

Left as package names: libaio and xfsprogs ship no reliable .pc; gperftools
carries version and tcmalloc-variant logic; numa is unconditional on rhel
but crimson-only on suse; and the xmlsec1 runtime backend plugins are
runtime test deps, not build-time pkgconfig() deps.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
ceph.spec.in