c89b2b03b0
This should fix this error: ``` Jul 01 12:48:27 FAILED: tools/lldb/docs/CMakeFiles/docs-lldb-html /home/fedora/src/llvm-rpms/llvm-big-merge/BUILD/llvm-project-e19ac0dcfd7357161210f157ed0559836e88155f/llvm/redhat-linux-build/tools/lldb/docs/CMakeFiles/docs-lldb-html Jul 01 12:48:27 cd /home/fedora/src/llvm-rpms/llvm-big-merge/BUILD/llvm-project-e19ac0dcfd7357161210f157ed0559836e88155f/llvm/redhat-linux-build/tools/lldb/docs && /usr/bin/cmake -E env LLDB_SWIG_MODULE=/home/fedora/src/llvm-rpms/llvm-big-merge/BUILD/llvm-project-e19ac0dcfd7357161210f157ed0559836e88155f/llvm/redhat-linux-build/tools/lldb/docs /usr/bin/sphinx-build-3 -b html -d /home/fedora/src/llvm-rpms/llvm-big-merge/BUILD/llvm-project-e19ac0dcfd7357161210f157ed0559836e88155f/llvm/redhat-linux-build/tools/lldb/docs/_doctrees-lldb-html -q -t builder-html -D version=19 -D release=mainline /home/fedora/src/llvm-rpms/llvm-big-merge/BUILD/llvm-project-e19ac0dcfd7357161210f157ed0559836e88155f/lldb/docs /home/fedora/src/llvm-rpms/llvm-big-merge/BUILD/llvm-project-e19ac0dcfd7357161210f157ed0559836e88155f/llvm/redhat-linux-build/tools/lldb/docs/html Jul 01 12:48:27 Jul 01 12:48:27 Extension error: Jul 01 12:48:27 Could not import extension sphinx_automodapi.automodapi (exception: No module named 'sphinx_automodapi') Jul 01 12:48:27 install sphinx_automodapi with /usr/bin/python3 -m pip install sphinx_automodapi Jul 01 12:48:27 install sphinx furo theme with /usr/bin/python3 -m pip install furo ``` the two python modules are not in fedroa unfortunately.
64 lines
1.6 KiB
PHP
64 lines
1.6 KiB
PHP
%if %{without snapshot_build}
|
|
# llvm
|
|
%{gpgverify} --keyring='%{SOURCE1006}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
%endif
|
|
|
|
# -T : Do Not Perform Default Archive Unpacking (without this, the <n>th source would be unpacked twice)
|
|
# -b <n> : Unpack The nth Sources Before Changing Directory
|
|
# -n : Set Name of Build Directory
|
|
#
|
|
# see http://ftp.rpm.org/max-rpm/s1-rpm-inside-macros.html
|
|
%autosetup -N -T -b 0 -n %{src_tarball_dir}
|
|
|
|
# Apply all patches with number <= 9000
|
|
# See https://rpm-software-management.github.io/rpm/manual/autosetup.html
|
|
%autopatch -M9000 -p1
|
|
|
|
%if %{defined rhel}
|
|
%patch -p1 -P9002
|
|
%endif
|
|
|
|
#region LLVM preparation
|
|
|
|
%py3_shebang_fix \
|
|
llvm/test/BugPoint/compile-custom.ll.py \
|
|
llvm/tools/opt-viewer/*.py \
|
|
llvm/utils/update_cc_test_checks.py
|
|
|
|
#endregion
|
|
|
|
#region CLANG preparation
|
|
|
|
%if %{without compat_build}
|
|
|
|
%py3_shebang_fix \
|
|
clang-tools-extra/clang-tidy/tool/ \
|
|
clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
|
|
|
%py3_shebang_fix \
|
|
clang/tools/clang-format/ \
|
|
clang/tools/clang-format/git-clang-format \
|
|
clang/utils/hmaptool/hmaptool \
|
|
clang/tools/scan-view/bin/scan-view \
|
|
clang/tools/scan-view/share/Reporter.py \
|
|
clang/tools/scan-view/share/startfile.py \
|
|
clang/tools/scan-build-py/bin/* \
|
|
clang/tools/scan-build-py/libexec/*
|
|
|
|
%endif
|
|
|
|
#endregion
|
|
|
|
#region COMPILER-RT preparation
|
|
|
|
%if %{without compat_build}
|
|
%py3_shebang_fix compiler-rt/lib/hwasan/scripts/hwasan_symbolize
|
|
%endif
|
|
|
|
#endregion
|
|
|
|
#region LLDB preparation
|
|
# Empty lldb/docs/CMakeLists.txt because we cannot build it
|
|
echo "" > lldb/docs/CMakeLists.txt
|
|
#endregion
|