Fix missing dependency due to offed AutoReq

This commit is contained in:
Mikhail Novosyolov 2021-01-20 17:03:34 +03:00
parent b71cbaa7a0
commit 931803b0fb

View file

@ -28,7 +28,7 @@ Summary: LLVM and Clang in %{_prefix}
# llvm11
Name: llvm%{maj_ver}
Version: %{maj_ver}.0.1
Release: 2
Release: 3
License: NCSA
Group: Development/Other
Url: http://llvm.org
@ -65,6 +65,14 @@ Requires: libstdc++-devel
# ! Nothing must be linked with libllvm etc. from here!
AutoReq: 0
AutoProv: 0
# Require this manually instead of AutoReq
%if %rpm4
Requires: %(patchelf --print-soname /usr/%{_lib}/libffi.so)%{_arch_tag_suffix}
%else
# _arch_tag_suffix in needed form does not exist in rpm5, make a more dirty hack
Requires: %mklibname ffi %(patchelf --print-soname /usr/%{_lib}/libffi.so | awk -F '.' '{print $NF}' || echo 0)
%endif
%description
LVM is a robust system, particularly well suited for developing new mid-level