[packages/python3-rencode] - new

baggins baggins at pld-linux.org
Tue Aug 15 23:03:12 CEST 2023


commit b26e186b0c3e1be42c265994e96708fb1eee29c8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Aug 15 22:58:53 2023 +0200

    - new

 python3-rencode.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
---
diff --git a/python3-rencode.spec b/python3-rencode.spec
new file mode 100644
index 0000000..69b21c0
--- /dev/null
+++ b/python3-rencode.spec
@@ -0,0 +1,48 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+%define		module	rencode
+Summary:	Web safe object pickling/unpickling
+Name:		python3-%{module}
+Version:	1.0.6
+Release:	1
+License:	GPL v3//BSD
+Group:		Libraries/Python
+Source0:	https://github.com/aresch/rencode/archive/v%{version}/%{module}-%{version}.tar.gz
+# Source0-md5:	5ad85007483c35d0d04c1e027a680f1c
+URL:		https://github.com/aresch/rencode/
+BuildRequires:	python3-devel >= 1:3.2
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.2
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The rencode module is a modified version of bencode from the
+BitTorrent project.  For complex, heterogeneous data structures with
+many small elements, r-encodings take up significantly less space than
+b-encodings.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build %{?with_tests:test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%dir %{py3_sitedir}/%{module}
+%{py3_sitedir}/%{module}/*.py
+%attr(755,root,root) %{py3_sitedir}/%{module}/*.so
+%{py3_sitedir}/%{module}/__pycache__
+%{py3_sitedir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-rencode.git/commitdiff/b26e186b0c3e1be42c265994e96708fb1eee29c8



More information about the pld-cvs-commit mailing list