automatic version update by autodist [release 16.0.4-1mamba;Mon May 22 2023]
This commit is contained in:
parent
16caf56ba6
commit
bfcafdb7df
33
lld.spec
33
lld.spec
@ -1,7 +1,7 @@
|
||||
%define gccver %(gcc -dumpversion)
|
||||
%define majver %(echo %version | cut -d. -f1-2)
|
||||
Name: lld
|
||||
Version: 15.0.7
|
||||
Version: 16.0.4
|
||||
Release: 1mamba
|
||||
Summary: Linker from the LLVM project
|
||||
Group: Development/Languages
|
||||
@ -11,7 +11,8 @@ Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://llvm.org/
|
||||
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
|
||||
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
|
||||
Patch1: lld-13.0.0-arm-link-atomic.patch
|
||||
License: NCSA
|
||||
@ -21,6 +22,7 @@ BuildRequires: libgcc
|
||||
BuildRequires: libllvm-devel
|
||||
BuildRequires: libstdc++6-devel
|
||||
BuildRequires: libz-devel
|
||||
BuildRequires: libzstd-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: llvm
|
||||
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
@ -55,28 +57,30 @@ This package includes the lib%{name} API documentation.
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q -c -a1 -a2
|
||||
%setup -q -c -a1 -a2 -a3
|
||||
#% setup -q -c -D -T
|
||||
#:<< _EOF
|
||||
|
||||
mv lld-%{version}.src lld
|
||||
mv libunwind-%{version}.src libunwind
|
||||
mv cmake-%{version}.src cmake
|
||||
mv llvm-%{version}.src llvm
|
||||
|
||||
#%ifarch arm
|
||||
#cd %{name}-%{version}.src
|
||||
#%patch1 -p1
|
||||
#cd ..
|
||||
#%endif
|
||||
|
||||
mv libunwind-%{version}.src libunwind
|
||||
|
||||
%build
|
||||
#:<< _EOF
|
||||
cd %{name}-%{version}.src
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake .. -G Ninja \
|
||||
cmake -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DPYTHON_EXECUTABLE=%{__python3} \
|
||||
-DLLVM_LINK_LLVM_DYLIB=ON \
|
||||
-DLLVM_INCLUDE_TESTS=ON \
|
||||
-DLLVM_BUILD_TESTS=ON \
|
||||
@ -84,14 +88,16 @@ cmake .. -G Ninja \
|
||||
-DLLVM_ENABLE_SPHINX=ON \
|
||||
-DSPHINX_WARNINGS_AS_ERRORS=OFF \
|
||||
-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
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
cd %{name}-%{version}.src/build
|
||||
cd build
|
||||
export DESTDIR=%{buildroot}
|
||||
ninja install
|
||||
|
||||
@ -108,7 +114,7 @@ ninja install
|
||||
%{_bindir}/ld.lld
|
||||
%{_bindir}/lld
|
||||
%{_bindir}/lld-link
|
||||
%doc %{name}-%{version}.src/LICENSE.TXT
|
||||
%doc lld/LICENSE.TXT
|
||||
|
||||
%files -n lib%{name}
|
||||
%defattr(-,root,root)
|
||||
@ -128,6 +134,9 @@ ninja install
|
||||
%{_docdir}/lld/*
|
||||
|
||||
%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
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user