|
|
a3c8824 |
%global pypi_name fastbencode
|
|
|
a3c8824 |
|
|
|
a3c8824 |
Name: python-%{pypi_name}
|
|
|
0614aa5 |
Version: 0.2
|
|
|
77474d3 |
Release: 3%{?dist}
|
|
|
a3c8824 |
Summary: Implementation of bencode with optional fast C extensions
|
|
|
a3c8824 |
|
|
|
0614aa5 |
License: GPL-2.0-or-later 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
|
|
|
3ae13d8 |
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
a3c8824 |
|
|
|
a3c8824 |
%build
|
|
|
a3c8824 |
%py3_build
|
|
|
a3c8824 |
|
|
|
a3c8824 |
%install
|
|
|
a3c8824 |
%py3_install
|
|
|
a3c8824 |
|
|
|
a3c8824 |
%check
|
|
|
0614aa5 |
%{py3_test_envvars} %{python3} -m unittest
|
|
|
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
|
|
|
77474d3 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-3
|
|
|
77474d3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
77474d3 |
|
|
|
75b29be |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-2
|
|
|
75b29be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
75b29be |
|
|
|
0614aa5 |
* Tue Nov 21 2023 Ondřej Pohořelský <opohorel@redhat.com> - 0.2-1
|
|
|
0614aa5 |
- Update to 0.2
|
|
|
0614aa5 |
- Convert license to SPDX format
|
|
|
0614aa5 |
|
|
|
c0f6aa4 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.9-6
|
|
|
c0f6aa4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
c0f6aa4 |
|
|
|
24bd6e3 |
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.0.9-5
|
|
|
24bd6e3 |
- Rebuilt for Python 3.12
|
|
|
24bd6e3 |
|
|
|
0542832 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.9-4
|
|
|
0542832 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
0542832 |
|
|
|
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.
|