summaryrefslogtreecommitdiffstats
path: root/python-fastbencode.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-fastbencode.spec')
-rw-r--r--python-fastbencode.spec24
1 files changed, 14 insertions, 10 deletions
diff --git a/python-fastbencode.spec b/python-fastbencode.spec
index e98ec88..011ff55 100644
--- a/python-fastbencode.spec
+++ b/python-fastbencode.spec
@@ -1,14 +1,15 @@
%global pypi_name fastbencode
-%global pypi_version 0.0.7
Name: python-%{pypi_name}
-Version: %{pypi_version}
+Version: 0.0.9
Release: 1%{?dist}
Summary: Implementation of bencode with optional fast C extensions
-License: GPLv2+
+License: GPLv2+ and MIT
+#fastbencode is licensed under GPLv2+
+#_bencode_py.py is licensed under MIT
URL: https://github.com/breezy-team/fastbencode
-Source0: %{pypi_source}
+Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz
BuildRequires: python3-devel
BuildRequires: python3dist(cython) >= 0.29
@@ -16,9 +17,12 @@ 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.
+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
@@ -31,7 +35,7 @@ Summary: %{summary}
%prep
-%autosetup -n %{pypi_name}-%{pypi_version}
+%autosetup -n %{pypi_name}-%{version}
%build
%py3_build
@@ -45,8 +49,8 @@ Summary: %{summary}
%files -n python3-%{pypi_name}
%doc README.md
%{python3_sitearch}/%{pypi_name}/
-%{python3_sitearch}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info/
+%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%changelog
-* Mon May 16 2022 Ondřej Pohořelský <opohorel@redhat.com> - 0.0.7-1
+* Wed Jun 01 2022 Ondřej Pohořelský <opohorel@redhat.com> - 0.0.9-1
- Initial package.