- Remove *-devel packages from baselibs, they don't seem to be
needed. We mostly need libLLVM and maybe libclang-cpp. - Add more conflicts/requirements to satisfy installcheck. - Fix paths in clang-tools. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm13?expand=0&rev=18
This commit is contained in:
parent
873759c6e8
commit
b2e7998d08
@ -1,8 +1,2 @@
|
|||||||
libLLVM13
|
libLLVM13
|
||||||
libclang-cpp13
|
libclang-cpp13
|
||||||
llvm13-devel
|
|
||||||
provides "llvm-devel-<targettype> = <version>"
|
|
||||||
conflicts "otherproviders(llvm-devel-<targettype>)"
|
|
||||||
clang13-devel
|
|
||||||
provides "clang-devel-<targettype> = <version>"
|
|
||||||
conflicts "otherproviders(clang-devel-<targettype>)"
|
|
||||||
|
@ -23,7 +23,8 @@ Sun Apr 3 13:42:27 UTC 2022 - Aaron Puchert <aaronpuchert@alice-dsl.net>
|
|||||||
- Merge llvm-LTO-devel into llvm-devel. That's where the header
|
- Merge llvm-LTO-devel into llvm-devel. That's where the header
|
||||||
files already are, and they are hard to separate.
|
files already are, and they are hard to separate.
|
||||||
- Let llvm-polly-devel depend on llvm-devel.
|
- 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.
|
- Only suggest documentation packages.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
18
llvm13.spec
18
llvm13.spec
@ -214,6 +214,9 @@ Conflicts: llvm5
|
|||||||
Conflicts: llvm7
|
Conflicts: llvm7
|
||||||
%endif
|
%endif
|
||||||
Conflicts: cmake(LLVM)
|
Conflicts: cmake(LLVM)
|
||||||
|
# libLTO.so used to be a separate package.
|
||||||
|
Conflicts: libLTO.so < %{version}
|
||||||
|
Provides: libLTO.so = %{version}
|
||||||
Obsoletes: llvm%{_sonum}-LTO-devel <= %{version}
|
Obsoletes: llvm%{_sonum}-LTO-devel <= %{version}
|
||||||
Provides: llvm%{_sonum}-LTO-devel = %{version}
|
Provides: llvm%{_sonum}-LTO-devel = %{version}
|
||||||
Provides: llvm-devel-provider = %{version}
|
Provides: llvm-devel-provider = %{version}
|
||||||
@ -378,6 +381,7 @@ Summary: C++ standard library implementation
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
URL: https://libcxx.llvm.org/
|
URL: https://libcxx.llvm.org/
|
||||||
Requires: libc++abi%{_socxx} = %{version}
|
Requires: libc++abi%{_socxx} = %{version}
|
||||||
|
Conflicts: libc++%{_socxx} < %{version}
|
||||||
Provides: libc++%{_socxx} = %{version}
|
Provides: libc++%{_socxx} = %{version}
|
||||||
|
|
||||||
%description %{multisource libcxx%{_socxx}} libc++%{_socxx}
|
%description %{multisource libcxx%{_socxx}} libc++%{_socxx}
|
||||||
@ -388,7 +392,7 @@ standard library, targeting C++11.
|
|||||||
Summary: C++ standard library implementation (devel package)
|
Summary: C++ standard library implementation (devel package)
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libc++%{_socxx} >= %{version}
|
Requires: libc++%{_socxx} >= %{version}
|
||||||
Requires: libc++abi-devel = %{version}
|
Requires: libc++abi.so >= %{version}
|
||||||
Conflicts: libc++.so < %{version}
|
Conflicts: libc++.so < %{version}
|
||||||
Provides: libc++.so = %{version}
|
Provides: libc++.so = %{version}
|
||||||
|
|
||||||
@ -400,6 +404,7 @@ standard library, targeting C++11. (development files)
|
|||||||
Summary: C++ standard library ABI
|
Summary: C++ standard library ABI
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
URL: https://libcxxabi.llvm.org/
|
URL: https://libcxxabi.llvm.org/
|
||||||
|
Conflicts: libc++abi%{_socxx} < %{version}
|
||||||
Provides: libc++abi%{_socxx} = %{version}
|
Provides: libc++abi%{_socxx} = %{version}
|
||||||
|
|
||||||
%description %{multisource libcxxabi%{_socxx}} libc++abi%{_socxx}
|
%description %{multisource libcxxabi%{_socxx}} libc++abi%{_socxx}
|
||||||
@ -937,6 +942,17 @@ 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/clang-tidy-diff.py %{buildroot}%{_bindir}/clang-tidy-diff
|
||||||
mv %{buildroot}%{_datadir}/clang/run-find-all-symbols.py %{buildroot}%{_bindir}/run-find-all-symbols
|
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_fallback}/intercept-\2'|" \
|
||||||
|
%{buildroot}%{_prefix}/lib/libscanbuild/intercept.py
|
||||||
|
%if "%{_libexecdir}" != "%{_prefix}/libexec"
|
||||||
|
LIBEXEC=%{_libexecdir_fallback}
|
||||||
|
RELATIVE_LIBEXEC=${LIBEXEC#%{_prefix}/}
|
||||||
|
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
|
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
|
||||||
mv %{buildroot}%{_datadir}/clang/bash-autocomplete.sh %{buildroot}%{_datadir}/bash-completion/completions/clang
|
mv %{buildroot}%{_datadir}/clang/bash-autocomplete.sh %{buildroot}%{_datadir}/bash-completion/completions/clang
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user