python-charset-normalizer/python-charset-normalizer.spec

56 lines
1.4 KiB
RPMSpec
Raw Normal View History

2021-07-23 04:21:17 +00:00
Name: python-charset-normalizer
2023-11-01 08:44:32 +00:00
Version: 3.3.2
2023-01-19 21:50:46 +00:00
Release: %autorelease
2021-07-23 04:21:17 +00:00
Summary: The Real First Universal Charset Detector
2023-07-17 12:13:02 +00:00
# SPDX
2021-07-23 04:21:17 +00:00
License: MIT
URL: https://github.com/ousret/charset_normalizer
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
BuildRequires: python3dist(pytest)
%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-charset-normalizer
Summary: %{summary}
%description -n python3-charset-normalizer
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.
%prep
%autosetup -n charset_normalizer-%{version}
# Remove pytest-cov settings from setup.cfg
sed -i "/addopts = --cov/d" setup.cfg
%generate_buildrequires
%pyproject_buildrequires -r
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files charset_normalizer
%check
%pytest
%files -n python3-charset-normalizer -f %{pyproject_files}
%license LICENSE
%doc README.md
%{_bindir}/normalizer
%changelog
2023-01-19 21:50:46 +00:00
%autochangelog