diff --git a/python-chardet.spec b/python-chardet.spec index 4ae84f0..168066d 100644 --- a/python-chardet.spec +++ b/python-chardet.spec @@ -1,7 +1,7 @@ %global pypi_name chardet Name: python-%{pypi_name} Version: 3.0.4 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Character encoding auto-detection in Python License: LGPLv2 URL: https://github.com/%{pypi_name}/%{pypi_name} @@ -11,8 +11,6 @@ Source0: %pypi_source Patch1: https://github.com/chardet/chardet/pull/174.patch BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -20,7 +18,6 @@ BuildRequires: python3-setuptools # Circular dependency on pytest %bcond_without tests %if %{with tests} -BuildRequires: python2-pytest BuildRequires: python3-pytest %endif @@ -31,47 +28,27 @@ 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 - %package -n python3-%{pypi_name} -Summary: Character encoding auto-detection in Python 3 +Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} -%description -n python3-%{pypi_name} -Character encoding auto-detection in Python. As -smart as your browser. Open source. - -Python 3 version. +%description -n python3-%{pypi_name} %_description %prep %autosetup -p1 -n %{pypi_name}-%{version} sed -ie '1d' %{pypi_name}/cli/chardetect.py %build -%py2_build %py3_build %install -%py2_install -rm %{buildroot}%{_bindir}/* %py3_install %if %{with tests} %check -%{__python2} -m pytest -v %{__python3} -m pytest -v %endif -%files -n python2-%{pypi_name} -%license LICENSE -%doc README.rst -%{python2_sitelib}/%{pypi_name}/ -%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info/ - %files -n python3-%{pypi_name} %license LICENSE %doc README.rst @@ -81,6 +58,10 @@ rm %{buildroot}%{_bindir}/* %changelog +* Thu Nov 14 2019 Miro Hrončok - 3.0.4-14 +- Subpackage python2-chardet has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Thu Oct 03 2019 Miro Hrončok - 3.0.4-13 - Rebuilt for Python 3.8.0rc1 (#1748018)