diff options
| author | Ondřej Pohořelský <opohorel@redhat.com> | 2022-05-09 15:41:17 +0200 |
|---|---|---|
| committer | Ondřej Pohořelský <opohorel@redhat.com> | 2022-05-09 16:23:36 +0200 |
| commit | 2b3240bba67b4af15fa764ef30ddfe039236c107 (patch) | |
| tree | dcaa412130ef66d320d29740b6bf0055302e367d /python-fastbencode.spec | |
| download | python-fastbencode-2b3240bba67b4af15fa764ef30ddfe039236c107.tar.gz python-fastbencode-2b3240bba67b4af15fa764ef30ddfe039236c107.tar.xz python-fastbencode-2b3240bba67b4af15fa764ef30ddfe039236c107.zip | |
initial commit
Diffstat (limited to 'python-fastbencode.spec')
| -rw-r--r-- | python-fastbencode.spec | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/python-fastbencode.spec b/python-fastbencode.spec new file mode 100644 index 0000000..a5199dc --- /dev/null +++ b/python-fastbencode.spec @@ -0,0 +1,56 @@ +%global pypi_name fastbencode +%global pypi_version 0.0.7 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1%{?dist} +Summary: Implementation of bencode with optional fast C extensions + +License: GPLv2+ +URL: https://github.com/breezy-team/fastbencode +Source0: %{pypi_source} + +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} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(cython) >= 0.29 + +%description -n python3-%{pypi_name} %_description + + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%doc README.md +%{python3_sitearch}/%{pypi_name} +%{python3_sitearch}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Tue May 03 2022 Ondřej Pohořelský <opohorel@redhat.com> - 0.0.7-1 +- Initial package. |
