2024-01-06 10:57:06 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-06 10:57:06 +01:00
|
|
|
Name: python-chardet
|
2024-01-06 10:57:06 +01:00
|
|
|
Version: 5.1.0
|
|
|
|
Release: 2mamba
|
2024-01-06 10:57:06 +01:00
|
|
|
Summary: Universal Encoding Detector
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 10:57:06 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/chardet/chardet
|
2024-01-06 10:57:06 +01:00
|
|
|
Source: https://pypi.debian.net/chardet/chardet-%{version}.tar.gz
|
2024-01-06 10:57:06 +01:00
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 10:57:06 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-06 10:57:06 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Character encoding auto-detection in Python 2 and 3.
|
|
|
|
As smart as your browser.
|
|
|
|
Open source.
|
|
|
|
|
|
|
|
Detects:
|
|
|
|
- ASCII, UTF-8, UTF-16 (2 variants), UTF-32 (4 variants)
|
|
|
|
- Big5, GB2312, EUC-TW, HZ-GB-2312, ISO-2022-CN (Traditional and Simplified Chinese)
|
|
|
|
- EUC-JP, SHIFT_JIS, ISO-2022-JP (Japanese)
|
|
|
|
- EUC-KR, ISO-2022-KR (Korean)
|
|
|
|
- KOI8-R, MacCyrillic, IBM855, IBM866, ISO-8859-5, windows-1251 (Cyrillic)
|
|
|
|
- ISO-8859-2, windows-1250 (Hungarian)
|
|
|
|
- ISO-8859-5, windows-1251 (Bulgarian)
|
|
|
|
- windows-1252 (English)
|
|
|
|
- ISO-8859-7, windows-1253 (Greek)
|
|
|
|
- ISO-8859-8, windows-1255 (Visual and Logical Hebrew)
|
|
|
|
- TIS-620 (Thai)
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
%if 0%{?with_pyver}
|
2024-01-06 10:57:06 +01:00
|
|
|
%if "0%{?with_pyver}" == "03"
|
|
|
|
%define py_requires_append \
|
|
|
|
Obsoletes: python-chardet < 5.1.0-2mamba
|
|
|
|
%endif
|
2024-01-06 10:57:06 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n chardet-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 10:57:06 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-06 10:57:06 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 10:57:06 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-06 10:57:06 +01:00
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
%if "%{?with_pyver}" != "3"
|
|
|
|
# Rename any conflicting file outside of python site packages tree
|
|
|
|
for f in %{_bindir}/chardetect; do
|
|
|
|
mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
done
|
2024-01-06 10:57:06 +01:00
|
|
|
%endif
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-06 10:57:06 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 10:57:06 +01:00
|
|
|
%{_bindir}/chardetect*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
2024-01-06 10:57:06 +01:00
|
|
|
#%doc COPYING
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:57:06 +01:00
|
|
|
* Tue Mar 07 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.0-2mamba
|
|
|
|
- python-chardet-py3: obsolete python-chardet
|
|
|
|
|
|
|
|
* Mon Mar 06 2023 Automatic Build System <autodist@mambasoft.it> 5.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
* Tue Jul 05 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-1mamba
|
|
|
|
- update to 5.0.0
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
* Fri Apr 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.0-2mamba
|
|
|
|
- rebuilt with distdeps
|
|
|
|
|
|
|
|
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 4.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
* Sat Apr 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.4-4mamba
|
|
|
|
- rebuilt with py3 package
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
* Thu May 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.4-3mamba
|
|
|
|
- fix binary conflict between different targets
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
* Fri Mar 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.4-2mamba
|
|
|
|
- rebuilt with -py36 support
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
* Sat Nov 04 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.4-1mamba
|
|
|
|
- update to 3.0.4
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
* Tue Oct 07 2014 Automatic Build System <autodist@mambasoft.it> 2.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:57:06 +01:00
|
|
|
* Fri Jan 17 2014 Automatic Build System <autodist@mambasoft.it> 2.2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-2mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Tue Aug 30 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.0.1-1mamba
|
|
|
|
- package created by autospec
|