diff --git a/libclc.changes b/libclc.changes index 5cb6e27..7a53876 100644 --- a/libclc.changes +++ b/libclc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Sep 29 12:44:19 UTC 2021 - Stefan Dirsch + +- fixed broken %{_llvm_sonum} in libcl(llvm%{_llvm_sonum}) Provides + by buildrequiring appropriate llvm/clang -devel packages + ------------------------------------------------------------------- Wed Sep 29 12:00:22 UTC 2021 - Stefan Dirsch diff --git a/libclc.spec b/libclc.spec index e12dff0..68a68b2 100644 --- a/libclc.spec +++ b/libclc.spec @@ -27,9 +27,19 @@ Group: Development/Libraries/C and C++ URL: https://libclc.llvm.org/ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_libclc_llvm_ver}/%{name}-%{_libclc_llvm_ver}.src.tar.xz Source1: %{name}-rpmlintrc -BuildRequires: clang-devel >= 4.0 BuildRequires: cmake -BuildRequires: llvm >= 4.0 +%if 0%{?suse_version} >= 1550 +BuildRequires: clang-devel +BuildRequires: llvm-devel +%else +%if 0%{?sle_version} >= 150300 +BuildRequires: clang11-devel +BuildRequires: llvm11-devel +%else +BuildRequires: clang9-devel +BuildRequires: llvm9-devel +%endif +%endif BuildRequires: python3-base Provides: libclc(llvm%{_llvm_sonum}) BuildArch: noarch