Compare commits
No commits in common. "497f6cb895fd4a219ef36db0a37fe987906aa734" and "16a0ed8ae147055535ff0ba5785fd77b30dcc85b" have entirely different histories.
497f6cb895
...
16a0ed8ae1
@ -1,12 +1,11 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
Name: python-wcwidth
|
||||||
Name: python-wcwidth
|
Version: 0.1.7
|
||||||
Version: 0.2.13
|
Release: 9
|
||||||
Release: 1
|
Summary: A Python library that measures the width of unicode strings rendered to a terminal
|
||||||
Summary: A Python library that measures the width of unicode strings rendered to a terminal
|
License: MIT
|
||||||
License: MIT
|
URL: https://github.com/jquast/wcwidth
|
||||||
URL: https://github.com/jquast/wcwidth
|
Source0: https://pypi.io/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz
|
||||||
Source0: https://files.pythonhosted.org/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz
|
BuildArch: noarch
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This library is mainly for those implementing a Terminal Emulator, or
|
This library is mainly for those implementing a Terminal Emulator, or
|
||||||
@ -16,11 +15,28 @@ and wcswidth(3) C functions of which this python module's functions
|
|||||||
precisely copy. These functions return the number of cells a unicode
|
precisely copy. These functions return the number of cells a unicode
|
||||||
string is expected to occupy.
|
string is expected to occupy.
|
||||||
|
|
||||||
%package -n python3-wcwidth
|
%package -n python2-wcwidth
|
||||||
Summary: A Python library that measures the width of unicode strings rendered to a terminal
|
Summary: A Python library that measures the width of unicode strings rendered to a terminal
|
||||||
Provides: python-wcwidth = %{version}-%{release}
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python2-devel python2-setuptools
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
|
%{?python_provide:%python_provide python2-wcwidth}
|
||||||
|
|
||||||
|
%description -n python2-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.
|
||||||
|
|
||||||
|
%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
|
%description -n python3-wcwidth
|
||||||
This library is mainly for those implementing a Terminal Emulator, or
|
This library is mainly for those implementing a Terminal Emulator, or
|
||||||
programs that carefully produce output to be interpreted by one.
|
programs that carefully produce output to be interpreted by one.
|
||||||
@ -29,76 +45,27 @@ and wcswidth(3) C functions of which this python module's functions
|
|||||||
precisely copy. These functions return the number of cells a unicode
|
precisely copy. These functions return the number of cells a unicode
|
||||||
string is expected to occupy.
|
string is expected to occupy.
|
||||||
|
|
||||||
%package help
|
|
||||||
Summary: Development documents and examples for wcwidth
|
|
||||||
Provides: python3-wcwidth-doc
|
|
||||||
%description help
|
|
||||||
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
|
%prep
|
||||||
%autosetup -n wcwidth-%{version}
|
%autosetup -n wcwidth-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%py2_build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%py2_install
|
||||||
%py3_install
|
%py3_install
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
pushd %{buildroot}
|
|
||||||
if [ -d usr/lib ]; then
|
|
||||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/lib64 ]; then
|
|
||||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/bin ]; then
|
|
||||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/sbin ]; then
|
|
||||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
touch doclist.lst
|
|
||||||
if [ -d usr/share/man ]; then
|
|
||||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
||||||
fi
|
|
||||||
popd
|
|
||||||
mv %{buildroot}/filelist.lst .
|
|
||||||
mv %{buildroot}/doclist.lst .
|
|
||||||
|
|
||||||
%files -n python3-wcwidth -f filelist.lst
|
%files -n python2-wcwidth
|
||||||
%dir %{python3_sitelib}/*
|
%doc README.rst LICENSE.txt
|
||||||
%license LICENSE
|
%{python2_sitelib}/wcwidth
|
||||||
|
%{python2_sitelib}/wcwidth-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files -n python3-wcwidth
|
||||||
%{_docdir}/*
|
%doc README.rst LICENSE.txt
|
||||||
|
%{python3_sitelib}/wcwidth
|
||||||
|
%{python3_sitelib}/wcwidth-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Feb 01 2024 xu_ping <707078654@qq.com> - 0.2.13-1
|
|
||||||
- Update package to version 0.2.13
|
|
||||||
|
|
||||||
* Fri Mar 17 2023 wangjunqi <wangjunqi@kylinos.cn> - 0.2.6-1
|
|
||||||
- Update package to version 0.2.6
|
|
||||||
|
|
||||||
* Wed Mar 30 2022 wangkai <wangkai385@huawei.com> - 0.2.5-2
|
|
||||||
- Fix compilation failures
|
|
||||||
|
|
||||||
* 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
|
|
||||||
|
|
||||||
* Fri Mar 06 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.1.7-9
|
* Fri Mar 06 2020 Jiangping Hu <hujp1985@foxmail.com> - 0.1.7-9
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
BIN
wcwidth-0.1.7.tar.gz
Normal file
BIN
wcwidth-0.1.7.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user