diff --git a/2.0.12.tar.gz b/2.0.12.tar.gz deleted file mode 100644 index 35c81c1cc0a6a571bb6f438c14dc92d4e3922b54..0000000000000000000000000000000000000000 Binary files a/2.0.12.tar.gz and /dev/null differ diff --git a/charset-normalizer-3.0.1.tar.gz b/charset-normalizer-3.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..197ac40cc196cb5be885af6896f40bdbf2cc5332 Binary files /dev/null and b/charset-normalizer-3.0.1.tar.gz differ diff --git a/python-charset-normalizer.spec b/python-charset-normalizer.spec index dbee97a5b975abe3376d3f21a567c1fec120a957..421165c943bffe0f9de43e95a41c663502ec11c8 100644 --- a/python-charset-normalizer.spec +++ b/python-charset-normalizer.spec @@ -1,18 +1,26 @@ %define anolis_release 1 -Name: python-charset-normalizer -Version: 2.0.12 -Release: %{anolis_release}%{dist} -Summary: The Real First Universal Charset Detector +%define debug_package %{nil} + +%global pypi_name charset-normalizer +%global pypi_version 3.0.1 +%global specrelname charset_normalizer +Name: python-charset-normalizer +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet. License: MIT -URL: https://github.com/ousret/charset_normalizer -Source0: %{url}/archive/refs/tags/%{version}.tar.gz -BuildArch: noarch +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: python3dist(pytest) - +BuildRequires: python-srpm-macros +BuildRequires: python3-pytest +BuildArch: noarch %description A library that helps you read text from an unknown charset encoding. @@ -20,22 +28,30 @@ 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-charset-normalizer +%package -n python3-%{pypi_name} Summary: %{summary} -%description -n python3-charset-normalizer +%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} +BuildArch: noarch +Requires: python3-%{pypi_name} = %{version}-%{release} + +%description -n python3-%{pypi_name}-doc +%{description} + %prep -%autosetup -n charset_normalizer-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 # Remove pytest-cov settings from setup.cfg sed -i "/addopts = --cov/d" setup.cfg %generate_buildrequires -%pyproject_buildrequires -r +%pyproject_buildrequires %build %pyproject_wheel @@ -47,11 +63,20 @@ sed -i "/addopts = --cov/d" setup.cfg %check %pytest -%files -n python3-charset-normalizer -f %{pyproject_files} +%files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE -%doc README.md %{_bindir}/normalizer +%{python3_sitelib}/charset_normalizer +%{python3_sitelib}/charset_normalizer-%{pypi_version}.dist-info/ + +%files -n python3-%{pypi_name}-doc +%doc README.md CHANGELOG.md + + %changelog +* Fri Dec 30 2022 mgb01105731 - 3.0.1-1 +- update to version 3.0.1 + * Mon Apr 18 2022 Zhongling He 2.0.12-1 - Init package from upstream v2.0.12