Blob Blame History Raw
%global pypi_name fastbencode

Name:           python-%{pypi_name}
Version:        0.0.9
Release:        4%{?dist}
Summary:        Implementation of bencode with optional fast C extensions

License:        GPLv2+ and MIT
#fastbencode is licensed under GPLv2+ is licensed under MIT
Source:         %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  python3dist(cython) >= 0.29
BuildRequires:  python3dist(setuptools)
BuildRequires:  gcc

%global _description %{expand:
fastbencode is an implementation of the bencode serialization format 
originally used by BitTorrent.
The package includes both a pure-Python version and an optional C extension 
based on Cython.
Both provide the same functionality, but the C extension provides 
significantly better performance.

%description %_description

%package -n     python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name} %_description

%autosetup -n %{pypi_name}-%{version}



%{python3} test

%files -n python3-%{pypi_name}
%license COPYING

* Fri Jan 20 2023 Fedora Release Engineering <> - 0.0.9-4
- Rebuilt for

* Fri Jul 22 2022 Fedora Release Engineering <> - 0.0.9-3
- Rebuilt for

* Mon Jun 13 2022 Python Maint <> - 0.0.9-2
- Rebuilt for Python 3.11

* Wed Jun 01 2022 Ondřej Pohořelský <> - 0.0.9-1
- Initial package.