2019-12-17 14:56:17 +08:00
|
|
|
%bcond_with bootstrap
|
2019-12-04 16:52:50 +08:00
|
|
|
Name: python-wheel
|
2021-02-03 10:27:17 +08:00
|
|
|
Version: 0.36.2
|
|
|
|
|
Release: 1
|
2019-12-04 16:52:50 +08:00
|
|
|
Epoch: 1
|
|
|
|
|
Summary: Built-package format for Python
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/pypa/wheel
|
|
|
|
|
Source0: %{url}/archive/%{version}/wheel-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2020-07-28 16:03:56 +08:00
|
|
|
%description
|
2019-12-04 16:52:50 +08:00
|
|
|
A built-package format for Python.
|
|
|
|
|
A wheel is a ZIP-format archive with a specially formatted filename and the
|
|
|
|
|
.whl extension. It is designed to contain all the files for a PEP 376
|
|
|
|
|
compatible install in a way that is very close to the on-disk format.
|
|
|
|
|
|
|
|
|
|
%package -n python3-wheel
|
|
|
|
|
Summary: Built-package format for Python
|
2020-08-20 20:15:16 +08:00
|
|
|
BuildRequires: python3-devel python3-setuptools
|
|
|
|
|
%if %{without bootstrap}
|
2019-12-04 16:52:50 +08:00
|
|
|
BuildRequires: python3-pytest python3-pyxdg python3-keyring
|
|
|
|
|
%endif
|
|
|
|
|
%{?python_provide:%python_provide python3-wheel}
|
|
|
|
|
|
|
|
|
|
%description -n python3-wheel
|
|
|
|
|
A built-package format for Python.
|
|
|
|
|
A wheel is a ZIP-format archive with a specially formatted filename and the
|
|
|
|
|
.whl extension. It is designed to contain all the files for a PEP 376
|
|
|
|
|
compatible install in a way that is very close to the on-disk format.
|
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%package wheel
|
|
|
|
|
Summary: The Python wheel module packaged as a wheel
|
|
|
|
|
|
|
|
|
|
%description wheel
|
|
|
|
|
A Python wheel of wheel to use with virtualenv.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n wheel-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
mv %{buildroot}%{_bindir}/wheel{,-%{python3_version}}
|
|
|
|
|
ln -s wheel-%{python3_version} %{buildroot}%{_bindir}/wheel-3
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
2021-02-03 10:27:17 +08:00
|
|
|
# We can only use bdist_wheel when wheel is installed, hence we don't build the wheel in %%build
|
|
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
|
|
%py3_build_wheel
|
2019-12-04 16:52:50 +08:00
|
|
|
install -d %{buildroot}%{_datadir}/python-wheels
|
|
|
|
|
install -p dist/wheel-%{version}-py2.py3-none-any.whl -t %{buildroot}%{_datadir}/python-wheels
|
|
|
|
|
|
2020-08-20 20:15:16 +08:00
|
|
|
|
2019-12-04 16:52:50 +08:00
|
|
|
%check
|
|
|
|
|
rm setup.cfg
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
|
|
|
|
%endif
|
|
|
|
|
|
2020-08-20 20:15:16 +08:00
|
|
|
|
2019-12-04 16:52:50 +08:00
|
|
|
%files -n python3-wheel
|
|
|
|
|
%license LICENSE.txt
|
2021-02-03 10:27:17 +08:00
|
|
|
%doc README.rst
|
2019-12-04 16:52:50 +08:00
|
|
|
%{_bindir}/wheel-3*
|
|
|
|
|
%{python3_sitelib}/wheel*
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%files wheel
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%dir %{_datadir}/python-wheels/
|
|
|
|
|
%{_datadir}/python-wheels/wheel-%{version}-py2.py3-none-any.whl
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-02-03 10:27:17 +08:00
|
|
|
* Wed Feb 03 2021 shixuantong<shixuantong@huawei.com> - 0.36.2-1
|
|
|
|
|
- upgrade version to 0.36.2
|
|
|
|
|
|
2020-08-20 21:00:27 +08:00
|
|
|
* Mon Nov 2 2020 wangjie<wangjie294@huawei.com> -0.31.1-5
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove python2
|
2020-07-28 16:03:56 +08:00
|
|
|
|
2019-12-04 16:52:50 +08:00
|
|
|
* Mon Dec 2 2019 yangjian<yangjian79@huawei.com> - 1:0.31.1-4
|
|
|
|
|
- Package init
|