[packages/python3-construct] - new

baggins baggins at pld-linux.org
Sat Apr 9 21:05:40 CEST 2022


commit ae2cfd79197b1c8ef0adb920aaf53c647c1fff25
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Apr 9 21:05:21 2022 +0200

    - new

 python3-construct.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
---
diff --git a/python3-construct.spec b/python3-construct.spec
new file mode 100644
index 0000000..cc6cdd7
--- /dev/null
+++ b/python3-construct.spec
@@ -0,0 +1,60 @@
+%define		module	construct
+Summary:	A powerful declarative symmetric parser/builder for binary data
+Name:		python3-%{module}
+Version:	2.10.68
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/construct/
+Source0:	https://files.pythonhosted.org/packages/source/c/construct/%{module}-%{version}.tar.gz
+# Source0-md5:	e426d3dd1566066e4ef1a03fe474dec0
+URL:		https://pypi.org/project/construct/
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Construct is a powerful declarative and symmetrical parser and builder
+for binary data.
+
+Instead of writing imperative code to parse a piece of data, you
+declaratively define a data structure that describes your data. As
+this data structure is not code, you can use it in one direction to
+parse data into Pythonic objects, and in the other direction, to build
+objects into binary data.
+
+The library provides both simple, atomic constructs (such as integers
+of various sizes), as well as composite ones which allow you form
+hierarchical and sequential structures of increasing complexity.
+Construct features bit and byte granularity, easy debugging and
+testing, an easy-to-extend subclass system, and lots of primitive
+constructs to make your work easier.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%dir %{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}/*.py
+%{py3_sitescriptdir}/%{module}/__pycache__
+%dir %{py3_sitescriptdir}/%{module}/lib
+%{py3_sitescriptdir}/%{module}/lib/*.py
+%{py3_sitescriptdir}/%{module}/lib/__pycache__
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-construct.git/commitdiff/ae2cfd79197b1c8ef0adb920aaf53c647c1fff25



More information about the pld-cvs-commit mailing list