|
|
|
@ -2,8 +2,8 @@
|
|
|
|
|
%define MAJver %(echo %version | cut -d. -f1)
|
|
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
|
|
|
|
Name: clang
|
|
|
|
|
Version: 17.0.3
|
|
|
|
|
Release: 1mamba
|
|
|
|
|
Version: 19.1.7
|
|
|
|
|
Release: 2mamba
|
|
|
|
|
Summary: C language family frontend for LLVM
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
Vendor: openmamba
|
|
|
|
@ -14,8 +14,6 @@ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{
|
|
|
|
|
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
|
|
|
|
|
Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/cmake-%{version}.src.tar.xz
|
|
|
|
|
Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/third-party-%{version}.src.tar.xz
|
|
|
|
|
Patch0: clang-16.0.4-arm-add-latomic.patch
|
|
|
|
|
Patch1: clang-15.0.6-arm-add-latomic.patch
|
|
|
|
|
License: NCSA
|
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
@ -28,7 +26,8 @@ BuildRequires: perl-devel
|
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
BuildRequires: llvm = %{version}
|
|
|
|
|
BuildRequires: llvm >= 14.0.3-3mamba
|
|
|
|
|
BuildRequires: python-recommonmark-py310
|
|
|
|
|
BuildRequires: python-recommonmark-py3
|
|
|
|
|
BuildRequires: python-myst_parser-py3
|
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -68,7 +67,8 @@ Requires: gtk-doc
|
|
|
|
|
%description -n lib%{name}-apidocs
|
|
|
|
|
This package includes the lib%{name} API documentation.
|
|
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
## Don't clean build at the end
|
|
|
|
|
#% global __spec_rmbuild_cmd /bin/true
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -c -a0 -a1 -a2 -a3
|
|
|
|
@ -79,13 +79,6 @@ mv clang-tools-extra-%{version}.src clang-tools-extra
|
|
|
|
|
mv cmake-%{version}.src cmake
|
|
|
|
|
mv third-party-%{version}.src third-party
|
|
|
|
|
|
|
|
|
|
%ifarch arm
|
|
|
|
|
%patch 0 -p1
|
|
|
|
|
cd clang
|
|
|
|
|
%patch 1 -p1
|
|
|
|
|
cd ..
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
#:<< __EOF
|
|
|
|
|
mkdir -p build
|
|
|
|
@ -94,7 +87,6 @@ cd build
|
|
|
|
|
cmake .. -G Ninja \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
|
-DLLVM_LINK_LLVM_DYLIB=ON \
|
|
|
|
|
-DCLANG_LINK_CLANG_DYLIB=ON \
|
|
|
|
|
-DCLANG_DEFAULT_CXX_STDLIB=libstdc++ \
|
|
|
|
@ -102,6 +94,7 @@ cmake .. -G Ninja \
|
|
|
|
|
-DLLVM_ENABLE_RTTI=ON \
|
|
|
|
|
%endif
|
|
|
|
|
-DLLVM_INCLUDE_DOCS=ON \
|
|
|
|
|
-DLLVM_LINK_LLVM_DYLIB=ON \
|
|
|
|
|
-DLLVM_INCLUDE_TESTS=OFF \
|
|
|
|
|
-DLLVM_BUILD_DOCS=ON \
|
|
|
|
|
-DLLVM_ENABLE_SPHINX=ON \
|
|
|
|
@ -119,18 +112,18 @@ ninja %{_smp_mflags}
|
|
|
|
|
cd build
|
|
|
|
|
export DESTDIR=%{buildroot}
|
|
|
|
|
ninja install
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
# Move scanbuild-py into site-packages and install Python bindings
|
|
|
|
|
install -d %{buildroot}%{python3_sitearch}
|
|
|
|
|
mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitearch}/
|
|
|
|
|
cp -a clang/bindings/python/clang %{buildroot}%{python3_sitearch}/
|
|
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
|
|
|
|
|
|
|
|
|
|
## legacy libclang.so.11 symlink to libclang.so.11.1
|
|
|
|
|
#ln -s libclang.so.%{majver} %{buildroot}%{_libdir}/libclang.so.%{MAJver}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/analyze-build
|
|
|
|
@ -140,24 +133,21 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
|
|
|
|
|
%{_bindir}/clang
|
|
|
|
|
%{_bindir}/clang++
|
|
|
|
|
%{_bindir}/clang-*
|
|
|
|
|
#%{_bindir}/clangd
|
|
|
|
|
%{_bindir}/diagtool
|
|
|
|
|
#%{_bindir}/find-all-symbols
|
|
|
|
|
%{_bindir}/git-clang-format
|
|
|
|
|
%{_bindir}/hmaptool
|
|
|
|
|
%{_bindir}/intercept-build
|
|
|
|
|
#%{_bindir}/modularize
|
|
|
|
|
#%{_bindir}/pp-trace
|
|
|
|
|
#%{_bindir}/run-clang-tidy
|
|
|
|
|
%{_bindir}/scan-build
|
|
|
|
|
%{_bindir}/scan-build-py
|
|
|
|
|
%{_bindir}/scan-view
|
|
|
|
|
#%dir %{_prefix}/lib/libear
|
|
|
|
|
#%{_prefix}/lib/libear/*
|
|
|
|
|
#%dir %{_prefix}/lib/libscanbuild
|
|
|
|
|
#%{_prefix}/lib/libscanbuild/*
|
|
|
|
|
# FIXME: should be libexec64 on 64 bits archs
|
|
|
|
|
%{_prefix}/libexec/*
|
|
|
|
|
%dir %{python3_sitearch}/clang
|
|
|
|
|
%{python3_sitearch}/clang/*
|
|
|
|
|
%dir %{python3_sitearch}/libear
|
|
|
|
|
%{python3_sitearch}/libear/*
|
|
|
|
|
%dir %{python3_sitearch}/libscanbuild
|
|
|
|
|
%{python3_sitearch}/libscanbuild/*
|
|
|
|
|
%dir %{_datadir}/clang/
|
|
|
|
|
%{_datadir}/clang/*
|
|
|
|
|
%dir %{_datadir}/scan-build
|
|
|
|
@ -166,17 +156,11 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
|
|
|
|
|
%{_datadir}/scan-view/*
|
|
|
|
|
%{_mandir}/man1/clang.1*
|
|
|
|
|
%{_mandir}/man1/diagtool.1*
|
|
|
|
|
#%{_mandir}/man1/extraclangtools.1*
|
|
|
|
|
%{_mandir}/man1/scan-build.1*
|
|
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/libclang*.so.*
|
|
|
|
|
%dir %{_libdir}/libear
|
|
|
|
|
%{_libdir}/libear/*
|
|
|
|
|
%dir %{_libdir}/libscanbuild
|
|
|
|
|
%{_libdir}/libscanbuild/*
|
|
|
|
|
#%{_libdir}/libfindAllSymbols.so.*
|
|
|
|
|
%doc clang/LICENSE.TXT
|
|
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
@ -185,10 +169,8 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
|
|
|
|
|
%{_includedir}/clang-c/*.h
|
|
|
|
|
%dir %{_includedir}/clang
|
|
|
|
|
%{_includedir}/clang/*
|
|
|
|
|
#%dir %{_includedir}/clang-tidy
|
|
|
|
|
#%{_includedir}/clang-tidy/*
|
|
|
|
|
%{_libdir}/libclang*.a
|
|
|
|
|
%{_libdir}/libclang*.so
|
|
|
|
|
#%{_libdir}/libfindAllSymbols.so
|
|
|
|
|
%dir %{_libdir}/clang
|
|
|
|
|
%dir %{_libdir}/clang/*
|
|
|
|
|
%dir %{_libdir}/clang/*/include
|
|
|
|
@ -204,12 +186,72 @@ rm -f %{buildroot}%{_datadir}/doc/clang/html/.buildinfo
|
|
|
|
|
%dir %{_docdir}/Clang/clang/html
|
|
|
|
|
%{_datadir}/doc/Clang/clang/html/*
|
|
|
|
|
%{_datadir}/doc/Clang/clang/html/.buildinfo
|
|
|
|
|
#%dir %{_docdir}/Clang/clang-tools
|
|
|
|
|
#%dir %{_docdir}/Clang/clang-tools/html
|
|
|
|
|
#%{_datadir}/doc/Clang/clang-tools/html/*
|
|
|
|
|
#%{_datadir}/doc/Clang/clang-tools/html/.buildinfo
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Jan 25 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 19.1.7-2mamba
|
|
|
|
|
- fix python bindings by installing in %python3_sitearch
|
|
|
|
|
|
|
|
|
|
* Wed Jan 15 2025 Automatic Build System <autodist@openmamba.org> 19.1.7-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Wed Dec 18 2024 Automatic Build System <autodist@openmamba.org> 19.1.6-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Wed Dec 04 2024 Automatic Build System <autodist@openmamba.org> 19.1.5-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Wed Nov 20 2024 Automatic Build System <autodist@openmamba.org> 19.1.4-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Fri Nov 01 2024 Automatic Build System <autodist@openmamba.org> 19.1.3-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Wed Oct 16 2024 Automatic Build System <autodist@openmamba.org> 19.1.2-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Sat Oct 05 2024 Automatic Build System <autodist@openmamba.org> 19.1.1-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Sun Sep 22 2024 Automatic Build System <autodist@openmamba.org> 19.1.0-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Tue Jun 25 2024 Automatic Build System <autodist@openmamba.org> 18.1.8-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Sat Jun 08 2024 Automatic Build System <autodist@openmamba.org> 18.1.7-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Mon May 20 2024 Automatic Build System <autodist@openmamba.org> 18.1.6-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Mon May 06 2024 Automatic Build System <autodist@openmamba.org> 18.1.5-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Fri Apr 19 2024 Automatic Build System <autodist@openmamba.org> 18.1.4-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Fri Apr 12 2024 Automatic Build System <autodist@openmamba.org> 18.1.3-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Thu Mar 21 2024 Automatic Build System <autodist@openmamba.org> 18.1.2-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Thu Mar 14 2024 Automatic Build System <autodist@openmamba.org> 18.1.1-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Thu Jan 18 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 17.0.6-2mamba
|
|
|
|
|
- removed BUILD_SHARED_LIBS=ON see https://github.com/llvm/llvm-project/issues/46461
|
|
|
|
|
- added -DLLVM_LINK_LLVM_DYLIB=ON
|
|
|
|
|
|
|
|
|
|
* Sat Dec 02 2023 Automatic Build System <autodist@mambasoft.it> 17.0.6-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Wed Nov 15 2023 Automatic Build System <autodist@mambasoft.it> 17.0.5-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Fri Nov 03 2023 Automatic Build System <autodist@mambasoft.it> 17.0.4-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|
* Fri Oct 20 2023 Automatic Build System <autodist@mambasoft.it> 17.0.3-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
|
|