From d644bb5a1965c4ed2db907b93610ca5b34ca761c Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 5 Nov 2019 14:42:42 -0500 Subject: [PATCH] import python-lit-0.8.0-1.module+el8.1.0+3173+f36a2e38 --- .gitignore | 2 +- .python-lit.metadata | 2 +- SPECS/python-lit.spec | 41 ++++++++++------------------------------- 3 files changed, 12 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index c5881a4..34bc425 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/lit-0.7.1.tar.gz +SOURCES/lit-0.8.0.tar.gz diff --git a/.python-lit.metadata b/.python-lit.metadata index dfb6217..cb900d3 100644 --- a/.python-lit.metadata +++ b/.python-lit.metadata @@ -1 +1 @@ -4512b40aaf23892e0280e93db1de366986c17629 SOURCES/lit-0.7.1.tar.gz +c92163198945408c8a4109f7c8074e17d7e58274 SOURCES/lit-0.8.0.tar.gz diff --git a/SPECS/python-lit.spec b/SPECS/python-lit.spec index 59dfc14..d74678a 100644 --- a/SPECS/python-lit.spec +++ b/SPECS/python-lit.spec @@ -1,15 +1,7 @@ %global srcname lit -%if 0%{?fedora} -%global with_python3 1 -%endif - -%if 0%{?rhel} >= 8 -%global with_python3 1 -%endif - Name: python-%{srcname} -Version: 0.7.1 +Version: 0.8.0 Release: 1%{?dist} BuildArch: noarch @@ -17,60 +9,47 @@ License: NCSA Group: Development/Languages Summary: Tool for executing llvm test suites URL: https://pypi.python.org/pypi/lit -Source0: https://files.pythonhosted.org/packages/ee/19/89553646a07f35c49f9540f519c8d9543e8799736276756d203c697c0a13/lit-0.7.1.tar.gz +Source0: https://files.pythonhosted.org/packages/ba/da/c4b2b6ab24c840169e090d6e8f4c1bfa1e8a6b9d0ef3f8ed57ee9f72a317/lit-0.8.0.tar.gz BuildRequires: python3-setuptools -%if 0%{?with_python3} BuildRequires: python3-devel -%endif %description lit is a tool used by the LLVM project for executing its test suites. -%if 0%{?with_python3} %package -n python3-lit Summary: LLVM lit test runner for Python 3 -Group: Development/Languages -Requires: platform-python-setuptools -%endif -%if 0%{?with_python3} +Requires: python3-setuptools + %description -n python3-lit lit is a tool used by the LLVM project for executing its test suites. -%endif %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version}%{?rc_ver:rc%{rc_ver}} %build -%if 0%{?with_python3} %py3_build -%endif %install -%if 0%{?with_python3} -%py3_install "--prefix" "%{_prefix}" -%endif +%py3_install # Strip out #!/usr/bin/env python -%if 0%{?with_python3} sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/%{srcname}/*.py -%endif %check -%if 0%{?with_python3} # FIXME: Tests fail with python3 -#{__python3} setup.py test -%endif +#%{__python3} setup.py test -%if 0%{?with_python3} %files -n python3-%{srcname} %doc README.txt %{python3_sitelib}/* %{_bindir}/lit -%endif %changelog +* Wed Apr 17 2019 sguelton@redhat.com - 0.8.0-1 +- 0.8.0 Release + * Fri Dec 14 2018 Tom Stellard - 0.7.1-1 - 0.7.1 Release