!3 remove python2 dependencies of package python-lit
From: @wang--ge Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
12ad1eb25e
@ -1,29 +1,20 @@
|
|||||||
%{!?py2_build: %global py2_build %{expand: CFLAGS="%{optflags}" %{__python2} setup.py %{?py_setup_args} build --executable="%{__python2} -s"}}
|
|
||||||
%{!?py2_install: %global py2_install %{expand: CFLAGS="%{optflags}" %{__python2} setup.py %{?py_setup_args} install -O1 --skip-build --root %{buildroot}}}
|
|
||||||
Name: python-lit
|
Name: python-lit
|
||||||
Version: 0.7.0
|
Version: 0.7.0
|
||||||
Release: 3
|
Release: 4
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
License: NCSA
|
License: NCSA
|
||||||
Summary: A tool to execute the llvm test suite
|
Summary: A tool to execute the llvm test suite
|
||||||
URL: https://pypi.python.org/pypi/lit
|
URL: https://pypi.python.org/pypi/lit
|
||||||
Source0: https://files.pythonhosted.org/packages/e5/0c/2f40cd6be5c79e15c5456b2aff6aea2e6196e8c42c0836a4da52d4df8d43/lit-0.7.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/e5/0c/2f40cd6be5c79e15c5456b2aff6aea2e6196e8c42c0836a4da52d4df8d43/lit-0.7.0.tar.gz
|
||||||
BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
python-lit is a tool used by LLVM to execute its test suite.
|
python-lit is a tool used by LLVM to execute its test suite.
|
||||||
|
|
||||||
%package -n python2-lit
|
|
||||||
Summary: LLVM lit test runner for Python 2
|
|
||||||
Requires: python2-setuptools
|
|
||||||
|
|
||||||
%package -n python3-lit
|
%package -n python3-lit
|
||||||
Summary: LLVM lit test runner for Python 3
|
Summary: LLVM lit test runner for Python 3
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
|
|
||||||
%description -n python2-lit
|
|
||||||
python-lit is a tool used by LLVM to execute its test suite.
|
|
||||||
|
|
||||||
%description -n python3-lit
|
%description -n python3-lit
|
||||||
python-lit is a tool used by LLVM to execute its test suite.
|
python-lit is a tool used by LLVM to execute its test suite.
|
||||||
|
|
||||||
@ -31,27 +22,20 @@ python-lit is a tool used by LLVM to execute its test suite.
|
|||||||
%autosetup -n lit-%{version}%{?rc_ver:rc%{rc_ver}} -p1
|
%autosetup -n lit-%{version}%{?rc_ver:rc%{rc_ver}} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python2_sitelib}/lit/*.py
|
|
||||||
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.py
|
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.py
|
||||||
|
|
||||||
%check
|
|
||||||
%{__python2} setup.py test
|
|
||||||
|
|
||||||
%files -n python2-lit
|
|
||||||
%doc README.txt
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
|
|
||||||
%files -n python3-lit
|
%files -n python3-lit
|
||||||
%doc README.txt
|
%doc README.txt
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
%{_bindir}/lit
|
%{_bindir}/lit
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 26 2020 Ge Wang<wangge20@huawei.com> - 0.7.0-4
|
||||||
|
- remove python2
|
||||||
|
|
||||||
* Sat Nov 30 2019 gulining<gulining1@huawei.com> - 0.7.0-3
|
* Sat Nov 30 2019 gulining<gulining1@huawei.com> - 0.7.0-3
|
||||||
- Pakcage init
|
- Pakcage init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user