From 738e75591ac4dce564c381000368b1028d2e56e8ace273952fa7c72fc0ee7444 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 9 Sep 2024 16:23:27 +0000 Subject: [PATCH] - Update to version 2.6.0 * Added support for Raspberry Pi 5 . * Fixed bug for big-endian platforms. * Fixed sysfs path bug for Linux kernel 6.x or higher. * Added flash (inverted cycle) option - turn power on then off. * Improved Linux detection. * Added more devices to supported table. OBS-URL: https://build.opensuse.org/package/show/devel:tools/uhubctl?expand=0&rev=14 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + uhubctl-2.5.0.tar.gz | 3 ++ uhubctl-2.6.0.tar.gz | 3 ++ uhubctl.changes | 101 +++++++++++++++++++++++++++++++++++++++++++ uhubctl.spec | 49 +++++++++++++++++++++ 6 files changed, 180 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 uhubctl-2.5.0.tar.gz create mode 100644 uhubctl-2.6.0.tar.gz create mode 100644 uhubctl.changes create mode 100644 uhubctl.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/uhubctl-2.5.0.tar.gz b/uhubctl-2.5.0.tar.gz new file mode 100644 index 0000000..a06170a --- /dev/null +++ b/uhubctl-2.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4452252f7862f7a45dd9c62f2ea7cd3a57ab5f5ab0e54a857d4c695699bbba3 +size 28241 diff --git a/uhubctl-2.6.0.tar.gz b/uhubctl-2.6.0.tar.gz new file mode 100644 index 0000000..5b1969f --- /dev/null +++ b/uhubctl-2.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56ca15ddf96d39ab0bf8ee12d3daca13cea45af01bcd5a9732ffcc01664fdfa2 +size 29255 diff --git a/uhubctl.changes b/uhubctl.changes new file mode 100644 index 0000000..0ed1452 --- /dev/null +++ b/uhubctl.changes @@ -0,0 +1,101 @@ +------------------------------------------------------------------- +Mon Sep 9 13:44:50 UTC 2024 - Martin Hauke + +- Update to version 2.6.0 + * Added support for Raspberry Pi 5 . + * Fixed bug for big-endian platforms. + * Fixed sysfs path bug for Linux kernel 6.x or higher. + * Added flash (inverted cycle) option - turn power on then off. + * Improved Linux detection. + * Added more devices to supported table. + +------------------------------------------------------------------- +Fri Nov 4 19:17:59 UTC 2022 - Martin Hauke + +- Update to version 2.5.0 + * Added support for Linux sysfs based power switching provided + in Linux kernel 6.0+ - it allows to solve reliability issues + when turning power off on Linux. + * Added option --nodesc to skip querying device string + descriptors (necessary for some buggy devices which otherwise + would completely freeze). + * New simpler way to configure udev rules on Linux (one rule + works for any USB hub). + * Even more supported devices. + +------------------------------------------------------------------- +Sun Feb 14 08:47:13 UTC 2021 - Martin Hauke + +- Update to version 2.4.0 + * Support for toggle action (turn power on or off opposite to + current power state). + * More sane error reporting when we enumerate devices which + lack permissions. + * Allow pkg-config override to make some build systems (e.g. + chromium OS) happier. + * Even more supported devices. + +------------------------------------------------------------------- +Mon Dec 14 06:52:33 UTC 2020 - Martin Hauke + +- Update to version 2.3.0 + * Much improved USB3 support, in particular for RPi 4B and + M1 Macs + * Allow forced operation on unsupported hubs - not likely to + work though + * More supported devices + +------------------------------------------------------------------- +Sat May 23 07:51:01 UTC 2020 - Martin Hauke + +- Update to version 2.2.0 + * Added support for Raspberry Pi 4B + * Added many more devices to supported table + +------------------------------------------------------------------- +Tue Sep 3 14:40:20 UTC 2019 - Martin Hauke + +- Update to new upstream release 2.1.0: + * Add explicit workaround for USB device not removed after port + power down on Linux + * Implemented reading ContainerID from BOS descriptor to detect + USB2/3 dual devices + * Support fractional seconds for delay + * Improve USB2/3 duality handling + * Add support for comma separated list of ranges to port list parser + * Improve USB3 support + +------------------------------------------------------------------- +Mon Jun 18 10:08:30 UTC 2018 - mardnh@gmx.de + +- Update to version 2.0.0+git20180615.1709413: + * j5create JUH470 only works in USB2 mode + * Add D-Link DUB H7 rev D1 (black) as supported device + * Add Renesas uPD720202 PCIe USB 3.0 host controller as supported device + * Add Raspberry Pi Model 3 B+ as supported device + * Add columns for port count and USB version into device table + * Code formatting cleanups + * Fixed displaying duplicate hubs in status output + * Add Moxa Uport-407 as supported device + * Remove mention of building libusb 1.0.22 from head + * move action to outer loop and hub to inner loop (fixes #86) +- Run spec-cleaner + +------------------------------------------------------------------- +Tue May 30 07:56:27 UTC 2017 - ptesarik@suse.com + +- Update to version 0+git20170520.e537110: + * Bump copyright year + * Add AmazonBasics 7 port USB 3.0 hub as supported device + * Add Asus Z87-PLUS as supported device + * Add Rosewill RHUB-210 as supported device + * Add support for FreeBSD and MacPorts on Mac + * Add information about release and EOL years for supported hubs + * add option to reset hub after operation + * Add Sunix SHB4200MA as compatible device + * fix docs for -R (from #30) + +------------------------------------------------------------------- +Tue May 30 07:55:43 UTC 2017 - ptesarik@suse.com + +- initial commit. diff --git a/uhubctl.spec b/uhubctl.spec new file mode 100644 index 0000000..8cfc114 --- /dev/null +++ b/uhubctl.spec @@ -0,0 +1,49 @@ +# +# spec file for package uhubctl +# +# 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/ +# + + +Name: uhubctl +Version: 2.6.0 +Release: 0 +Summary: USB hub per-port power control +License: GPL-2.0-only +Group: Development/Tools/Other +URL: https://github.com/mvp/uhubctl +Source: https://github.com/mvp/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libusb-1.0) + +%description +uhubctl is utility to control USB power per-port on smart USB hubs. +Smart hub is defined as one that implements per-port power switching. + +%prep +%setup -q + +%build +export CFLAGS="%{optflags}" +make %{?_smp_mflags} + +%install +%make_install + +%files +%license COPYING LICENSE +%doc README.md +%{_sbindir}/uhubctl + +%changelog