automatic version update by autodist [release 16.0.4-1mamba;Mon May 22 2023]

This commit is contained in:
Automatic Build System 2024-01-06 06:25:26 +01:00
parent 16caf56ba6
commit bfcafdb7df

View File

@ -1,7 +1,7 @@
%define gccver %(gcc -dumpversion) %define gccver %(gcc -dumpversion)
%define majver %(echo %version | cut -d. -f1-2) %define majver %(echo %version | cut -d. -f1-2)
Name: lld Name: lld
Version: 15.0.7 Version: 16.0.4
Release: 1mamba Release: 1mamba
Summary: Linker from the LLVM project Summary: Linker from the LLVM project
Group: Development/Languages Group: Development/Languages
@ -11,7 +11,8 @@ 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}/lld-%{version}.src.tar.xz Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/lld-%{version}.src.tar.xz
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libunwind-%{version}.src.tar.xz Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libunwind-%{version}.src.tar.xz
Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{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}/llvm-%{version}.src.tar.xz
Patch0: lld-9.0.1-sphinx-2.patch Patch0: lld-9.0.1-sphinx-2.patch
Patch1: lld-13.0.0-arm-link-atomic.patch Patch1: lld-13.0.0-arm-link-atomic.patch
License: NCSA License: NCSA
@ -21,6 +22,7 @@ BuildRequires: libgcc
BuildRequires: libllvm-devel BuildRequires: libllvm-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
BuildRequires: libz-devel BuildRequires: libz-devel
BuildRequires: libzstd-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: llvm BuildRequires: llvm
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
@ -55,28 +57,30 @@ This package includes the lib%{name} API documentation.
%debug_package %debug_package
%prep %prep
%setup -q -c -a1 -a2 %setup -q -c -a1 -a2 -a3
#% setup -q -c -D -T #% setup -q -c -D -T
#:<< _EOF #:<< _EOF
mv lld-%{version}.src lld
mv libunwind-%{version}.src libunwind
mv cmake-%{version}.src cmake
mv llvm-%{version}.src llvm
#%ifarch arm #%ifarch arm
#cd %{name}-%{version}.src #cd %{name}-%{version}.src
#%patch1 -p1 #%patch1 -p1
#cd .. #cd ..
#%endif #%endif
mv libunwind-%{version}.src libunwind
%build %build
#:<< _EOF #:<< _EOF
cd %{name}-%{version}.src
mkdir -p build mkdir -p build
cd build cd build
cmake .. -G Ninja \ cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DPYTHON_EXECUTABLE=%{__python3} \
-DLLVM_LINK_LLVM_DYLIB=ON \ -DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_INCLUDE_TESTS=ON \ -DLLVM_INCLUDE_TESTS=ON \
-DLLVM_BUILD_TESTS=ON \ -DLLVM_BUILD_TESTS=ON \
@ -84,14 +88,16 @@ cmake .. -G Ninja \
-DLLVM_ENABLE_SPHINX=ON \ -DLLVM_ENABLE_SPHINX=ON \
-DSPHINX_WARNINGS_AS_ERRORS=OFF \ -DSPHINX_WARNINGS_AS_ERRORS=OFF \
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \ -DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
-DLLVM_MAIN_SRC_DIR="%{_builddir}/%{name}-%{version}/llvm-%{version}.src/" \ -Wno-dev \
-Wno-dev ../lld
# -DLLVM_MAIN_SRC_DIR="%{_builddir}/%{name}-%{version}/llvm-%{version}.src/" \
ninja ninja
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
cd %{name}-%{version}.src/build cd build
export DESTDIR=%{buildroot} export DESTDIR=%{buildroot}
ninja install ninja install
@ -108,7 +114,7 @@ ninja install
%{_bindir}/ld.lld %{_bindir}/ld.lld
%{_bindir}/lld %{_bindir}/lld
%{_bindir}/lld-link %{_bindir}/lld-link
%doc %{name}-%{version}.src/LICENSE.TXT %doc lld/LICENSE.TXT
%files -n lib%{name} %files -n lib%{name}
%defattr(-,root,root) %defattr(-,root,root)
@ -128,6 +134,9 @@ ninja install
%{_docdir}/lld/* %{_docdir}/lld/*
%changelog %changelog
* Mon May 22 2023 Automatic Build System <autodist@mambasoft.it> 16.0.4-1mamba
- automatic version update by autodist
* Thu Jan 12 2023 Automatic Build System <autodist@mambasoft.it> 15.0.7-1mamba * Thu Jan 12 2023 Automatic Build System <autodist@mambasoft.it> 15.0.7-1mamba
- automatic version update by autodist - automatic version update by autodist