File python-wheel.spec of Package python-wheel
%global pypi_name wheel
Name: python-%{pypi_name}
Version: 0.29.0
Release: 1%{?dist}
Summary: A built-package format for Python
License: MIT
URL: https://bitbucket.org/pypa/wheel
Source0: https://pypi.io/packages/source/w/wheel/wheel-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%description
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 2 version.
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name}
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 2 version.
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py2_build
%install
%py2_install
%files -n python2-%{pypi_name}
%if (0%{?rhel} >= 7) || (0%{?suse_version} >= 1315)
%license LICENSE.txt
%endif
%doc CHANGES.txt README.txt
%{_bindir}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}*
%changelog
* Wed Dec 20 2017 Yunfei Shi <shiyf2@lenovo.com> - 0.29.0-1
- Initial package