From e90a8f4a065f14d7dc564bd363162c06c18e8a456bd534ca186f91ef4c3525e9 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Wed, 23 Nov 2022 12:41:14 +0000 Subject: [PATCH] Accepting request 1037536 from home:glaubitz:branches:devel:languages:python - Initial build + Version 0.2.0 OBS-URL: https://build.opensuse.org/request/show/1037536 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fixedint?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + fixedint-0.2.0.tar.gz | 3 ++ python-fixedint.changes | 5 ++++ python-fixedint.spec | 62 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 fixedint-0.2.0.tar.gz create mode 100644 python-fixedint.changes create mode 100644 python-fixedint.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/fixedint-0.2.0.tar.gz b/fixedint-0.2.0.tar.gz new file mode 100644 index 0000000..381c3d4 --- /dev/null +++ b/fixedint-0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aeea0c7a3a54e5371ed632f9a97719316699f64f863ffce4414ef0f925255d17 +size 14865 diff --git a/python-fixedint.changes b/python-fixedint.changes new file mode 100644 index 0000000..c8820a9 --- /dev/null +++ b/python-fixedint.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Nov 23 10:16:59 UTC 2022 - John Paul Adrian Glaubitz + +- Initial build + + Version 0.2.0 diff --git a/python-fixedint.spec b/python-fixedint.spec new file mode 100644 index 0000000..40410e6 --- /dev/null +++ b/python-fixedint.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-fixedint +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-fixedint +Version: 0.2.0 +Release: 0 +Summary: simple fixed-width integers +License: Python-2.0 +URL: https://github.com/nneonneo/fixedint +Source: https://files.pythonhosted.org/packages/source/f/fixedint/fixedint-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildArch: noarch +%python_subpackages + +%description +This module provides fixed-size integer classes which retain their fixed nature across +arithmetic operations. It is geared towards users who need to emulate machine integers. + +It provides flexible classes for defining integers with a fixed number of bits, as well +as predefined classes for common machine integer sizes. These classes can be used as +drop-in replacements for int/long, and can be sliced to extract bitfields. + +Mutable versions of these integers are provided, enabling usages such as emulation +of machine registers. + +%prep +%setup -q -n fixedint-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest -v + +%files %{python_files} +%doc AUTHORS CHANGES README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog