2016-12-13 07:52:16 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
%bcond_with python3
|
2016-01-06 23:05:13 +00:00
|
|
|
%else
|
2016-12-13 07:52:16 +00:00
|
|
|
%bcond_without python3
|
2016-01-06 23:05:13 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
# Disable tests since tox.ini is not found properly. I'll try to enable them back ASAP
|
2016-12-13 07:52:16 +00:00
|
|
|
%bcond_with tests
|
2016-01-06 23:05:13 +00:00
|
|
|
|
|
|
|
%global pypi_name wcwidth
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
2016-12-13 07:52:16 +00:00
|
|
|
Version: 0.1.7
|
2017-02-11 10:53:25 +00:00
|
|
|
Release: 3%{?dist}
|
2016-01-06 23:05:13 +00:00
|
|
|
Summary: Measures number of Terminal column cells of wide-character codes
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/jquast/wcwidth
|
2016-12-13 07:52:16 +00:00
|
|
|
Source0: https://pypi.io/packages/source/w/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
2016-01-06 23:05:13 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package -n python2-%{pypi_name}
|
2016-12-13 07:52:16 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: python-tox
|
|
|
|
%endif # with tests
|
2016-01-06 23:05:13 +00:00
|
|
|
Summary: Measures number of Terminal column cells of wide-character codes
|
|
|
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
2016-01-12 10:28:24 +00:00
|
|
|
%{?el6:Provides: python-%{pypi_name}}
|
2016-01-06 23:05:13 +00:00
|
|
|
|
|
|
|
%description -n python2-%{pypi_name}
|
|
|
|
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.
|
|
|
|
|
2016-12-13 07:52:16 +00:00
|
|
|
%if %{with python3}
|
2016-01-06 23:05:13 +00:00
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: Measures number of Terminal column cells of wide-character codes
|
2016-12-13 07:52:16 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: python3-tox
|
|
|
|
%endif # with tests
|
2016-01-06 23:05:13 +00:00
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
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.
|
2016-12-13 07:52:16 +00:00
|
|
|
%endif # with python3
|
2016-01-06 23:05:13 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%py2_build
|
2016-12-13 07:52:16 +00:00
|
|
|
%if %{with python3}
|
2016-01-06 23:05:13 +00:00
|
|
|
%py3_build
|
2016-12-13 07:52:16 +00:00
|
|
|
%endif # with python3
|
2016-01-06 23:05:13 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%py2_install
|
2016-12-13 07:52:16 +00:00
|
|
|
%if %{with python3}
|
|
|
|
%py3_install
|
|
|
|
%endif # with python3
|
2016-01-06 23:05:13 +00:00
|
|
|
|
2016-12-13 07:52:16 +00:00
|
|
|
%if %{with tests}
|
2016-01-06 23:05:13 +00:00
|
|
|
%check
|
|
|
|
%{__python2} setup.py test
|
2016-12-13 07:52:16 +00:00
|
|
|
%if %{with python3}
|
2016-01-06 23:05:13 +00:00
|
|
|
%{__python3} setup.py test
|
2016-12-13 07:52:16 +00:00
|
|
|
%endif # with python3
|
|
|
|
%endif # with tests
|
2016-01-06 23:05:13 +00:00
|
|
|
|
|
|
|
%files -n python2-%{pypi_name}
|
|
|
|
%{!?_licensedir:%global license %doc}
|
|
|
|
%doc README.rst
|
2016-01-08 23:21:12 +00:00
|
|
|
%license LICENSE.txt
|
2016-01-06 23:05:13 +00:00
|
|
|
%{python2_sitelib}/%{pypi_name}
|
|
|
|
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
2016-12-13 07:52:16 +00:00
|
|
|
%if %{with python3}
|
2016-01-06 23:05:13 +00:00
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%doc README.rst
|
2016-01-08 23:21:12 +00:00
|
|
|
%license LICENSE.txt
|
2016-01-06 23:05:13 +00:00
|
|
|
%{python3_sitelib}/%{pypi_name}
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
2016-12-13 07:52:16 +00:00
|
|
|
%endif # with python3
|
2016-01-06 23:05:13 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-02-11 10:53:25 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-19 17:20:38 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.1.7-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-12-13 07:52:16 +00:00
|
|
|
* Tue Dec 13 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.7-1
|
|
|
|
- Update to 0.1.7
|
|
|
|
|
2016-07-19 12:07:44 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-4
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 21:20:15 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-12-13 07:52:16 +00:00
|
|
|
* Tue Jan 12 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.6-2
|
2016-01-12 10:28:24 +00:00
|
|
|
- Provide python-wcwidth for EL6
|
|
|
|
|
2016-12-13 07:52:16 +00:00
|
|
|
* Sat Jan 09 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.6-1
|
2016-01-08 23:21:12 +00:00
|
|
|
- Update to new upstream
|
|
|
|
- Remove external LICENSE thanks to the new version
|
|
|
|
|
2016-12-13 07:52:16 +00:00
|
|
|
* Wed Jan 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.5-2
|
2016-01-06 23:05:13 +00:00
|
|
|
- Remove shabang from file that was not executable
|
|
|
|
|
2016-12-13 07:52:16 +00:00
|
|
|
* Tue Dec 29 2015 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.5-1
|
2016-01-06 23:05:13 +00:00
|
|
|
- Initial package.
|