Add python3-lit to big-merge

This commit is contained in:
Nikita Popov 2024-07-22 12:25:34 +00:00 committed by Timm Bäder
parent fd8973dfc0
commit 2e22c397b6
5 changed files with 41 additions and 2 deletions

View file

@ -39,6 +39,12 @@ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:`pwd`/llvm/%{_vpath_builddir}/%{_lib}
cd llvm
#region LLVM lit
pushd utils/lit
%py3_build
popd
#endregion
%if 0%{?rhel} == 8
%undefine __cmake_in_source_build
%endif

View file

@ -69,6 +69,11 @@ function test_list_to_regex()
}
#endregion
#region Test LLVM lit
reset_test_opts
%cmake_build --target check-lit
#endregion
#region Test LLVM
reset_test_opts
# Xfail testing of update utility tools

View file

@ -1,3 +1,12 @@
#region LLVM lit files
%files -n python3-lit
%license llvm/utils/lit/LICENSE.TXT
%doc llvm/utils/lit/README.rst
%{python3_sitelib}/lit/
%{python3_sitelib}/lit-*-info/
%{_bindir}/lit
#endregion
#region LLVM files
%files -n %{pkg_name_llvm}

View file

@ -1,10 +1,17 @@
#region LLVM installation
cd llvm
pushd llvm
pushd utils/lit
%py3_install
# Strip out #!/usr/bin/env python
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.py
popd
%cmake_install
cd -
popd
mkdir -p %{buildroot}/%{_bindir}

View file

@ -1,3 +1,15 @@
#region LLVM lit package
%package -n python3-lit
Summary: LLVM lit test runner for Python 3
BuildArch: noarch
Requires: python3-setuptools
Recommends: python3-psutil
%description -n python3-lit
lit is a tool used by the LLVM project for executing its test suites.
#endregion
#region LLVM packages
%package -n %{pkg_name_llvm}-devel