The only thing that uses bzip2-devel is RocksDB, and it's optional, not
requirement. Drop the bzip2-devel/libbz2-dev dependency entirely, and
let RocksDB use it only if it is already present.
Fixes: #13981
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
%if 0%{?_with_systemd}
Requires: systemd
%endif
-BuildRequires: bzip2-devel
BuildRequires: nss-devel
BuildRequires: keyutils-libs-devel
BuildRequires: libatomic_ops-devel
Build-Depends: autoconf,
automake,
autotools-dev,
- libbz2-dev,
cmake,
cryptsetup-bin | cryptsetup,
cython,
if WITH_SLIBROCKSDB
LIBKV += rocksdb/librocksdb.a
endif
-LIBKV += -lbz2 -lz -lleveldb -lsnappy
+LIBKV += -lz -lleveldb -lsnappy
LIBOS += $(LIBOS_TYPES) $(LIBKV)
LIBMON += $(LIBMON_TYPES)