diff --git a/charset-normalizer-3.0.1.tar.gz b/charset-normalizer-3.0.1.tar.gz deleted file mode 100644 index 197ac40cc196cb5be885af6896f40bdbf2cc5332..0000000000000000000000000000000000000000 Binary files a/charset-normalizer-3.0.1.tar.gz and /dev/null differ diff --git a/charset-normalizer-3.1.0.tar.gz b/charset-normalizer-3.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..aa3ced003d9f1baeb0dad00febc8e8f4d394c543 Binary files /dev/null and b/charset-normalizer-3.1.0.tar.gz differ diff --git a/python-charset-normalizer.spec b/python-charset-normalizer.spec index 421165c943bffe0f9de43e95a41c663502ec11c8..5440d425cd1141e709e28e1927c80f7a233bda82 100644 --- a/python-charset-normalizer.spec +++ b/python-charset-normalizer.spec @@ -1,54 +1,51 @@ %define anolis_release 1 -%define debug_package %{nil} - +%bcond_without tests %global pypi_name charset-normalizer -%global pypi_version 3.0.1 %global specrelname charset_normalizer -Name: python-charset-normalizer -Version: %{pypi_version} +Name: python-%{pypi_name} +Version: 3.1.0 Release: %{anolis_release}%{?dist} -Summary: The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet. +Summary: Truly universal encoding detector in pure Python License: MIT -URL: https://github.com/Ousret/charset_normalizer -Source0: https://files.pythonhosted.org/packages/96/d7/1675d9089a1f4677df5eb29c3f8b064aa1e70c1251a0a8a127803158942d/%{pypi_name}-%{pypi_version}.tar.gz - - - -BuildRequires: gcc cmake -BuildRequires: python3-devel -BuildRequires: pyproject-rpm-macros -BuildRequires: python-srpm-macros -BuildRequires: python3-pytest +URL: https://github.com/Ousret/%{specrelname} +Source0: https://files.pythonhosted.org/packages/ff/d7/8d757f8bd45be079d76309248845a04f09619a7b17d6dfc8c9ff6433cac2/%{pypi_name}-%{version}.tar.gz BuildArch: noarch +BuildRequires: python%{python3_pkgversion}-devel pyproject-rpm-macros +BuildRequires: python%{python3_pkgversion}-sphinx python%{python3_pkgversion}-sphinx_rtd_theme +%if %{with tests} +BuildRequires: python%{python3_pkgversion}-pytest +%endif + %description -A library that helps you read text from an unknown charset encoding. -Motivated by chardet, trying to resolve the issue by taking -a new approach. All IANA character set names for which the Python core -library provides codecs are supported. - -%package -n python3-%{pypi_name} -Summary: %{summary} - -%description -n python3-%{pypi_name} -A library that helps you read text from an unknown charset encoding. -Motivated by chardet, trying to resolve the issue by taking -a new approach. All IANA character set names for which the Python core -library provides codecs are supported. - -%package -n python3-%{pypi_name}-doc -Summary: %{summary} +A library that helps you read text from an unknown charset encoding. Motivated +by chardet, trying to resolve the issue by taking a new approach. All IANA +character set names for which the Python core library provides codecs are +supported. + +%package -n python%{python3_pkgversion}-%{pypi_name} +Summary: Truly universal encoding detector in pure Python + +%description -n python%{python3_pkgversion}-%{pypi_name} +A library that helps you read text from an unknown charset encoding. Motivated +by chardet, trying to resolve the issue by taking a new approach. All IANA +character set names for which the Python core library provides codecs are +supported. + +%package -n python%{python3_pkgversion}-%{pypi_name}-doc +Summary: Documentation files for python%{python3_pkgversion}-%{pypi_name} BuildArch: noarch -Requires: python3-%{pypi_name} = %{version}-%{release} +Requires: python%{python3_pkgversion}-%{pypi_name} = %{version}-%{release} -%description -n python3-%{pypi_name}-doc -%{description} +%description -n python%{python3_pkgversion}-%{pypi_name}-doc +Documentation fliles for python%{python3_pkgversion}-%{pypi_name}. %prep %autosetup -n %{pypi_name}-%{version} -p1 -# Remove pytest-cov settings from setup.cfg sed -i "/addopts = --cov/d" setup.cfg +sed -i 's/furo/sphinx_rtd_theme/g' docs/requirements.txt +sed -i "s/html_theme = 'furo'/html_theme = 'sphinx_rtd_theme'/g" docs/conf.py %generate_buildrequires %pyproject_buildrequires @@ -56,25 +53,32 @@ sed -i "/addopts = --cov/d" setup.cfg %build %pyproject_wheel +sphinx-build-3 docs html +rm -rf html/.{doctrees,buildinfo} +rm -rf html/_static/fonts/ + %install %pyproject_install -%pyproject_save_files charset_normalizer +%pyproject_save_files %{specrelname} +%if %{with tests} %check -%pytest +%pytest tests +%endif -%files -n python3-%{pypi_name} -f %{pyproject_files} +%files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files} %license LICENSE %{_bindir}/normalizer -%{python3_sitelib}/charset_normalizer -%{python3_sitelib}/charset_normalizer-%{pypi_version}.dist-info/ - -%files -n python3-%{pypi_name}-doc +%files -n python%{python3_pkgversion}-%{pypi_name}-doc %doc README.md CHANGELOG.md +%doc html %changelog +* Sun Apr 09 2023 Shawn Wang - 3.1.0-1 +- Update to 3.1.0 + * Fri Dec 30 2022 mgb01105731 - 3.0.1-1 - update to version 3.0.1