SHA256
1
0
forked from pool/libgusb
libgusb/libgusb.spec
Bjørn Lie 83d714b6da Accepting request 861537 from GNOME:Next
- Add baselibs.conf: build libgusb2-32bit, which is a dependency to
  libfprint-2-2-32bit. Due to a installcheck bot issue, this
  happened to be undetected for a while though.

OBS-URL: https://build.opensuse.org/request/show/861537
OBS-URL: https://build.opensuse.org/package/show/hardware/libgusb?expand=0&rev=34
2021-01-08 13:46:39 +00:00

105 lines
3.2 KiB
RPMSpec

#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: libgusb
Version: 0.3.5
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
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