Blame python-mbstrdecoder.spec

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