%global pypi_name cchardet %global python3_pkgversion 39 %global __python3 %{_bindir}/python3.9 # nose dependency for the unit tests # https://github.com/PyYoshi/cChardet/issues/63 Name: python-%{pypi_name} Version: 2.1.7 Release: 7%{?dist} Summary: High speed universal character encoding detector License: MPLv1.1 or GPLv2 or LGPLv2 URL: https://github.com/PyYoshi/cChardet Source0: %{pypi_source} BuildRequires: gcc-c++ # https://github.com/PyYoshi/cChardet/issues/62 #BuildRequires: uchardet-devel Provides: bundle(uchardet) %description cChardet is high speed universal character encoding detector. %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %description -n python%{python3_pkgversion}-%{pypi_name} cChardet is high speed universal character encoding detector. %prep %autosetup -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info # Remove bundled uchardet #rm -rf src/ext %build %py3_build %install %py3_install %files -n python%{python3_pkgversion}-%{pypi_name} %doc README.rst src/ext/uchardet/README.md src/ext/uchardet/doc/README.maintainer %license COPYING %{_bindir}/cchardetect %{python3_sitearch}/%{pypi_name}/ %{python3_sitearch}/%{pypi_name}-%{version}-py*.egg-info %changelog * Fri Jun 17 2022 Ali Erdinc Koroglu - 2.1.7-7 - Rebuilt for c8s-py39 * Mon Jun 13 2022 Python Maint - 2.1.7-6 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.1.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.1.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.1.7-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 2.1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Oct 28 2020 Fabian Affolter - 2.1.7-1 - Update to latest upstream release 2.1.7 (#1892241) * Wed Jul 29 2020 Fedora Release Engineering - 2.1.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro HronĨok - 2.1.6-3 - Rebuilt for Python 3.9 * Sun May 17 2020 Fabian Affolter - 2.1.6-2 - Add comment about nose - Update license tag (#1834977) * Tue May 05 2020 Fabian Affolter - 2.1.6-1 - Initial package for Fedora