import python-lit-0.8.0-1.module+el8.1.0+3173+f36a2e38
This commit is contained in:
parent
acb703fb03
commit
d644bb5a19
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/lit-0.7.1.tar.gz
|
||||
SOURCES/lit-0.8.0.tar.gz
|
||||
|
@ -1 +1 @@
|
||||
4512b40aaf23892e0280e93db1de366986c17629 SOURCES/lit-0.7.1.tar.gz
|
||||
c92163198945408c8a4109f7c8074e17d7e58274 SOURCES/lit-0.8.0.tar.gz
|
||||
|
@ -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 <tstellar@redhat.com> - 0.7.1-1
|
||||
- 0.7.1 Release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user