Name: bluetooth-tools
Summary: Bluetooth-tools
Version: 0.2.35
-Release: 3
+Release: 0
Group: Network & Connectivity/Bluetooth
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
-Source1001: bluetooth-address.service
+Source1001: bluetooth-address.service
BuildRequires: cmake
-Requires: bluetooth-tools-no-firmware
Suggests: bluetooth-share
+Requires: tizen-platform-config-tools
+Requires : bluetooth-tools-no-firmware
%description
Tools fo bluetooth run/stop and set address
Summary: On/Off Bluetooth adapter
Group: Network & Connectivity/Bluetooth
Requires: %{name} = %{version}-%{release}
-Requires: rfkill
+Requires: rfkill
Conflicts: bluetooth-firmware-bcm
%description no-firmware
%setup -q
%build
-export CFLAGS+=" -fpie -fvisibility=hidden"
-export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
+export CFLAGS="${CFLAGS} -fpie -fvisibility=hidden"
+export LDFLAGS="${LDFLAGS} -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
-make %{?jobs:-j%jobs}
+%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+%__make %{?_smp_mflags}
%install
rm -rf %{buildroot}