forked from pool/python-usbsdmux
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
This commit is contained in:
@@ -1,3 +1,45 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 13 07:52:14 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- 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 <guillaume.gardet@opensuse.org>
|
Thu Mar 17 08:56:58 UTC 2022 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-usbsdmux
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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 skip_python2 1
|
%define orig_name usbsdmux
|
||||||
%define orig_name usbsdmux
|
|
||||||
Name: python-usbsdmux
|
Name: python-usbsdmux
|
||||||
Version: 0.2.1
|
Version: 24.01.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Tool to control an usb-sd-mux from the command line
|
Summary: Tool to control an usb-sd-mux from the command line
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
URL: https://shop.linux-automation.com/index.php?route=product/product&product_id=50
|
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 devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@@ -34,7 +33,7 @@ BuildRequires: python-rpm-macros
|
|||||||
BuildRequires: pkgconfig(udev)
|
BuildRequires: pkgconfig(udev)
|
||||||
Requires: %{orig_name}-udev
|
Requires: %{orig_name}-udev
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -57,14 +56,17 @@ Udev rules for usbsdmux
|
|||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
# Fix interpreter
|
# 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
|
sed -i 's#%{_bindir}/env python3#%{_bindir}/python3#' $i
|
||||||
chmod +x $i
|
chmod +x $i
|
||||||
done
|
done
|
||||||
|
}
|
||||||
%python_clone -a %{buildroot}%{_bindir}/usbsdmux
|
%python_clone -a %{buildroot}%{_bindir}/usbsdmux
|
||||||
%python_clone -a %{buildroot}%{_bindir}/usbsdmux-configure
|
%python_clone -a %{buildroot}%{_bindir}/usbsdmux-configure
|
||||||
%python_clone -a %{buildroot}%{_bindir}/usbsdmux-service
|
%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}
|
mkdir -p %{buildroot}%{_udevrulesdir}
|
||||||
cp contrib/udev/99-usbsdmux.rules %{buildroot}%{_udevrulesdir}
|
cp contrib/udev/99-usbsdmux.rules %{buildroot}%{_udevrulesdir}
|
||||||
# Run fdupes
|
# Run fdupes
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2600816e6b9421c906e892768f22072f4afabf1f7d3fe17e58f7320cc4d5dbf2
|
|
||||||
size 26495
|
|
3
usbsdmux-24.01.1.tar.gz
Normal file
3
usbsdmux-24.01.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:284e7ed5ab8910cd6a697f9afd9f9a335bd46ae374df50b76c6d97af61cac91e
|
||||||
|
size 41682
|
Reference in New Issue
Block a user