update to 13.0.0 [release 13.0.0-1mamba;Fri Oct 22 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 21:24:32 +01:00
parent e29ae290a9
commit 8ad2246b2c
2 changed files with 40 additions and 23 deletions

View File

@ -0,0 +1,10 @@
--- clang-13.0.0.src/tools/extra/clangd/CMakeLists.txt.orig 2021-11-02 16:57:53.561981660 +0100
+++ clang-13.0.0.src/tools/extra/clangd/CMakeLists.txt 2021-11-02 16:58:11.225804323 +0100
@@ -168,6 +168,7 @@
clangTidy
clangdSupport
+ atomic
)
if(CLANGD_TIDY_CHECKS)
target_link_libraries(clangDaemon PRIVATE ${ALL_CLANG_TIDY_CHECKS})

View File

@ -2,8 +2,8 @@
%define MAJver %(echo %version | cut -d. -f1) %define MAJver %(echo %version | cut -d. -f1)
%define majver %(echo %version | cut -d. -f1-2) %define majver %(echo %version | cut -d. -f1-2)
Name: clang Name: clang
Version: 11.1.0 Version: 13.0.0
Release: 3mamba Release: 1mamba
Summary: C language family frontend for LLVM Summary: C language family frontend for LLVM
Group: Development/Languages Group: Development/Languages
Vendor: openmamba Vendor: openmamba
@ -12,6 +12,7 @@ Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://llvm.org/ URL: https://llvm.org/
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
Patch0: clang-13.0.0-arm-add-latomic.patch
License: NCSA License: NCSA
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
@ -66,21 +67,22 @@ This package includes the lib%{name} API documentation.
%prep %prep
%setup -q -a1 -n %{name}-%{version}.src %setup -q -a1 -n %{name}-%{version}.src
#% setup -q -n %{name}-%{version}.src #% setup -q -n %{name}-%{version}.src -D -T
#-D -T
#:<< _EOF #:<< _EOF
mv clang-tools-extra-%{version}.src tools/extra mv clang-tools-extra-%{version}.src tools/extra
%ifarch arm
%patch0 -p1
%endif
%build %build
#:<< __EOF #:<< __EOF
mkdir -p build mkdir -p build
cd build cd build
cmake .. -G Ninja \ cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DPYTHON_EXECUTABLE=/usr/bin/python \ -DPYTHON_EXECUTABLE=/usr/bin/python \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \ -DLLVM_LINK_LLVM_DYLIB=ON \
@ -95,7 +97,7 @@ cmake .. -G Ninja \
-DSPHINX_WARNINGS_AS_ERRORS=OFF -DSPHINX_WARNINGS_AS_ERRORS=OFF
#-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src" #-DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src"
:<< __EOF
ninja %{_smp_mflags} ninja %{_smp_mflags}
%install %install
@ -107,22 +109,18 @@ ninja install
rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
# legacy libclang.so.11 symlink to libclang.so.11.1 ## legacy libclang.so.11 symlink to libclang.so.11.1
ln -s libclang.so.%{majver} %{buildroot}%{_libdir}/libclang.so.%{MAJver} #ln -s libclang.so.%{majver} %{buildroot}%{_libdir}/libclang.so.%{MAJver}
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post %post -n lib%{name} -p /sbin/ldconfig
/sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig
:
%postun
/sbin/ldconfig
:
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/analyze-build
%{_bindir}/c-index-test %{_bindir}/c-index-test
%{_bindir}/clang %{_bindir}/clang
%{_bindir}/clang++ %{_bindir}/clang++
@ -132,15 +130,19 @@ ln -s libclang.so.%{majver} %{buildroot}%{_libdir}/libclang.so.%{MAJver}
%{_bindir}/find-all-symbols %{_bindir}/find-all-symbols
%{_bindir}/git-clang-format %{_bindir}/git-clang-format
%{_bindir}/hmaptool %{_bindir}/hmaptool
%{_bindir}/intercept-build
%{_bindir}/modularize %{_bindir}/modularize
%{_bindir}/pp-trace %{_bindir}/pp-trace
%{_bindir}/run-clang-tidy
%{_bindir}/scan-build %{_bindir}/scan-build
%{_bindir}/scan-build-py
%{_bindir}/scan-view %{_bindir}/scan-view
%{_prefix}/libexec/c++-analyzer %dir %{_prefix}/lib/libear
%{_prefix}/libexec/ccc-analyzer %{_prefix}/lib/libear/*
%dir %{_libdir}/clang %dir %{_prefix}/lib/libscanbuild
#%dir %{_libdir}/clang/%{version} %{_prefix}/lib/libscanbuild/*
#%{_libdir}/clang/%{version}/* # FIXME: should be libexec64 on 64 bits archs
%{_prefix}/libexec/*
%dir %{_datadir}/clang/ %dir %{_datadir}/clang/
%{_datadir}/clang/* %{_datadir}/clang/*
%dir %{_datadir}/scan-build %dir %{_datadir}/scan-build
@ -151,12 +153,12 @@ ln -s libclang.so.%{majver} %{buildroot}%{_libdir}/libclang.so.%{MAJver}
%{_mandir}/man1/diagtool.1* %{_mandir}/man1/diagtool.1*
%{_mandir}/man1/extraclangtools.1* %{_mandir}/man1/extraclangtools.1*
%{_mandir}/man1/scan-build.1* %{_mandir}/man1/scan-build.1*
%doc LICENSE.TXT
%files -n lib%{name} %files -n lib%{name}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libclang*.so.* %{_libdir}/libclang*.so.*
%{_libdir}/libfindAllSymbols.so.* %{_libdir}/libfindAllSymbols.so.*
%doc LICENSE.TXT
%files -n lib%{name}-devel %files -n lib%{name}-devel
%defattr(-,root,root) %defattr(-,root,root)
@ -168,6 +170,8 @@ ln -s libclang.so.%{majver} %{buildroot}%{_libdir}/libclang.so.%{MAJver}
%{_includedir}/clang-tidy/* %{_includedir}/clang-tidy/*
%{_libdir}/libclang*.so %{_libdir}/libclang*.so
%{_libdir}/libfindAllSymbols.so %{_libdir}/libfindAllSymbols.so
%dir %{_libdir}/clang
%dir %{_libdir}/clang/%{version}
%dir %{_libdir}/clang/%{version}/include %dir %{_libdir}/clang/%{version}/include
%{_libdir}/clang/%{version}/include/* %{_libdir}/clang/%{version}/include/*
%dir %{_libdir}/cmake/clang %dir %{_libdir}/cmake/clang
@ -182,6 +186,9 @@ ln -s libclang.so.%{majver} %{buildroot}%{_libdir}/libclang.so.%{MAJver}
%{_docdir}/clang-tools/* %{_docdir}/clang-tools/*
%changelog %changelog
* Fri Oct 22 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 13.0.0-1mamba
- update to 13.0.0
* Mon May 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 11.1.0-3mamba * Mon May 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 11.1.0-3mamba
- rebuilt with -DCLANG_LINK_CLANG_DYLIB=ON - rebuilt with -DCLANG_LINK_CLANG_DYLIB=ON