Python 2 binary package renamed to python2-chardet

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-08-19 09:39:52 -04:00
parent 2271487493
commit fba4f3316d

View File

@ -2,7 +2,7 @@
%global pypi_name chardet
Name: python-%{pypi_name}
Version: 3.0.4
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Character encoding auto-detection in Python
Group: Development/Languages
@ -17,10 +17,18 @@ BuildRequires: python2-devel, python-setuptools
BuildRequires: python3-devel, python3-setuptools
%endif # with_python3
%description
Character encoding auto-detection in Python. As
%global _description\
Character encoding auto-detection in Python. As\
smart as your browser. Open source.
%description %_description
%package -n python2-%{pypi_name}
Summary: %summary
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name} %_description
%if 0%{?with_python3}
%package -n python3-%{pypi_name}
Summary: Character encoding auto-detection in Python 3
@ -62,7 +70,7 @@ popd
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files
%files -n python2-%{pypi_name}
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README.rst
@ -80,6 +88,10 @@ popd
%changelog
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.4-3
- Python 2 binary package renamed to python2-chardet
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild