From 931803b0fbc2746df2093f87fb72abbfc5fd59f2 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Wed, 20 Jan 2021 17:03:34 +0300 Subject: [PATCH] Fix missing dependency due to offed AutoReq --- llvm11.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/llvm11.spec b/llvm11.spec index 5d40085..4d809b5 100644 --- a/llvm11.spec +++ b/llvm11.spec @@ -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