File python-wcwidth.spec of Package python-wcwidth
# Created by pyp2rpm-3.2.3
%global pypi_name wcwidth
Name: python-%{pypi_name}
Version: 0.1.7
Release: 1%{?dist}
Summary: Measures number of Terminal column cells of wide-character codes
License: MIT
URL: https://github.com/selectel/pyte
Source0: https://pypi.io/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%description
This Library is mainly for those implementing a Terminal Emulator,
or programs that carefully produce output to be interpreted by one.
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
Requires: python2-wcwidth
%description -n python2-%{pypi_name}
This Library is mainly for those implementing a Terminal Emulator,
or programs that carefully produce output to be interpreted by one.
%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}
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Mon Dec 25 2017 Yunfei Shi <shiyf2@lenovo.com> - 0.1.7-1
- Initial package.