blob: d6b5cbcfd2683561e1a6f776efefa279f961b79a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
%global pypi_name fastbencode
Name: python-%{pypi_name}
Version: 0.0.9
Release: 1%{?dist}
Summary: Implementation of bencode with optional fast C extensions
License: GPLv2+ and MIT
#fastbencode is licensed under GPLv2+
#_bencode_py.py is licensed under MIT
URL: https://github.com/breezy-team/fastbencode
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
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%py3_build
%install
%py3_install
%check
%{python3} setup.py test
%files -n python3-%{pypi_name}
%license COPYING
%doc README.md
%{python3_sitearch}/%{pypi_name}/
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%changelog
* Wed Jun 01 2022 Ondřej Pohořelský <opohorel@redhat.com> - 0.0.9-1
- Initial package.
|