X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fbluetooth-tools.spec;h=d10eb115da62d5a3af2eff27037c4b544464ec80;hb=refs%2Fchanges%2F39%2F89539%2F1;hp=20439de6b125874f397c025d39f13fd75d84a152;hpb=ecb6831625572976a78a5ebdbe32fa0c0dfdb45e;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git diff --git a/packaging/bluetooth-tools.spec b/packaging/bluetooth-tools.spec index 20439de..d10eb11 100644 --- a/packaging/bluetooth-tools.spec +++ b/packaging/bluetooth-tools.spec @@ -1,6 +1,6 @@ Name: bluetooth-tools Summary: Bluetooth-tools -Version: 0.2.35 +Version: 0.2.36 Release: 0 Group: Network & Connectivity/Bluetooth License: Apache-2.0 @@ -9,7 +9,7 @@ Source1001: bluetooth-address.service BuildRequires: cmake Suggests: bluetooth-share Requires: tizen-platform-config-tools -Requires : bluetooth-tools-no-firmware +Requires: bluetooth-scripts %description Tools fo bluetooth run/stop and set address @@ -19,6 +19,7 @@ Summary: On/Off Bluetooth adapter Group: Network & Connectivity/Bluetooth Requires: %{name} = %{version}-%{release} Requires: rfkill +Provides: bluetooth-scripts Conflicts: bluetooth-firmware-bcm %description no-firmware @@ -28,11 +29,36 @@ On/Off bluetooth device %setup -q %build -export CFLAGS="${CFLAGS} -fpie -fvisibility=hidden" -export LDFLAGS="${LDFLAGS} -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie" +export CFLAGS+=" -fpie -fvisibility=hidden" +export CXXFLAGS+=" -fpie -fvisibility=hidden" +export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie" + +%if "%{profile}" == "mobile" +export CFLAGS="$CFLAGS -DTIZEN_MOBILE" +%else +%if "%{profile}" == "wearable" +export CFLAGS="$CFLAGS -DTIZEN_WEARABLE" +%endif +%endif + +%cmake \ +%if "%{profile}" == "mobile" + -DTIZEN_MOBILE=YES \ + -DTIZEN_WEARABLE=NO \ +%else +%if "%{profile}" == "wearable" + -DTIZEN_MOBILE=NO \ + -DTIZEN_WEARABLE=YES \ +%else + -DTIZEN_MOBILE=NO \ + -DTIZEN_WEARABLE=NO \ +%endif +%endif %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} %__make %{?_smp_mflags} +#cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} +#make %{?jobs:-j%jobs} %install rm -rf %{buildroot} @@ -50,11 +76,16 @@ ln -s ../bluetooth-address.service %{buildroot}%{_unitdir}/multi-user.target.wan mkdir -p %{buildroot}%{_prefix}/etc/bluetooth/ install -m 0755 scripts/bt-dev-start.sh %{buildroot}%{_prefix}/etc/bluetooth/bt-dev-start.sh install -m 0755 scripts/bt-dev-end.sh %{buildroot}%{_prefix}/etc/bluetooth/bt-dev-end.sh +install -D -m 0644 LICENSE.APLv2 %{buildroot}%{_datadir}/license/bluetooth-tools %files %manifest %{name}.manifest %defattr(-,root,root,-) +%if "%{profile}" == "mobile" || "%{profile}" == "wearable" +%exclude %{_sysconfdir}/rc.d/init.d/bluetooth-address +%else %{_sysconfdir}/rc.d/init.d/bluetooth-address +%endif %{_sysconfdir}/rc.d/rc3.d/S60bluetooth-address %{_sysconfdir}/rc.d/rc5.d/S60bluetooth-address %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-up.sh @@ -64,7 +95,12 @@ install -m 0755 scripts/bt-dev-end.sh %{buildroot}%{_prefix}/etc/bluetooth/bt-de %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-dev-up.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-mode-on.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-off.sh - +%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-hci-logdump.sh +%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-run-hcidump.sh +%if "%{profile}" == "mobile" +%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-down-with-radio.sh +%endif +%{_datadir}/license/bluetooth-tools %{_unitdir}/multi-user.target.wants/bluetooth-address.service %{_unitdir}/bluetooth-address.service