|
@@ -8,7 +8,7 @@ Summary: LLVM compiler infrastructure
|
|
|
|
|
|
License: GPLv3+
|
|
|
URL: https://llvm.org
|
|
|
-Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.1/llvm-project-14.0.1.src.tar.xz
|
|
|
+Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.1/llvm-project-%{version}.src.tar.xz
|
|
|
Patch0: llvm-sanitizer-link-libgcc.patch
|
|
|
Patch1: clang-link-libgcc.patch
|
|
|
|
|
@@ -52,6 +52,7 @@ DESTDIR=%{buildroot} ninja install/strip
|
|
|
%files
|
|
|
%{tool_prefix}/bin/*
|
|
|
%exclude %{tool_prefix}/bin/llvm-config
|
|
|
+%{tool_prefix}/lib/llvm/clang/%{version}
|
|
|
%{tool_prefix}/libexec/*
|
|
|
%{tool_prefix}/share/clang
|
|
|
%{tool_prefix}/share/opt-viewer
|
|
@@ -61,7 +62,7 @@ DESTDIR=%{buildroot} ninja install/strip
|
|
|
# package libclang.so for c-index-test
|
|
|
%{tool_prefix}/lib/llvm/libclang.so
|
|
|
%{tool_prefix}/lib/llvm/libclang.so.13
|
|
|
-%{tool_prefix}/lib/llvm/libclang.so.14.0.1
|
|
|
+%{tool_prefix}/lib/llvm/libclang.so.%{version}
|
|
|
|
|
|
%files devel
|
|
|
%{tool_prefix}/bin/llvm-config
|
|
@@ -73,9 +74,10 @@ DESTDIR=%{buildroot} ninja install/strip
|
|
|
%{tool_prefix}/lib/libear
|
|
|
%{tool_prefix}/lib/libscanbuild
|
|
|
%{tool_prefix}/lib/llvm
|
|
|
+%exclude %{tool_prefix}/lib/llvm/clang/%{version}
|
|
|
%exclude %{tool_prefix}/lib/llvm/libclang.so
|
|
|
%exclude %{tool_prefix}/lib/llvm/libclang.so.13
|
|
|
-%exclude %{tool_prefix}/lib/llvm/libclang.so.14.0.1
|
|
|
+%exclude %{tool_prefix}/lib/llvm/libclang.so.%{version}
|
|
|
|
|
|
%changelog
|
|
|
|