From 70a52fe3b02eef8dd648ef6e5bb8578303754bc1e8eebd81e0c66487a5f87271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Mon, 16 Oct 2023 10:36:03 +0000 Subject: [PATCH] Accepting request 1117866 from GNOME:Next OBS-URL: https://build.opensuse.org/request/show/1117866 OBS-URL: https://build.opensuse.org/package/show/hardware/libgusb?expand=0&rev=44 --- libgusb-0.3.10.tar.xz | 3 --- libgusb-0.4.7.tar.xz | 3 +++ libgusb.changes | 34 ++++++++++++++++++++++++++++++++++ libgusb.spec | 18 ++++++++++-------- 4 files changed, 47 insertions(+), 11 deletions(-) delete mode 100644 libgusb-0.3.10.tar.xz create mode 100644 libgusb-0.4.7.tar.xz diff --git a/libgusb-0.3.10.tar.xz b/libgusb-0.3.10.tar.xz deleted file mode 100644 index 3878c38..0000000 --- a/libgusb-0.3.10.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0eb0b9ab0f8bba0c59631c809c37b616ef34eb3c8e000b0b9b71cf11e4931bdc -size 42972 diff --git a/libgusb-0.4.7.tar.xz b/libgusb-0.4.7.tar.xz new file mode 100644 index 0000000..075fabb --- /dev/null +++ b/libgusb-0.4.7.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8acdd015c6f572555f8ec54c045e2d340baeb08468f6be519369c713794234f7 +size 51448 diff --git a/libgusb.changes b/libgusb.changes index d1ba21f..00e91b0 100644 --- a/libgusb.changes +++ b/libgusb.changes @@ -1,3 +1,37 @@ +------------------------------------------------------------------- +Sun Oct 15 08:16:29 UTC 2023 - Bjørn Lie + +- Update to version 0.4.7: + + Add new API to get the HID descriptor data + + Add calling convention to libusb callback functions +- Changes from version 0.4.6: + + Add JSON compatibility helpers for old json-glib versions + + Fix emulation of devices using out-of-order BulkTransfer + replies + + Use project_source_root to fix building as a subproject +- Changes from version 0.4.5: + + Add new API to better detect emulated replug + + Do not emit spurious ::device-removed events when emulating + + Record zero-sized device events + + Reset the in-order event index when clearing the event array + + Save the libusb error if libusb_submit_transfer() fails +- Changes from version 0.4.4: + + Add new API to make emulation easier to use + + Emit remove devices with matching tags when loading contexts + + Fix a critical warning when finalizing devices without + endpoints + + Reduce the debugging level when emulating firmware +- Changes from version 0.4.3: + + Export g_usb_device_has_tag() + + Work around a libusb issue which causes devices to appear twice +- Add pkgconfig(gi-docgen) and pkgconfig(json-glib-1.0) + BuildRequires: New dependencies. +- Drop gtk-doc BuildRequires: No longer needed, nor used after the + port upstream. +- Pass tests=false to meson setup, do not build or install any + tests at this time. +- Use ldconfig_scriptlets macro for post(un) handling. + ------------------------------------------------------------------- Fri Aug 5 11:30:24 UTC 2022 - Matej Cepl diff --git a/libgusb.spec b/libgusb.spec index 6fc8404..862a54f 100644 --- a/libgusb.spec +++ b/libgusb.spec @@ -1,7 +1,7 @@ # # spec file for package libgusb # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,26 +17,27 @@ Name: libgusb -Version: 0.3.10 +Version: 0.4.7 Release: 0 Summary: GObject-based library for libusb1 License: LGPL-2.1-or-later Group: Development/Libraries/GNOME URL: https://github.com/hughsie/libgusb -Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz +Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz Source99: baselibs.conf # PATCH-FIX-UPSTREAM no-pkg-resources.patch gh#hughsie/libgusb#61 mcepl@suse.com # Don't rely on the obsolete version of pkg_resources Patch0: no-pkg-resources.patch -BuildRequires: gtk-doc BuildRequires: meson BuildRequires: pkgconfig BuildRequires: python3-base BuildRequires: python3-packaging BuildRequires: vala +BuildRequires: pkgconfig(gi-docgen) BuildRequires: pkgconfig(glib-2.0) >= 2.44.0 BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.29 BuildRequires: pkgconfig(gudev-1.0) +BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libusb-1.0) >= 1.0.19 %description @@ -77,14 +78,15 @@ cancellation and integration into a mainloop. %autosetup -p1 %build -%meson +%meson \ + -D tests=false \ + %{nil} %meson_build %install %meson_install -%post -n libgusb2 -p /sbin/ldconfig -%postun -n libgusb2 -p /sbin/ldconfig +%ldconfig_scriptlets -n libgusb2 %files -n libgusb2 %license COPYING @@ -96,7 +98,7 @@ cancellation and integration into a mainloop. %{_libdir}/girepository-1.0/GUsb-1.0.typelib %files devel -%doc %{_datadir}/gtk-doc/html/gusb/ +%doc %{_datadir}/doc/libgusb %{_bindir}/gusbcmd %{_datadir}/gir-1.0/GUsb-1.0.gir %dir %{_datadir}/vala/vapi