File python-six.spec of Package python-six
# Created by pyp2rpm-3.2.3
%global pypi_name six
Name: python-%{pypi_name}
Version: 1.11.0
Release: 1%{?dist}
Summary: Python 2 and 3 compatibility utilities
License: MIT
URL: http://pypi.python.org/pypi/six/
Source0: https://pypi.io/packages/source/s/six/six-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%description
python-six provides simple utilities for wrapping over differences between
Python 2 and Python 3.
Python 2 version.
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name}
python-six provides simple utilities for wrapping over differences between
Python 2 and Python 3.
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
%endif
%doc README.rst
%{python2_sitelib}/%{pypi_name}.py*
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Fri Dec 22 2017 Yunfei Shi <shiyf2@lenovo.com> - 1.11.0-1
- Initial package.