+%define TIZEN_FEATURE_USBHOST_API on
+
Name: libusb
-Version: 1.0.19
+Version: 1.0.21
Release: 0
-License: LGPL-2.1+
+License: LGPL-2.1+, MIT
Summary: USB Library
Url: http://www.libusb.org/
Group: Base/Device Management
Source1001: libusb.manifest
BuildRequires: pkg-config
BuildRequires: systemd-devel
-%if "%{?profile}" != "tv"
-BuildRequires: pkgconfig(deviced)
+%if %{?TIZEN_FEATURE_USBHOST_API} == on
+BuildRequires: pkgconfig(dbus-1)
%endif
%description
%build
%reconfigure\
--with-pic\
-%if "%{?profile}" != "tv"
- --enable-deviced\
+%if %{?TIZEN_FEATURE_USBHOST_API} == on
+ --enable-usbhost-api \
%endif
--disable-static
make %{?_smp_mflags}
%install
%make_install
+# usbhost_module
+mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d
+install -m 644 udev/99-usbhost.rules %{buildroot}%{_prefix}/lib/udev/rules.d/99-usbhost.rules
%post -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%defattr(-,root,root)
-%license COPYING
+%license LICENSE.LGPL-2.1+ LICENSE.MIT
%{_libdir}/*.so.*
+# usbhost_module
+%{_prefix}/lib/udev/rules.d/99-usbhost.rules
%files devel
%manifest %{name}.manifest
%defattr(-,root,root)
+%license LICENSE.LGPL-2.1+ LICENSE.MIT
%{_includedir}/libusb-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc