71a721
Summary:   GLib wrapper around libusb1
71a721
Name:      libgusb
82228f
Version:   0.3.8
82228f
Release:   1%{?dist}
71a721
License:   LGPLv2+
71a721
URL:       https://github.com/hughsie/libgusb
71a721
Source0:   http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
71a721
71a721
BuildRequires: glib2-devel >= 2.38.0
71a721
BuildRequires: gobject-introspection-devel
71a721
BuildRequires: gtk-doc
71a721
BuildRequires: libusb1-devel >= 1.0.19
71a721
BuildRequires: meson
71a721
BuildRequires: vala
71a721
71a721
%description
71a721
GUsb is a GObject wrapper for libusb1 that makes it easy to do
71a721
asynchronous control, bulk and interrupt transfers with proper
71a721
cancellation and integration into a mainloop.
71a721
71a721
%package devel
71a721
Summary: Libraries and headers for gusb
71a721
Requires: %{name} = %{version}-%{release}
71a721
71a721
%description devel
71a721
GLib headers and libraries for gusb.
71a721
71a721
%prep
71a721
%setup -q
71a721
71a721
%build
71a721
%meson -Dvapi=true -Dtests=true
71a721
71a721
%meson_build
71a721
71a721
%install
71a721
%meson_install
71a721
71a721
%ldconfig_scriptlets
71a721
71a721
%files
71a721
%doc README.md AUTHORS NEWS COPYING
71a721
%{_libdir}/libgusb.so.?
71a721
%{_libdir}/libgusb.so.?.0.*
71a721
%{_libdir}/girepository-1.0/GUsb-1.0.typelib
71a721
71a721
%files devel
71a721
%{_includedir}/gusb-1
71a721
%{_bindir}/gusbcmd
71a721
%{_libdir}/libgusb.so
71a721
%{_libdir}/pkgconfig/gusb.pc
71a721
%{_datadir}/gtk-doc/html/gusb
71a721
%{_datadir}/gir-1.0/GUsb-1.0.gir
71a721
%{_datadir}/vala/vapi/gusb.deps
71a721
%{_datadir}/vala/vapi/gusb.vapi
71a721
71a721
%changelog
82228f
* Wed Oct 06 2021 Richard Hughes <richard@hughsie.com> 0.3.8-1
82228f
- New upstream version
82228f
- Add new API requested by fwupd
82228f
- Add the GUsbEndpoint methods to the docs
82228f
- Fix hotplug handling and signal emission during enumerate
82228f
- Do not double-reference USB devices
82228f
- Resolves: rhbz#1965885
82228f
71a721
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.3.6-3
71a721
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
71a721
  Related: rhbz#1991688
71a721
71a721
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.3.6-2
71a721
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
71a721
71a721
* Fri Mar 12 2021 Richard Hughes <richard@hughsie.com> 0.3.6-1
71a721
- New upstream version
71a721
- Add g_usb_device_get_string_descriptor_bytes()
71a721
- Fix cancellation if cancellable is already cancelled
71a721
71a721
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-2
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
71a721
71a721
* Thu Jul 30 2020 Richard Hughes <richard@hughsie.com> 0.3.5-1
71a721
- New upstream version
71a721
- Add a way to get iConfiguration
71a721
- Allow building GtkDoc when building as a subproject
71a721
71a721
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-2
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
71a721
71a721
* Thu Feb 20 2020 Richard Hughes <richard@hughsie.com> 0.3.4-1
71a721
- New upstream version
71a721
- Include the USB bus in the generated platform_id
71a721
- Validate the exported symbol list during check
71a721
71a721
* Thu Jan 30 2020 Richard Hughes <richard@hughsie.com> 0.3.3-1
71a721
- New upstream version
71a721
- Add a thin glib wrapper around libusb_endpoint_descriptor
71a721
- Fix high number of wakeups when checking the GUsbContext
71a721
71a721
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-2
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
71a721
71a721
* Mon Jan 06 2020 Richard Hughes <richard@hughsie.com> 0.3.2-1
71a721
- New upstream version
71a721
- Do not use deprecated libusb API
71a721
- Use a 1ms timeout in the Windows event thread
71a721
71a721
* Sat Nov 16 2019 Richard Hughes <richard@hughsie.com> 0.3.1-1
71a721
- New upstream version
71a721
- Add some new API for fwupd
71a721
- Fix GI length introspection annotations
71a721
71a721
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-5
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
71a721
71a721
* Mon Feb 04 2019 Kalev Lember <klember@redhat.com> - 0.3.0-4
71a721
- Update BRs for vala packaging changes
71a721
71a721
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
71a721
71a721
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
71a721
71a721
* Thu Feb 15 2018 Richard Hughes <richard@hughsie.com> 0.3.0-1
71a721
- New upstream version
71a721
- Port to the Meson build system
71a721
71a721
* Thu Feb 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.11-4
71a721
- Switch to %%ldconfig_scriptlets
71a721
71a721
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-4
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
71a721
71a721
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-3
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
71a721
71a721
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-2
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
71a721
71a721
* Mon Jul 24 2017 Richard Hughes <richard@hughsie.com> 0.2.11-1
71a721
- New upstream version
71a721
- Add new API allowing devices to be auto-opened
71a721
71a721
* Mon Apr 10 2017 Richard Hughes <richard@hughsie.com> 0.2.10-1
71a721
- New upstream version
71a721
- Correctly detect removed devices when rescanning
71a721
- Fix a memory leak when using control tranfers
71a721
- Fix symbol version table up to version 0.2.9
71a721
71a721
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-2
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
71a721
71a721
* Tue Mar 22 2016 Richard Hughes <richard@hughsie.com> 0.2.9-1
71a721
- New upstream version
71a721
- Add g_usb_context_wait_for_replug()
71a721
- Install gusbcmd as a debugging aid
71a721
71a721
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-2
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
71a721
71a721
* Tue Dec 01 2015 Richard Hughes <richard@hughsie.com> 0.2.8-1
71a721
- New upstream version
71a721
- Add a PERMISSION_DENIED error enum
71a721
- Add a thin glib wrapper around a libusb_interface_descriptor
71a721
- Ignore the not-found error when resetting a device
71a721
71a721
* Tue Sep 15 2015 Richard Hughes <richard@hughsie.com> 0.2.7-1
71a721
- New upstream version
71a721
- Add missing element-type annotations
71a721
- Support g_autoptr() for all gusb object types
71a721
71a721
* Mon Jul 06 2015 Richard Hughes <richard@hughsie.com> 0.2.6-1
71a721
- New upstream version
71a721
  Do not unref the GMainContext after each request
71a721
71a721
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-2
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
71a721
71a721
* Thu May 28 2015 Richard Hughes <richard@hughsie.com> 0.2.5-1
71a721
- New upstream version
71a721
- Add g_usb_device_get_custom_index()
71a721
- Allow setting the GMainContext when used for sync methods
71a721
- Use symbol versioning
71a721
71a721
* Mon Jan 09 2015 Richard Hughes <richard@hughsie.com> 0.2.4-1
71a721
- New upstream version
71a721
- Add new API for various client programs
71a721
- Don't filter out hub devices when getting the device list
71a721
- Make the platform ID persistent across re-plug
71a721
71a721
* Mon Dec 01 2014 Richard Hughes <richard@hughsie.com> 0.2.3-1
71a721
- New upstream version
71a721
- Correctly terminate the libusb event thread
71a721
71a721
* Wed Nov 26 2014 Richard Hughes <richard@hughsie.com> 0.2.2-1
71a721
- New upstream version
71a721
- Use a thread to process libusb1 events
71a721
71a721
* Mon Nov 24 2014 Richard Hughes <richard@hughsie.com> 0.2.1-1
71a721
- New upstream version
71a721
- Always set a device platform ID
71a721
- Ignore 'unsupported' as a return value for kernel drivers
71a721
71a721
* Thu Nov 20 2014 Richard Hughes <richard@hughsie.com> 0.2.0-1
71a721
- New upstream version
71a721
- Use the native hotplug support in libusb 1.0.19
71a721
- Fix a crash where libusb_get_pollfds() is unavailable
71a721
71a721
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-5
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
71a721
71a721
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.6-4
71a721
- Rebuilt for gobject-introspection 1.41.4
71a721
71a721
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-3
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
71a721
71a721
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-2
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
71a721
71a721
* Tue Feb 06 2013 Richard Hughes <richard@hughsie.com> 0.1.6-1
71a721
- New upstream version
71a721
- Do not use deprecated GLib functionality
71a721
- Unref the GMainloop after it has been run, not when just quit
71a721
71a721
* Tue Feb 05 2013 Richard Hughes <richard@hughsie.com> 0.1.5-1
71a721
- New upstream version
71a721
71a721
* Tue Nov 06 2012 Richard Hughes <richard@hughsie.com> 0.1.4-1
71a721
- New upstream version
71a721
- Add GObject Introspection support
71a721
- Add Vala bindings
71a721
71a721
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
71a721
71a721
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
71a721
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
71a721
71a721
* Mon Dec 05 2011 Richard Hughes <richard@hughsie.com> 0.1.3-1
71a721
- New upstream version
71a721
- Add a missing error enum value
71a721
71a721
* Fri Nov 11 2011 Richard Hughes <richard@hughsie.com> 0.1.2-1
71a721
- New upstream version
71a721
- Ignore EBUSY when trying to detach a detached kernel driver
71a721
71a721
* Tue Nov 01 2011 Richard Hughes <richard@hughsie.com> 0.1.1-1
71a721
- New upstream version
71a721
71a721
* Thu Sep 15 2011 Richard Hughes <richard@hughsie.com> 0.1.0-1
71a721
- Initial version for Fedora package review