Summary: Measures number of Terminal column cells of wide-character codes Name: python-wcwidth Version: 0.1.5 Release: 1%{?dist} License: MIT URL: https://github.com/jquast/wcwidth Source0: https://pypi.python.org/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python3-devel %description This API is mainly for Terminal Emulator implementors, or those writing programs that expect to interpreted by a terminal emulator and wish to determine the printable width of a string on a Terminal. Usually, the length of the string is equivalent to the number of cells it occupies except that there are are also some categories of characters which occupy 2 or even 0 cells. POSIX-conforming systems provide wcwidth(3) and wcswidth(3) of which this modules interface mirrors precisely. This library aims to be forward-looking, portable, and most correct. The most current release of this API is based from Unicode Standard release files. %package -n python2-wcwidth Summary: Measures number of Terminal column cells of wide-character codes %{?python_provide:%python_provide python2-wcwidth} %description -n python2-wcwidth This API is mainly for Terminal Emulator implementors, or those writing programs that expect to interpreted by a terminal emulator and wish to determine the printable width of a string on a Terminal. Usually, the length of the string is equivalent to the number of cells it occupies except that there are are also some categories of characters which occupy 2 or even 0 cells. POSIX-conforming systems provide wcwidth(3) and wcswidth(3) of which this modules interface mirrors precisely. This library aims to be forward-looking, portable, and most correct. The most current release of this API is based from Unicode Standard release files. %package -n python3-wcwidth Summary: Measures number of Terminal column cells of wide-character codes %{?python_provide:%python_provide python3-wcwidth} %description -n python3-wcwidth This API is mainly for Terminal Emulator implementors, or those writing programs that expect to interpreted by a terminal emulator and wish to determine the printable width of a string on a Terminal. Usually, the length of the string is equivalent to the number of cells it occupies except that there are are also some categories of characters which occupy 2 or even 0 cells. POSIX-conforming systems provide wcwidth(3) and wcswidth(3) of which this modules interface mirrors precisely. This library aims to be forward-looking, portable, and most correct. The most current release of this API is based from Unicode Standard release files. %prep %setup -q -n wcwidth-%{version} sed -i -e '1 d' wcwidth/tests/test_core.py %build %{py2_build} %{py3_build} %install %{py2_install} %{py3_install} %files -n python2-wcwidth %doc README.rst %{python2_sitelib}/wcwidth %{python2_sitelib}/wcwidth-%{version}-py?.?.egg-info %files -n python3-wcwidth %doc README.rst %{python3_sitelib}/wcwidth %{python3_sitelib}/wcwidth-%{version}-py?.?.egg-info %changelog * Mon Nov 02 2015 Terje Rosten - 0.1.5-1 - initial package