From 571a1bc517808de194f9febb015b4bea2ce906b0ad866a1a124221cb3c906fac Mon Sep 17 00:00:00 2001 From: Guillaume GARDET Date: Mon, 29 Sep 2025 11:55:07 +0000 Subject: [PATCH] - Update to 3.8 * Added open_path method to accommodate dynamic SPI bus number allocation OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spidev?expand=0&rev=10 --- .gitattributes | 23 +++++++++++++++++++ .gitignore | 1 + python-spidev.changes | 48 +++++++++++++++++++++++++++++++++++++++ python-spidev.spec | 52 +++++++++++++++++++++++++++++++++++++++++++ spidev-3.7.tar.gz | 3 +++ spidev-3.8.tar.gz | 3 +++ 6 files changed, 130 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-spidev.changes create mode 100644 python-spidev.spec create mode 100644 spidev-3.7.tar.gz create mode 100644 spidev-3.8.tar.gz 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/python-spidev.changes b/python-spidev.changes new file mode 100644 index 0000000..0b7cbfa --- /dev/null +++ b/python-spidev.changes @@ -0,0 +1,48 @@ +------------------------------------------------------------------- +Mon Sep 29 11:53:14 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 3.8 + * Added open_path method to accommodate dynamic SPI bus number allocation + +------------------------------------------------------------------- +Wed Jun 4 09:45:15 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 3.7 + * Fixed deprecation warning +- Limit Python files matched in %files section +- Switch package to modern Python Stack on SLE-15 + * Use Python 3.11 on SLE-15 by default + * Drop support for older Python versions +- Switch build system from setuptools to pyproject.toml + * Add python-pip and python-wheel to BuildRequires + * Replace %python_build with %pyproject_wheel + * Replace %python_install with %pyproject_install + * Update name for dist directory in %files section + +------------------------------------------------------------------- +Wed Nov 9 19:10:36 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 3.6 + * Added read0 flag to enable reading 0 bytes after transfer to lower CS when cshigh == True + +------------------------------------------------------------------- +Tue Jul 28 08:43:38 UTC 2020 - Marketa Calabkova + +- Update to 3.5 + * Fixed memory leaks + +------------------------------------------------------------------- +Thu Nov 7 14:25:22 UTC 2019 - Guillaume GARDET + +- Uses tarball from github which includes the license file + +------------------------------------------------------------------- +Wed Nov 6 14:13:06 UTC 2019 - Guillaume GARDET + +- Add missing LICENSE file + +------------------------------------------------------------------- +Wed Nov 6 09:28:38 UTC 2019 - Guillaume GARDET + +- Initial version 3.4 + diff --git a/python-spidev.spec b/python-spidev.spec new file mode 100644 index 0000000..01dd4ca --- /dev/null +++ b/python-spidev.spec @@ -0,0 +1,52 @@ +# +# spec file for package python-spidev +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-spidev +Version: 3.8 +Release: 0 +Summary: Python module for interfacing with SPI devices +License: MIT +URL: https://pypi.org/project/spidev/ +Source0: https://files.pythonhosted.org/packages/source/s/spidev/spidev-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +%python_subpackages + +%description +This package contains the python module for interfacing with SPI devices from user space via the spidev linux kernel driver. + +%prep +%setup -q -n spidev-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitearch}/spidev*.so +%{python_sitearch}/spidev-%{version}.dist-info + +%changelog diff --git a/spidev-3.7.tar.gz b/spidev-3.7.tar.gz new file mode 100644 index 0000000..a84fddc --- /dev/null +++ b/spidev-3.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce628a5ff489f45132679879bff5f455a66abf9751af01843850155b06ae92f0 +size 11616 diff --git a/spidev-3.8.tar.gz b/spidev-3.8.tar.gz new file mode 100644 index 0000000..5042cb0 --- /dev/null +++ b/spidev-3.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2bc02fb8c6312d519ebf1f4331067427c0921d3f77b8bcaf05189a2e8b8382c0 +size 13893