File python-cchardet.spec of Package failed_python-cchardet
# spec file for python-cchardet
Name: python-cchardet
Version: 2.1.7
Release: 1%{?dist}
Summary: Universal encoding detector for Python
License: MPL-2.0
URL: https://github.com/PyYoshi/cChardet
Source0: cchardet-2.1.7.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: gcc
BuildRequires: make
%description
cchardet is a universal encoding detector for Python.
%prep
%setup -q
%build
python3 setup.py build
%install
python3 setup.py install --root=%{buildroot} --optimize=1
%files
%license LICENSE
%doc README.md
%{_bindir}/cchardetect || %{_libdir}/python3.11/site-packages/cchardet
%{python3_sitearch}/cchardet
%changelog
* Thu Aug 28 2025 Fix Spec
- Added python3-setuptools buildrequire