[Tizen-submit] 8121: New package Tizen/bluetooth-tools

noreply at tizen.org noreply at tizen.org
Tue Aug 13 17:26:06 GMT 2013


Hi,
Adding new package bluetooth-tools in project Tizen. Please review and accept ASAP.

Justification for this new package:

Submitter: Prajwal Mohan <prajwal.karur.mohan at intel.com>
Comments: submit/tizen/20130813.173210
Git project: platform/core/connectivity/bluetooth-tools
Tag: submit/tizen/20130813.173210
Commit: d702afc6f86d1506d552dd1a095c1b03df97d865 Merge branch 'master' into tizen_2.1

Thank You,
Prajwal Mohan

[This message was auto-generated]

---

Request: #8121

  submit:       Tizen:build/bluetooth-tools(cleanup) -> Tizen


Message:
Submitter: Prajwal Mohan <prajwal.karur.mohan at intel.com>
Comments: submit/tizen/20130813.173210
Git project: platform/core/connectivity/bluetooth-tools
Tag: submit/tizen/20130813.173210
Commit: d702afc6f86d1506d552dd1a095c1b03df97d865 Merge branch 'master' into tizen_2.1

State:   new        2013-08-13T10:22:47 tizenrobot
Comment: <no comment>
new:
----
  bluetooth-address.service
  bluetooth-tools-0.2.35.tar.gz
  bluetooth-tools.spec

spec files:
-----------

++++++ new spec file:
--- bluetooth-tools.spec
+++ bluetooth-tools.spec
@@ -0,0 +1,55 @@
+Name:       bluetooth-tools
+Summary:    bluetooth-tools
+Version:    0.2.35
+Release:    3
+VCS:        platform/core/connectivity/bluetooth-tools#submit/tizen/20130813.173210-0-gd702afc6f86d1506d552dd1a095c1b03df97d865
+Group:      TO_BE/FILLED_IN
+License:    Apache License, Version 2.0
+Source0:    %{name}-%{version}.tar.gz
+Source1001:	bluetooth-address.service
+BuildRequires:  cmake
+
+%description
+Tools fo bluetooth run/stop and set address
+
+
+%prep
+%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"
+
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d
+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
+
+
+%files
+%manifest bluetooth-tools.manifest
+%defattr(-,root,root,-)
+%{_sysconfdir}/rc.d/init.d/bluetooth-address
+%{_sysconfdir}/rc.d/rc3.d/S60bluetooth-address
+%{_sysconfdir}/rc.d/rc5.d/S60bluetooth-address
+%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-up.sh
+%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-down.sh
+%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-reset-env.sh
+%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-on.sh
+%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
+

other changes:
--------------

++++++ bluetooth-address.service (new)
--- bluetooth-address.service
+++ bluetooth-address.service
@@ -0,0 +1,15 @@
+# this Unit set Bluetooth Address, some application use the address although bluetooth doesn't turn on.
+# especially, OSP API use it as such way.
+#
+
+[Unit]
+Description=Generate Bluetooth Address
+
+[Service]
+Type=oneshot
+ExecStart=/usr/etc/bluetooth/bt-set-addr.sh

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list