From 16f7a0683cec26c33b7a4e355effbb4c9fda3cd1ebbaf0901304e3c7538be5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Tesa=C5=99=C3=ADk?= Date: Tue, 5 Nov 2024 08:28:56 +0000 Subject: [PATCH] - Avoid using requires_eq, which after the last modifications conflicts with python singlespec (order of expansion). OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/python-pykdumpfile?expand=0&rev=10 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + pykdumpfile-0.5.4.tar.gz | 3 ++ python-pykdumpfile.changes | 28 +++++++++++++++ python-pykdumpfile.spec | 71 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 126 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pykdumpfile-0.5.4.tar.gz create mode 100644 python-pykdumpfile.changes create mode 100644 python-pykdumpfile.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/pykdumpfile-0.5.4.tar.gz b/pykdumpfile-0.5.4.tar.gz new file mode 100644 index 0000000..bc85496 --- /dev/null +++ b/pykdumpfile-0.5.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34718c76ce7c3ffd25b051c5d4fb1bd8a834564c6d731f12cc1895e6b8dde429 +size 33936 diff --git a/python-pykdumpfile.changes b/python-pykdumpfile.changes new file mode 100644 index 0000000..a11180f --- /dev/null +++ b/python-pykdumpfile.changes @@ -0,0 +1,28 @@ +------------------------------------------------------------------- +Tue Nov 5 08:12:24 UTC 2024 - Dominique Leuenberger + +- Avoid using requires_eq, which after the last modifications + conflicts with python singlespec (order of expansion). + +------------------------------------------------------------------- +Tue Nov 21 06:42:26 UTC 2023 - Petr Tesařík + +- Update to 0.5.4 + * RISC-V (64-bit) support. + * Descriptive file names. + +------------------------------------------------------------------- +Mon Nov 20 16:31:02 UTC 2023 - Petr Tesařík + +- Do not try to build with Python2. This is a Python3-only package. + +------------------------------------------------------------------- +Wed Nov 8 19:47:03 UTC 2023 - Petr Tesařík + +- Update to 0.5.3.1 + * Bugfix release. + +------------------------------------------------------------------- +Tue Nov 7 13:22:05 UTC 2023 - Petr Tesařík + +- Initial packaging (version 0.5.3). diff --git a/python-pykdumpfile.spec b/python-pykdumpfile.spec new file mode 100644 index 0000000..12531d8 --- /dev/null +++ b/python-pykdumpfile.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-pykdumpfile +# +# Copyright (c) 2024 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/ +# + + +%define skip_python2 1 + +Name: python-pykdumpfile +Version: 0.5.4 +Release: 0 +Summary: Python bindings to libkdumpfile +License: GPL-2.0-or-later +URL: https://github.com/ptesarik/pykdumpfile +Source: https://files.pythonhosted.org/packages/source/p/pykdumpfile/pykdumpfile-%{version}.tar.gz +BuildRequires: %{python_module cffi >= 1.0.0} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: libkdumpfile-devel +BuildRequires: python-rpm-macros +# assuming all python*-cffi packages have the same version +Requires: python-cffi = %(rpm -q --whatprovides python3-cffi --qf "%%{version}") +Obsoletes: python-libkdumpfile < %{version} +Provides: python-libkdumpfile = %{version} +%python_subpackages + +%description +Python bindings to libkdumpfile + +%prep +%autosetup -p1 -n pykdumpfile-%{version} +rm addrxlat/defs_py2.py +rm kdumpfile/defs_py2.py + +%build +export CFLAGS="%{optflags}" +%pyproject_wheel + +%install +%pyproject_install --ignore-installed +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest_arch + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitearch}/_addrxlat.*.so +%{python_sitearch}/addrxlat/ +%{python_sitearch}/_kdumpfile.*.so +%{python_sitearch}/kdumpfile/ +%{python_sitearch}/pykdumpfile-%{version}.dist-info + +%changelog