mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-28 10:35:42 +00:00
Add python3-lit to big-merge
This commit is contained in:
parent
90a16211f1
commit
22b081016d
5 changed files with 41 additions and 2 deletions
|
@ -39,6 +39,12 @@ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:`pwd`/llvm/%{_vpath_builddir}/%{_lib}
|
||||||
|
|
||||||
cd llvm
|
cd llvm
|
||||||
|
|
||||||
|
#region LLVM lit
|
||||||
|
pushd utils/lit
|
||||||
|
%py3_build
|
||||||
|
popd
|
||||||
|
#endregion
|
||||||
|
|
||||||
%if 0%{?rhel} == 8
|
%if 0%{?rhel} == 8
|
||||||
%undefine __cmake_in_source_build
|
%undefine __cmake_in_source_build
|
||||||
%endif
|
%endif
|
||||||
|
|
|
@ -69,6 +69,11 @@ function test_list_to_regex()
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Test LLVM lit
|
||||||
|
reset_test_opts
|
||||||
|
%cmake_build --target check-lit
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Test LLVM
|
#region Test LLVM
|
||||||
reset_test_opts
|
reset_test_opts
|
||||||
# Xfail testing of update utility tools
|
# Xfail testing of update utility tools
|
||||||
|
|
|
@ -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
|
#region LLVM files
|
||||||
|
|
||||||
%files -n %{pkg_name_llvm}
|
%files -n %{pkg_name_llvm}
|
||||||
|
|
|
@ -1,10 +1,17 @@
|
||||||
#region LLVM installation
|
#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
|
%cmake_install
|
||||||
|
|
||||||
cd -
|
popd
|
||||||
|
|
||||||
mkdir -p %{buildroot}/%{_bindir}
|
mkdir -p %{buildroot}/%{_bindir}
|
||||||
|
|
||||||
|
|
|
@ -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
|
#region LLVM packages
|
||||||
|
|
||||||
%package -n %{pkg_name_llvm}-devel
|
%package -n %{pkg_name_llvm}-devel
|
||||||
|
|
Loading…
Reference in a new issue