From dd0d116cad5a26d95e862f0208f93937780760e14ef17d5b7224b15f8e035edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 24 Oct 2022 16:58:46 +0000 Subject: [PATCH] Accepting request 1030913 from home:mnhauke - Update to version 3.3 * Fix tests on 32bit architecture - Update to version 3.2 * Add more tests - Update to version 3.1 * Make CStruct/MemCStruct Pickle Friendly - Update to version 3.0 * Flexible array support - Update to version 2.3 * Fix compare with None - Update to version 2.2 Fixes * Fix empty MemCStruct size Improvements * Python 3.10 support * pytest * black code style OBS-URL: https://build.opensuse.org/request/show/1030913 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cstruct?expand=0&rev=5 --- python-cstruct-1.8.tar.gz | 3 --- python-cstruct-3.3.tar.gz | 3 +++ python-cstruct.changes | 25 +++++++++++++++++++++++++ python-cstruct.spec | 12 ++++-------- 4 files changed, 32 insertions(+), 11 deletions(-) delete mode 100644 python-cstruct-1.8.tar.gz create mode 100644 python-cstruct-3.3.tar.gz diff --git a/python-cstruct-1.8.tar.gz b/python-cstruct-1.8.tar.gz deleted file mode 100644 index 3217cee..0000000 --- a/python-cstruct-1.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f46ad51f4c92f7296f83c7e3397cd5d8eba9eb1cac0c3a4a9f7cffbf07a394b2 -size 9911 diff --git a/python-cstruct-3.3.tar.gz b/python-cstruct-3.3.tar.gz new file mode 100644 index 0000000..dd3b57d --- /dev/null +++ b/python-cstruct-3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edfa9dd96b2512a4d7cd24842b9234ba32a60a65e15e08f7dbfca35836ea81e3 +size 27470 diff --git a/python-cstruct.changes b/python-cstruct.changes index f31efe0..c656242 100644 --- a/python-cstruct.changes +++ b/python-cstruct.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Mon Oct 24 15:29:46 UTC 2022 - Martin Hauke + +- Update to version 3.3 + * Fix tests on 32bit architecture +- Update to version 3.2 + * Add more tests + +------------------------------------------------------------------- +Fri Oct 14 13:45:17 UTC 2022 - Martin Hauke + +- Update to version 3.1 + * Make CStruct/MemCStruct Pickle Friendly +- Update to version 3.0 + * Flexible array support +- Update to version 2.3 + * Fix compare with None +- Update to version 2.2 + Fixes + * Fix empty MemCStruct size + Improvements + * Python 3.10 support + * pytest + * black code style + ------------------------------------------------------------------- Thu Oct 13 07:17:06 UTC 2022 - Dirk Müller diff --git a/python-cstruct.spec b/python-cstruct.spec index d444be4..8155112 100644 --- a/python-cstruct.spec +++ b/python-cstruct.spec @@ -2,7 +2,7 @@ # spec file for package python-cstruct # # Copyright (c) 2022 SUSE LLC -# Copyright (c) 2020, Martin Hauke +# Copyright (c) 2020-2022, Martin Hauke # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,14 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cstruct -Version: 1.8 +Version: 3.3 Release: 0 Summary: C-style structs for Python License: MIT Group: Development/Languages/Python URL: https://github.com/andreax79/python-cstruct Source: https://github.com/andreax79/python-cstruct/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -46,17 +45,14 @@ a string. %prep %setup -q -sed -i -e '/^#!\//, 1d' \ - cstruct/__init__.py \ - cstruct/examples/fdisk.py \ - cstruct/examples/who.py \ - cstruct/tests/test_cstruct.py %build %python_build %install %python_install +%python_expand find %{buildroot}%{$python_sitelib} -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; +%python_expand rm -R %{buildroot}%{$python_sitelib}/tests/ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check