File python-pyte.spec of Package python-pyte
# Created by pyp2rpm-3.2.3
%global pypi_name pyte
Name: python-%{pypi_name}
Version: 0.7.0
Release: 1%{?dist}
Summary: Simple VTXXX-compatible terminal emulator
License: LGPLv3
URL: https://github.com/selectel/pyte
Source0: https://pypi.io/packages/source/p/pyte/pyte-%{version}.tar.gz
Patch0: python-pyte-0.7.0-remove-setup-requires.patch
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%description
It’s an in memory VTXXX-compatible terminal emulator.
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
Requires: python2-wcwidth
%description -n python2-%{pypi_name}
It’s an in memory VTXXX-compatible terminal emulator.
%prep
%setup -n %{pypi_name}-%{version}
%patch0 -p1
# 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
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Mon Dec 25 2017 Yunfei Shi <shiyf2@lenovo.com> - 0.7.0-1
- Initial package.