Blame python-fastbencode.spec

a3c8824
%global pypi_name fastbencode
a3c8824
a3c8824
Name:           python-%{pypi_name}
a3c8824
Version:        0.0.9
6a6bdc8
Release:        3%{?dist}
a3c8824
Summary:        Implementation of bencode with optional fast C extensions
a3c8824
a3c8824
License:        GPLv2+ and MIT
a3c8824
#fastbencode is licensed under GPLv2+
a3c8824
#_bencode_py.py is licensed under MIT
a3c8824
URL:            https://github.com/breezy-team/fastbencode
a3c8824
Source:         %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
a3c8824
a3c8824
BuildRequires:  python3-devel
a3c8824
BuildRequires:  python3dist(cython) >= 0.29
a3c8824
BuildRequires:  python3dist(setuptools)
a3c8824
BuildRequires:  gcc
a3c8824
a3c8824
%global _description %{expand:
a3c8824
fastbencode is an implementation of the bencode serialization format 
a3c8824
originally used by BitTorrent.
a3c8824
The package includes both a pure-Python version and an optional C extension 
a3c8824
based on Cython.
a3c8824
Both provide the same functionality, but the C extension provides 
a3c8824
significantly better performance.
a3c8824
}
a3c8824
a3c8824
%description %_description
a3c8824
a3c8824
%package -n     python3-%{pypi_name}
a3c8824
Summary:        %{summary}
a3c8824
a3c8824
a3c8824
%description -n python3-%{pypi_name} %_description
a3c8824
a3c8824
a3c8824
%prep
a3c8824
%autosetup -n %{pypi_name}-%{version}
a3c8824
a3c8824
%build
a3c8824
%py3_build
a3c8824
a3c8824
%install
a3c8824
%py3_install
a3c8824
a3c8824
%check
a3c8824
%{python3} setup.py test
a3c8824
a3c8824
%files -n python3-%{pypi_name}
a3c8824
%license COPYING
a3c8824
%doc README.md
a3c8824
%{python3_sitearch}/%{pypi_name}/
a3c8824
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
a3c8824
a3c8824
%changelog
6a6bdc8
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.9-3
6a6bdc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
6a6bdc8
ea08b6b
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.0.9-2
ea08b6b
- Rebuilt for Python 3.11
ea08b6b
a3c8824
* Wed Jun 01 2022 Ondřej Pohořelský <opohorel@redhat.com> - 0.0.9-1
a3c8824
- Initial package.