X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fbluetooth-tools.spec;h=f5c7e736dcf5774731c16b9c609eeed3de025b4b;hb=refs%2Ftags%2Fsubmit%2Ftizen_mobile%2F20150401.025911;hp=6aebbaef2c4015c05b6cd2528b2738912c8a0dbd;hpb=d702afc6f86d1506d552dd1a095c1b03df97d865;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git diff --git a/packaging/bluetooth-tools.spec b/packaging/bluetooth-tools.spec index 6aebbae..f5c7e73 100644 --- a/packaging/bluetooth-tools.spec +++ b/packaging/bluetooth-tools.spec @@ -1,16 +1,28 @@ Name: bluetooth-tools -Summary: bluetooth-tools +Summary: Bluetooth-tools Version: 0.2.35 -Release: 3 -Group: TO_BE/FILLED_IN -License: Apache License, Version 2.0 +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 +Suggests: bluetooth-share +Requires: tizen-platform-config-tools +Requires : bluetooth-tools-no-firmware %description Tools fo bluetooth run/stop and set address +%package no-firmware +Summary: On/Off Bluetooth adapter +Group: Network & Connectivity/Bluetooth +Requires: %{name} = %{version}-%{release} +Requires: rfkill +Conflicts: bluetooth-firmware-bcm + +%description no-firmware +On/Off bluetooth device %prep %setup -q @@ -19,8 +31,28 @@ Tools fo bluetooth run/stop and set address export CFLAGS+=" -fpie -fvisibility=hidden" export 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} +%if "%{profile}" == "mobile" +export CFLAGS="$CFLAGS -DTIZEN_MOBILE" +%elseif "%{profile}" == "wearable" +export CFLAGS="$CFLAGS -DTIZEN_WEARABLE" +%endif + +%cmake \ +%if "%{profile}" == "mobile" + -DTIZEN_MOBILE=YES \ + -DTIZEN_WEARABLE=NO \ +%elseif "%{profile}" == "wearable" + -DTIZEN_MOBILE=NO \ + -DTIZEN_WEARABLE=YES \ +%else + -DTIZEN_MOBILE=NO \ + -DTIZEN_WEARABLE=NO \ +%endif + +%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} +%__make %{?_smp_mflags} +#cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} +#make %{?jobs:-j%jobs} %install rm -rf %{buildroot} @@ -31,13 +63,17 @@ mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d ln -s %{_sysconfdir}/rc.d/init.d/bluetooth-address %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S60bluetooth-address ln -s %{_sysconfdir}/rc.d/init.d/bluetooth-address %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S60bluetooth-address -mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants -install -m 0644 %{SOURCE1001} %{buildroot}%{_libdir}/systemd/system/ -ln -s ../bluetooth-address.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/bluetooth-address.service +mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants +install -m 0644 %{SOURCE1001} %{buildroot}%{_unitdir} +ln -s ../bluetooth-address.service %{buildroot}%{_unitdir}/multi-user.target.wants/bluetooth-address.service +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 bluetooth-tools.manifest +%manifest %{name}.manifest %defattr(-,root,root,-) %{_sysconfdir}/rc.d/init.d/bluetooth-address %{_sysconfdir}/rc.d/rc3.d/S60bluetooth-address @@ -49,6 +85,14 @@ ln -s ../bluetooth-address.service %{buildroot}%{_libdir}/systemd/system/multi-u %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 -%{_libdir}/systemd/system/multi-user.target.wants/bluetooth-address.service -%{_libdir}/systemd/system/bluetooth-address.service +%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-hci-logdump.sh +%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-run-hcidump.sh +%{_datadir}/license/bluetooth-tools +%{_unitdir}/multi-user.target.wants/bluetooth-address.service +%{_unitdir}/bluetooth-address.service +%files no-firmware +%manifest %{name}.manifest +%defattr(-, root, root) +%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh +%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start.sh