1 %define TIZEN_FEATURE_USBHOST_API on
6 License: LGPL-2.1+, MIT
8 Url: http://www.libusb.org/
9 Group: Base/Device Management
10 Source: %{name}-%{version}.tar.bz2
11 Source1: baselibs.conf
12 Source1001: libusb.manifest
13 BuildRequires: pkg-config
14 BuildRequires: systemd-devel
15 %if %{?TIZEN_FEATURE_USBHOST_API} == on
16 BuildRequires: pkgconfig(dbus-1)
20 Libusb is a library that allows userspace access to USB devices.
24 Group: Development/Libraries
26 Requires: libusb = %{version}
29 Libusb is a library that allows userspace access to USB devices.
38 %if %{?TIZEN_FEATURE_USBHOST_API} == on
39 --enable-usbhost-api \
47 mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d
48 install -m 644 udev/99-usbhost.rules %{buildroot}%{_prefix}/lib/udev/rules.d/99-usbhost.rules
50 %post -p /sbin/ldconfig
52 %postun -p /sbin/ldconfig
55 %manifest %{name}.manifest
57 %license LICENSE.LGPL-2.1+ LICENSE.MIT
60 %{_prefix}/lib/udev/rules.d/99-usbhost.rules
63 %manifest %{name}.manifest
65 %license LICENSE.LGPL-2.1+ LICENSE.MIT
66 %{_includedir}/libusb-1.0
68 %{_libdir}/pkgconfig/*.pc