%global pypi_name mbstrdecoder
Name: python-%{pypi_name}
Version: 1.1.2
Release: 1%{?dist}
Summary: multi-byte character string decoder
License: MIT
URL: https://github.com/thombashi/mbstrdecoder
Source0: https://files.pythonhosted.org/packages/source/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
BuildRequires: python3-pytest
%description
multi-byte character string decoder
%package -n python3-%{pypi_name}
Summary: %{summary}
Requires: python3-chardet
%description -n python3-%{pypi_name}
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
sed -i 's/chardet>=3.0.4,<.*/chardet>=3.0.4/g' requirements/requirements.txt
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{pypi_name}
%check
%pytest -v
%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst
%changelog
* Tue Feb 07 2023 Karolina Kula <kkula@redhat.com> - 1.1.2-1
- Update to 1.1.2
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Aug 04 2022 Karolina Kula <kkula@redhat.com> - 1.1.0-2
- Remove chardet <5 requirement
- Remove %python_provide depracated macros
- Add pytest as BR
* Thu May 19 2022 Karolina Kula <kkula@redhat.com> - 1.1.0-1
- initial package build