SHA256
1
0
forked from pool/libgusb
libgusb/libgusb.spec

105 lines
3.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libgusb
#
# Copyright (c) 2021 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.
Accepting request 834277 from home:dirkmueller:branches:hardware - update to 0.3.5: - Add a way to get iConfiguration (Benson Leung) - Allow building GtkDoc when building as a subproject (Richard Hughes) - Fix version script to be more portable (Laurent Bigonville, Ting-Wei Lan) - Include methods on plain structs in the version script (Simon McVittie) - This fixes the symbol version for g_usb_version_string() to be in the right place, so update this library alongside with external programs if you've already started using this symbol for example in fwupd. We've put a mechanism in place so this kind of thing can't happen again. Sorry! - Validate the exported symbol list during check (Richard Hughes) - Include the USB bus in the generated platform_id (Richard Hughes) - Add a thin glib wrapper around libusb_endpoint_descriptor (Emmanuel Pacaud) - Fix high number of wakeups when checking the GUsbContext (Richard Hughes) - Use '#pragma once' to reduce boilerplate (Richard Hughes) - Wrap the upstream libusb_strerror() (Richard Hughes) - Do not use deprecated libusb API (Richard Hughes) - Fix compilation on macOS (Richard Hughes) - Use a 1ms timeout in the Windows event thread (Richard Hughes) - Use has_link_argument() to detect linker flags (Richard Hughes) - Add g_usb_device_get_spec() (Richard Hughes) - Add g_usb_version_string() for fwupd (Richard Hughes) - Add -Wswitch-enum (Benjamin Berg) - Fix GI length introspection annotations (grindhold) - Make gir generation optional (maxice8) OBS-URL: https://build.opensuse.org/request/show/834277 OBS-URL: https://build.opensuse.org/package/show/hardware/libgusb?expand=0&rev=32
2020-09-15 12:39:21 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: libgusb
Accepting request 834277 from home:dirkmueller:branches:hardware - update to 0.3.5: - Add a way to get iConfiguration (Benson Leung) - Allow building GtkDoc when building as a subproject (Richard Hughes) - Fix version script to be more portable (Laurent Bigonville, Ting-Wei Lan) - Include methods on plain structs in the version script (Simon McVittie) - This fixes the symbol version for g_usb_version_string() to be in the right place, so update this library alongside with external programs if you've already started using this symbol for example in fwupd. We've put a mechanism in place so this kind of thing can't happen again. Sorry! - Validate the exported symbol list during check (Richard Hughes) - Include the USB bus in the generated platform_id (Richard Hughes) - Add a thin glib wrapper around libusb_endpoint_descriptor (Emmanuel Pacaud) - Fix high number of wakeups when checking the GUsbContext (Richard Hughes) - Use '#pragma once' to reduce boilerplate (Richard Hughes) - Wrap the upstream libusb_strerror() (Richard Hughes) - Do not use deprecated libusb API (Richard Hughes) - Fix compilation on macOS (Richard Hughes) - Use a 1ms timeout in the Windows event thread (Richard Hughes) - Use has_link_argument() to detect linker flags (Richard Hughes) - Add g_usb_device_get_spec() (Richard Hughes) - Add g_usb_version_string() for fwupd (Richard Hughes) - Add -Wswitch-enum (Benjamin Berg) - Fix GI length introspection annotations (grindhold) - Make gir generation optional (maxice8) OBS-URL: https://build.opensuse.org/request/show/834277 OBS-URL: https://build.opensuse.org/package/show/hardware/libgusb?expand=0&rev=32
2020-09-15 12:39:21 +02:00
Version: 0.3.5
Release: 0
Summary: GObject-based library for libusb1
License: LGPL-2.1-or-later
Group: Development/Libraries/GNOME
Accepting request 834277 from home:dirkmueller:branches:hardware - update to 0.3.5: - Add a way to get iConfiguration (Benson Leung) - Allow building GtkDoc when building as a subproject (Richard Hughes) - Fix version script to be more portable (Laurent Bigonville, Ting-Wei Lan) - Include methods on plain structs in the version script (Simon McVittie) - This fixes the symbol version for g_usb_version_string() to be in the right place, so update this library alongside with external programs if you've already started using this symbol for example in fwupd. We've put a mechanism in place so this kind of thing can't happen again. Sorry! - Validate the exported symbol list during check (Richard Hughes) - Include the USB bus in the generated platform_id (Richard Hughes) - Add a thin glib wrapper around libusb_endpoint_descriptor (Emmanuel Pacaud) - Fix high number of wakeups when checking the GUsbContext (Richard Hughes) - Use '#pragma once' to reduce boilerplate (Richard Hughes) - Wrap the upstream libusb_strerror() (Richard Hughes) - Do not use deprecated libusb API (Richard Hughes) - Fix compilation on macOS (Richard Hughes) - Use a 1ms timeout in the Windows event thread (Richard Hughes) - Use has_link_argument() to detect linker flags (Richard Hughes) - Add g_usb_device_get_spec() (Richard Hughes) - Add g_usb_version_string() for fwupd (Richard Hughes) - Add -Wswitch-enum (Benjamin Berg) - Fix GI length introspection annotations (grindhold) - Make gir generation optional (maxice8) OBS-URL: https://build.opensuse.org/request/show/834277 OBS-URL: https://build.opensuse.org/package/show/hardware/libgusb?expand=0&rev=32
2020-09-15 12:39:21 +02:00
URL: https://github.com/hughsie/libgusb
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: gtk-doc
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: vala
BuildRequires: pkgconfig(glib-2.0) >= 2.44.0
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.29
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(libusb-1.0) >= 1.0.19
%description
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.
%package -n libgusb2
Summary: GObject-based library for libusb1
Group: System/Libraries
%description -n libgusb2
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.
%package -n typelib-1_0-GUsb-1_0
Summary: Introspection bindings for libgusb, a GObject-based wrapper for libusb1
Group: System/Libraries
%description -n typelib-1_0-GUsb-1_0
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.
%package devel
Summary: Development files for libgusb, a GObject-based wrapper for libusb1
Group: Development/Libraries/C and C++
Requires: libgusb2 = %{version}
Requires: typelib-1_0-GUsb-1_0 = %{version}
%description devel
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.
%prep
%setup -q
%build
%meson
%meson_build
%install
%meson_install
%post -n libgusb2 -p /sbin/ldconfig
%postun -n libgusb2 -p /sbin/ldconfig
%files -n libgusb2
%license COPYING
%doc AUTHORS NEWS
%{_libdir}/libgusb.so.?
%{_libdir}/libgusb.so.?.0.*
%files -n typelib-1_0-GUsb-1_0
%{_libdir}/girepository-1.0/GUsb-1.0.typelib
%files devel
%doc %{_datadir}/gtk-doc/html/gusb/
%{_bindir}/gusbcmd
%{_datadir}/gir-1.0/GUsb-1.0.gir
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/gusb.deps
%{_datadir}/vala/vapi/gusb.vapi
%{_includedir}/gusb-1/
%{_libdir}/libgusb.so
%{_libdir}/pkgconfig/gusb.pc
%changelog