diff --git a/baselibs.conf b/baselibs.conf index ef1816d..73094c1 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,8 +1,2 @@ libLLVM14 libclang-cpp14 -llvm14-devel - provides "llvm-devel- = " - conflicts "otherproviders(llvm-devel-)" -clang14-devel - provides "clang-devel- = " - conflicts "otherproviders(clang-devel-)" diff --git a/llvm14.changes b/llvm14.changes index d696c11..c2f4265 100644 --- a/llvm14.changes +++ b/llvm14.changes @@ -53,7 +53,8 @@ Sun Apr 3 13:42:27 UTC 2022 - Aaron Puchert - Merge llvm-LTO-devel into llvm-devel. That's where the header files already are, and they are hard to separate. - Let llvm-polly-devel depend on llvm-devel. -- Remove libLTO from baselibs, it doesn't seem to be needed. +- Remove libLTO and *-devel packages from baselibs, they don't + seem to be needed. We mostly need libLLVM and maybe libclang-cpp. - Only suggest documentation packages. ------------------------------------------------------------------- diff --git a/llvm14.spec b/llvm14.spec index 0c584e0..5a883bb 100644 --- a/llvm14.spec +++ b/llvm14.spec @@ -210,8 +210,9 @@ Conflicts: llvm5 Conflicts: llvm7 %endif Conflicts: cmake(LLVM) -Obsoletes: llvm%{_sonum}-LTO-devel <= %{version} -Provides: llvm%{_sonum}-LTO-devel = %{version} +# libLTO.so used to be a separate package. +Conflicts: libLTO.so < %{version} +Provides: libLTO.so = %{version} Provides: llvm-devel-provider = %{version} %if %{with ffi} Requires: pkgconfig(libffi) @@ -374,6 +375,7 @@ Summary: C++ standard library implementation Group: System/Libraries URL: https://libcxx.llvm.org/ Requires: libc++abi%{_socxx} = %{version} +Conflicts: libc++%{_socxx} < %{version} Provides: libc++%{_socxx} = %{version} %description %{multisource libcxx%{_socxx}} libc++%{_socxx} @@ -384,7 +386,7 @@ standard library, targeting C++11. Summary: C++ standard library implementation (devel package) Group: Development/Libraries/C and C++ Requires: libc++%{_socxx} >= %{version} -Requires: libc++abi-devel = %{version} +Requires: libc++abi.so >= %{version} Conflicts: libc++.so < %{version} Provides: libc++.so = %{version} @@ -396,6 +398,7 @@ standard library, targeting C++11. (development files) Summary: C++ standard library ABI Group: System/Libraries URL: https://libcxxabi.llvm.org/ +Conflicts: libc++abi%{_socxx} < %{version} Provides: libc++abi%{_socxx} = %{version} %description %{multisource libcxxabi%{_socxx}} libc++abi%{_socxx} @@ -936,6 +939,19 @@ mv %{buildroot}%{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/cla mv %{buildroot}%{_datadir}/clang/clang-tidy-diff.py %{buildroot}%{_bindir}/clang-tidy-diff mv %{buildroot}%{_datadir}/clang/run-find-all-symbols.py %{buildroot}%{_bindir}/run-find-all-symbols +# Fix paths to internal binaries. +sed -i "s|COMPILER_WRAPPER_\([A-Z]*\) = 'intercept-\([^']*\)'|COMPILER_WRAPPER_\1 = '%{_libexecdir}/intercept-\2'|" \ + %{buildroot}%{_prefix}/lib/libscanbuild/intercept.py +%if "%{_libexecdir}" != "%{_prefix}/libexec" +LIBEXEC=%{_libexecdir} +RELATIVE_LIBEXEC=${LIBEXEC#%{_prefix}/} +sed -i "s|\$AbsRealBin/../libexec/\([^-]*\)-analyzer|\$AbsRealBin/../$RELATIVE_LIBEXEC/\1-analyzer|" \ + %{buildroot}%{_bindir}/scan-build +RELATIVE_LIBEXEC_COMMA=${RELATIVE_LIBEXEC//\//\', \'} +sed -i "s|os.path.join(scanbuild_dir, '..', 'libexec', 'analyze-\([^']*\)')|os.path.join(scanbuild_dir, '..', '$RELATIVE_LIBEXEC_COMMA', 'analyze-\1')|" \ + %{buildroot}%{_prefix}/lib/libscanbuild/analyze.py +%endif + mkdir -p %{buildroot}%{_datadir}/bash-completion/completions mv %{buildroot}%{_datadir}/clang/bash-autocomplete.sh %{buildroot}%{_datadir}/bash-completion/completions/clang