2012-01-18 09:53:29 +01:00
|
|
|
#
|
|
|
|
# spec file for package libgusb
|
|
|
|
#
|
2023-10-16 12:36:03 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-01-18 09:53:29 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-09-15 12:39:21 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-18 09:53:29 +01:00
|
|
|
#
|
|
|
|
|
2012-09-07 17:46:28 +02:00
|
|
|
|
2012-01-18 09:53:29 +01:00
|
|
|
Name: libgusb
|
2023-11-07 21:59:17 +01:00
|
|
|
Version: 0.4.8
|
2012-01-18 09:53:29 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: GObject-based library for libusb1
|
2018-03-05 18:52:49 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2018-03-09 11:49:11 +01:00
|
|
|
Group: Development/Libraries/GNOME
|
2020-09-15 12:39:21 +02:00
|
|
|
URL: https://github.com/hughsie/libgusb
|
2023-10-16 12:36:03 +02:00
|
|
|
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2021-01-08 14:46:39 +01:00
|
|
|
Source99: baselibs.conf
|
2022-08-05 14:39:42 +02:00
|
|
|
# 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
|
2018-03-09 12:48:32 +01:00
|
|
|
BuildRequires: meson
|
2018-03-05 18:52:49 +01:00
|
|
|
BuildRequires: pkgconfig
|
2022-08-05 14:39:42 +02:00
|
|
|
BuildRequires: python3-base
|
|
|
|
BuildRequires: python3-packaging
|
2012-11-19 11:04:30 +01:00
|
|
|
BuildRequires: vala
|
2023-10-16 12:36:03 +02:00
|
|
|
BuildRequires: pkgconfig(gi-docgen)
|
2017-09-06 22:30:49 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.44.0
|
2012-11-19 11:04:30 +01:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.29
|
2012-01-18 09:53:29 +01:00
|
|
|
BuildRequires: pkgconfig(gudev-1.0)
|
2023-10-16 12:36:03 +02:00
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
2014-12-19 11:11:57 +01:00
|
|
|
BuildRequires: pkgconfig(libusb-1.0) >= 1.0.19
|
2012-01-18 09:53:29 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2012-11-19 11:04:30 +01:00
|
|
|
%package -n typelib-1_0-GUsb-1_0
|
2018-03-09 11:49:11 +01:00
|
|
|
Summary: Introspection bindings for libgusb, a GObject-based wrapper for libusb1
|
2012-11-19 11:04:30 +01:00
|
|
|
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.
|
|
|
|
|
2012-01-18 09:53:29 +01:00
|
|
|
%package devel
|
2018-03-09 11:49:11 +01:00
|
|
|
Summary: Development files for libgusb, a GObject-based wrapper for libusb1
|
2012-01-18 09:53:29 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libgusb2 = %{version}
|
2012-11-19 11:04:30 +01:00
|
|
|
Requires: typelib-1_0-GUsb-1_0 = %{version}
|
2012-01-18 09:53:29 +01:00
|
|
|
|
|
|
|
%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
|
2022-08-05 14:39:42 +02:00
|
|
|
%autosetup -p1
|
2012-01-18 09:53:29 +01:00
|
|
|
|
|
|
|
%build
|
2023-10-16 12:36:03 +02:00
|
|
|
%meson \
|
|
|
|
-D tests=false \
|
|
|
|
%{nil}
|
2018-03-09 12:48:32 +01:00
|
|
|
%meson_build
|
2012-01-18 09:53:29 +01:00
|
|
|
|
|
|
|
%install
|
2018-03-09 12:48:32 +01:00
|
|
|
%meson_install
|
2012-01-18 09:53:29 +01:00
|
|
|
|
2023-10-16 12:36:03 +02:00
|
|
|
%ldconfig_scriptlets -n libgusb2
|
2012-01-18 09:53:29 +01:00
|
|
|
|
|
|
|
%files -n libgusb2
|
2018-03-05 18:52:49 +01:00
|
|
|
%license COPYING
|
2018-03-09 12:48:32 +01:00
|
|
|
%doc AUTHORS NEWS
|
2012-01-18 09:53:29 +01:00
|
|
|
%{_libdir}/libgusb.so.?
|
|
|
|
%{_libdir}/libgusb.so.?.0.*
|
|
|
|
|
2012-11-19 11:04:30 +01:00
|
|
|
%files -n typelib-1_0-GUsb-1_0
|
|
|
|
%{_libdir}/girepository-1.0/GUsb-1.0.typelib
|
|
|
|
|
2012-01-18 09:53:29 +01:00
|
|
|
%files devel
|
2023-10-16 12:36:03 +02:00
|
|
|
%doc %{_datadir}/doc/libgusb
|
2016-03-31 21:45:29 +02:00
|
|
|
%{_bindir}/gusbcmd
|
2012-11-19 11:04:30 +01:00
|
|
|
%{_datadir}/gir-1.0/GUsb-1.0.gir
|
|
|
|
%dir %{_datadir}/vala/vapi
|
2018-03-09 12:48:32 +01:00
|
|
|
%{_datadir}/vala/vapi/gusb.deps
|
2012-11-19 11:04:30 +01:00
|
|
|
%{_datadir}/vala/vapi/gusb.vapi
|
2012-01-18 09:53:29 +01:00
|
|
|
%{_includedir}/gusb-1/
|
|
|
|
%{_libdir}/libgusb.so
|
|
|
|
%{_libdir}/pkgconfig/gusb.pc
|
|
|
|
|
|
|
|
%changelog
|