Skip to content

Commit 2e22c39

Browse files
nikictbaederr
authored andcommitted
Add python3-lit to big-merge
1 parent fd8973d commit 2e22c39

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

build.spec.inc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:`pwd`/llvm/%{_vpath_builddir}/%{_lib}
3939

4040
cd llvm
4141

42+
#region LLVM lit
43+
pushd utils/lit
44+
%py3_build
45+
popd
46+
#endregion
47+
4248
%if 0%{?rhel} == 8
4349
%undefine __cmake_in_source_build
4450
%endif

check.spec.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ function test_list_to_regex()
6969
}
7070
#endregion
7171

72+
#region Test LLVM lit
73+
reset_test_opts
74+
%cmake_build --target check-lit
75+
#endregion
76+
7277
#region Test LLVM
7378
reset_test_opts
7479
# Xfail testing of update utility tools

files.spec.inc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
#region LLVM lit files
2+
%files -n python3-lit
3+
%license llvm/utils/lit/LICENSE.TXT
4+
%doc llvm/utils/lit/README.rst
5+
%{python3_sitelib}/lit/
6+
%{python3_sitelib}/lit-*-info/
7+
%{_bindir}/lit
8+
#endregion
9+
110
#region LLVM files
211

312
%files -n %{pkg_name_llvm}

install.spec.inc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
#region LLVM installation
22

3-
cd llvm
3+
pushd llvm
4+
5+
pushd utils/lit
6+
%py3_install
7+
8+
# Strip out #!/usr/bin/env python
9+
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.py
10+
popd
411

512
%cmake_install
613

7-
cd -
14+
popd
815

916
mkdir -p %{buildroot}/%{_bindir}
1017

packages.spec.inc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
#region LLVM lit package
2+
%package -n python3-lit
3+
Summary: LLVM lit test runner for Python 3
4+
5+
BuildArch: noarch
6+
Requires: python3-setuptools
7+
Recommends: python3-psutil
8+
9+
%description -n python3-lit
10+
lit is a tool used by the LLVM project for executing its test suites.
11+
#endregion
12+
113
#region LLVM packages
214

315
%package -n %{pkg_name_llvm}-devel

0 commit comments

Comments
 (0)