2 Summary: bluetooth-tools
6 License: Apache License, Version 2.0
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: bluetooth-address.service
12 Tools fo bluetooth run/stop and set address
19 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
26 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d
27 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d
28 ln -s %{_sysconfdir}/rc.d/init.d/bluetooth-address %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S60bluetooth-address
29 ln -s %{_sysconfdir}/rc.d/init.d/bluetooth-address %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S60bluetooth-address
31 mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
32 install -m 0644 %{SOURCE1001} %{buildroot}%{_libdir}/systemd/system/
33 ln -s ../bluetooth-address.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/bluetooth-address.service
37 %manifest bluetooth-tools.manifest
38 %defattr(-,root,root,-)
39 %{_sysconfdir}/rc.d/init.d/bluetooth-address
40 %{_sysconfdir}/rc.d/rc3.d/S60bluetooth-address
41 %{_sysconfdir}/rc.d/rc5.d/S60bluetooth-address
42 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-up.sh
43 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-down.sh
44 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-reset-env.sh
45 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-on.sh
46 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-dev-up.sh
47 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-mode-on.sh
48 %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-off.sh
49 %{_libdir}/systemd/system/multi-user.target.wants/bluetooth-address.service
50 %{_libdir}/systemd/system/bluetooth-address.service