python-wcwidth/python-wcwidth.spec

58 lines
1.8 KiB
RPMSpec
Raw Normal View History

2020-03-06 17:49:35 +08:00
Name: python-wcwidth
2021-02-01 15:15:45 +08:00
Version: 0.2.5
Release: 1
2020-03-06 17:49:35 +08:00
Summary: A Python library that measures the width of unicode strings rendered to a terminal
License: MIT
URL: https://github.com/jquast/wcwidth
Source0: https://pypi.io/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz
BuildArch: noarch
%description
This library is mainly for those implementing a Terminal Emulator, or
programs that carefully produce output to be interpreted by one.
POSIX.1-2001 and POSIX.1-2008 conforming systems provide wcwidth(3)
and wcswidth(3) C functions of which this python module's functions
precisely copy. These functions return the number of cells a unicode
string is expected to occupy.
%package -n python3-wcwidth
Summary: A Python library that measures the width of unicode strings rendered to a terminal
BuildRequires: python3-devel python3-setuptools
%{?python_provide:%python_provide python3-wcwidth}
%description -n python3-wcwidth
This library is mainly for those implementing a Terminal Emulator, or
programs that carefully produce output to be interpreted by one.
POSIX.1-2001 and POSIX.1-2008 conforming systems provide wcwidth(3)
and wcswidth(3) C functions of which this python module's functions
precisely copy. These functions return the number of cells a unicode
string is expected to occupy.
%prep
%autosetup -n wcwidth-%{version} -p1
%build
%py3_build
%install
%py3_install
%files -n python3-wcwidth
2021-02-01 15:15:45 +08:00
%doc README.rst LICENSE
2020-03-06 17:49:35 +08:00
%{python3_sitelib}/wcwidth
%{python3_sitelib}/wcwidth-%{version}-py?.?.egg-info
%changelog
2021-02-01 15:15:45 +08:00
* Mon Feb 1 2021 wutao <wutao61@huawei.com> - 0.2.5-1
- upgrade to 0.2.5
* Fri Jan 29 2021 Zhaorenhai <zhaorenhai@hotmail.com> - 0.1.7-10
- Remove python 2 package
2020-03-06 17:49:35 +08:00
* Fri Mar 06 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.1.7-9
- Package init