From 7351a5d4e0eb0b372b556a02dde7914e90c8dab5 Mon Sep 17 00:00:00 2001 From: taeyoung Date: Fri, 12 Aug 2016 13:22:59 +0900 Subject: [PATCH] usbhost api: disable Tizen usb host apicodes on TV profile - TV profile does not support Tizen usbhost api. Thus the codes related with it are removed on TV profile. Change-Id: Id38ea19827b73ee345cbff43cfc0a4cc347773a1 Signed-off-by: taeyoung --- packaging/libusb.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packaging/libusb.spec b/packaging/libusb.spec index da4d5d9..b3430f5 100644 --- a/packaging/libusb.spec +++ b/packaging/libusb.spec @@ -10,7 +10,9 @@ Source1: baselibs.conf Source1001: libusb.manifest BuildRequires: pkg-config BuildRequires: systemd-devel +%if "%{?profile}" != "tv" BuildRequires: pkgconfig(deviced) +%endif %description Libusb is a library that allows userspace access to USB devices. @@ -31,8 +33,10 @@ cp %{SOURCE1001} . %build %reconfigure\ --with-pic\ - --disable-static\ - --enable-deviced +%if "%{?profile}" != "tv" + --enable-deviced\ +%endif + --disable-static make %{?_smp_mflags} %install -- 2.7.4