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