From 4f79654dc99650961be901315150d105b36b6498263f2820bcde8485bf2acb01 Mon Sep 17 00:00:00 2001 From: Guillaume GARDET Date: Thu, 13 Jun 2024 09:08:18 +0000 Subject: [PATCH] Accepting request 1180341 from home:Guillaume_G:branches:devel:languages:python - Update to 24.01.1 OBS-URL: https://build.opensuse.org/request/show/1180341 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-usbsdmux?expand=0&rev=7 --- python-usbsdmux.changes | 42 +++++++++++++++++++++++++++++++++++++++++ python-usbsdmux.spec | 20 +++++++++++--------- usbsdmux-0.2.1.tar.gz | 3 --- usbsdmux-24.01.1.tar.gz | 3 +++ 4 files changed, 56 insertions(+), 12 deletions(-) delete mode 100644 usbsdmux-0.2.1.tar.gz create mode 100644 usbsdmux-24.01.1.tar.gz diff --git a/python-usbsdmux.changes b/python-usbsdmux.changes index 14fae75..d9ad922 100644 --- a/python-usbsdmux.changes +++ b/python-usbsdmux.changes @@ -1,3 +1,45 @@ +------------------------------------------------------------------- +Thu Jun 13 07:52:14 UTC 2024 - Guillaume GARDET + +- Switch from 'plugdev' group to 'disk' group for udev rule +- Update to 24.01.1: + * introduce (optional) logging of meta-data via MQTT. + See the README for more details on how to use it. + * What's Changed + - Add statistics via mqtt by @BedaKraus in #68 + - README: Update DCO to follow the kernel wording by @SmithChart in #70 +- Skipped 24.01: + * Our tool can now read the SCR, CID and CSD SD card registers from + the card reader ID, decode their contents and print the result on + the screen. Give the usbsdmux /dev/sg0 info command a try. + * Since the register contents are structured information we decided + to add a JSON-output, so the information can be used by other tools. + * What's Changed + - implement 'info' command to show SD card SCR, CID and CSD by @jluebbe in #58 + - Add JSON status output for all commands and errors by @SmithChart in #60 + - Add support for decoding SCR, CID and CSD registers by @jluebbe in #62 + - Add pytest tests and a GitHub Actions workflow for SD register decoding by @jluebbe in #63 + - add test that checks README.rst against usbsdmux -h output by @jluebbe in #65 +- Skipped 0.3.0: + * add support for a new hardware revision of our USB-SD-Mux. + * The new hardware features two open-drain outputs and is built + around a new I2C port expander and a faster analog switch for + the SD-Card. + * Breaking Changes: + - If you are using this tool as a Python library: This release + changes the API. The usbsdmux.UsbSdMux class is now an abstract + base class and can not be instantiated directly. Use the + usbsdmux.autoselect_driver() function to obtain an instance of + the correct type. + * What's Changed: + - Cleanups for usb2642i2c by @ukleinek in #42 + - create a basic debian package by @jluebbe in #38 + - flake8 and black: Fix Problems and add Actions for verification by @SmithChart in #47 + - README: fix typo in UDEV rule path by @remes-codasip in #54 + - Drop debian packaging by @ukleinek in #53 + - Add support for the USB-SD-Mux FAST by @SmithChart in #52 + - Increment package version to 0.3.0 by @SmithChart in #56 + ------------------------------------------------------------------- Thu Mar 17 08:56:58 UTC 2022 - Guillaume GARDET diff --git a/python-usbsdmux.spec b/python-usbsdmux.spec index bb3b612..7e09861 100644 --- a/python-usbsdmux.spec +++ b/python-usbsdmux.spec @@ -1,7 +1,7 @@ # # spec file for package python-usbsdmux # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -16,16 +16,15 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -%define orig_name usbsdmux +%define skip_python2 1 +%define orig_name usbsdmux Name: python-usbsdmux -Version: 0.2.1 +Version: 24.01.1 Release: 0 Summary: Tool to control an usb-sd-mux from the command line License: LGPL-2.1-or-later URL: https://shop.linux-automation.com/index.php?route=product/product&product_id=50 -Source0: https://github.com/pengutronix/usbsdmux/archive/%{version}.tar.gz#/%{orig_name}-%{version}.tar.gz +Source0: https://github.com/linux-automation/usbsdmux/archive/%{version}.tar.gz#/%{orig_name}-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -34,7 +33,7 @@ BuildRequires: python-rpm-macros BuildRequires: pkgconfig(udev) Requires: %{orig_name}-udev Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -57,14 +56,17 @@ Udev rules for usbsdmux %install %python_install # Fix interpreter -for i in %{buildroot}%{python_sitelib}/usbsdmux/{__main__.py,ctypehelper.py,pca9536.py,service.py,usb2642eeprom.py,usb2642i2c.py,usbsdmux.py}; do +%{python_expand # Fix all supported python version +for i in %{buildroot}%{$python_sitelib}/usbsdmux/*.py; do sed -i 's#%{_bindir}/env python3#%{_bindir}/python3#' $i chmod +x $i done +} %python_clone -a %{buildroot}%{_bindir}/usbsdmux %python_clone -a %{buildroot}%{_bindir}/usbsdmux-configure %python_clone -a %{buildroot}%{_bindir}/usbsdmux-service -# Install udev rules +# Install udev rules (and switch from 'plugdev' group to 'disk' group) +sed -i 's/plugdev/disk/' contrib/udev/99-usbsdmux.rules mkdir -p %{buildroot}%{_udevrulesdir} cp contrib/udev/99-usbsdmux.rules %{buildroot}%{_udevrulesdir} # Run fdupes diff --git a/usbsdmux-0.2.1.tar.gz b/usbsdmux-0.2.1.tar.gz deleted file mode 100644 index 7db226b..0000000 --- a/usbsdmux-0.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2600816e6b9421c906e892768f22072f4afabf1f7d3fe17e58f7320cc4d5dbf2 -size 26495 diff --git a/usbsdmux-24.01.1.tar.gz b/usbsdmux-24.01.1.tar.gz new file mode 100644 index 0000000..41fe769 --- /dev/null +++ b/usbsdmux-24.01.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:284e7ed5ab8910cd6a697f9afd9f9a335bd46ae374df50b76c6d97af61cac91e +size 41682