commit de824a8abf226cee54177d73300b72efa2aa39ca Author: Jvle Date: Fri Jan 16 15:45:48 2026 +0800 SPEC: init for bitstring Signed-off-by: Jvle diff --git a/python-bitstring.spec b/python-bitstring.spec new file mode 100644 index 0000000..63971e8 --- /dev/null +++ b/python-bitstring.spec @@ -0,0 +1,51 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors +# SPDX-FileContributor: Jvle +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%global srcname bitstring + +Name: python-%{srcname} +Version: 4.3.1 +Release: %autorelease +Summary: Simple construction, analysis and modification of binary data +License: MIT +URL: https://github.com/scott-griffiths/bitstring + +#!RemoteAsset +Source0: https://files.pythonhosted.org/packages/source/b/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch +BuildSystem: pyproject + +BuildOption(install): -l %{srcname} + +BuildRequires: pyproject-rpm-macros +BuildRequires: python3-devel + +Provides: python3-%{srcname} +%python_provide python3-%{srcname} + +%global _description %{expand: +bitstring is a pure Python module designed to help make the creation and +analysis of binary data as simple and natural as possible. + +Bitstrings can be constructed from integers (big and little endian), hex, +octal, binary, strings or files. They can be sliced, joined, reversed, +inserted into, overwritten, etc. with simple functions or slice notation. +They can also be read from, searched and replaced, and navigated in, similar +to a file or stream. +} + +%description %_description + +%generate_buildrequires +%pyproject_buildrequires + +%files -f %{pyproject_files} +%license LICENSE +%doc README.md + +%changelog +%{?autochangelog}