forked from pool/libgusb
Dominique Leuenberger
cb5bb1e008
- update to version 0.2.4 - update project url - increase glib build requirement to 2.38 OBS-URL: https://build.opensuse.org/request/show/287203 OBS-URL: https://build.opensuse.org/package/show/hardware/libgusb?expand=0&rev=11
105 lines
3.2 KiB
RPMSpec
105 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package libgusb
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libgusb
|
|
Version: 0.2.4
|
|
Release: 0
|
|
Summary: GObject-based library for libusb1
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
Url: https://github.com/hughsie/libgusb
|
|
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
|
|
BuildRequires: vala
|
|
BuildRequires: xz
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.38.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: GObject-based library for libusb1 -- Introspection bindings
|
|
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: GObject-based library for libusb1 -- Development Files
|
|
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
|
|
%configure \
|
|
--disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
|
|
|
%post -n libgusb2 -p /sbin/ldconfig
|
|
|
|
%postun -n libgusb2 -p /sbin/ldconfig
|
|
|
|
%files -n libgusb2
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS COPYING NEWS README
|
|
%{_libdir}/libgusb.so.?
|
|
%{_libdir}/libgusb.so.?.0.*
|
|
|
|
%files -n typelib-1_0-GUsb-1_0
|
|
%defattr(-,root,root)
|
|
%{_libdir}/girepository-1.0/GUsb-1.0.typelib
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_datadir}/gir-1.0/GUsb-1.0.gir
|
|
%dir %{_datadir}/vala/vapi
|
|
%{_datadir}/vala/vapi/gusb.vapi
|
|
%{_includedir}/gusb-1/
|
|
%{_libdir}/libgusb.so
|
|
%{_libdir}/pkgconfig/gusb.pc
|
|
%doc %{_datadir}/gtk-doc/html/gusb/
|
|
|
|
%changelog
|