1 Name: bluetooth-firmware-sprd
2 Summary: firmware and tools for bluetooth
7 Source0: bluetooth-firmware-sprd-%{version}.tar.gz
8 Source1: bluetooth-hciattach@.service
9 Source2: bluetooth-hci-device.service
13 %if "%{?tizen_profile_name}" == "wearable"
14 ExcludeArch: %{arm} %ix86 x86_64
17 %if "%{?tizen_profile_name}"=="tv"
18 ExcludeArch: %{arm} %ix86 x86_64
22 firmware and tools for bluetooth
25 Summary: TM1 firmware and tools for bluetooth
27 Provides: bluetooth-scripts
30 firmware and tools for bluetooth for TM1
33 %setup -q -n bluetooth-firmware-sprd-%{version}
36 export CFLAGS+=" -fpie -fvisibility=hidden"
37 export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
39 cmake ./ -DCMAKE_INSTALL_PREFIX=%{_prefix} -DPLUGIN_INSTALL_PREFIX=%{_prefix}
46 install -D -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/system/bluetooth-hciattach@.service
47 install -D -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-device.service
48 install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/bluetooth-firmware-sprd-TM1
51 rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh
52 ln -s %{_prefix}/etc/bluetooth/bt-dev-start-TM1.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh
55 %defattr(-,root,root,-)
56 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh
57 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-TM1.sh
58 %{_datadir}/license/bluetooth-firmware-sprd-TM1
59 %{_libdir}/systemd/system/bluetooth-hciattach@.service
60 %{_libdir}/systemd/system/bluetooth-hci-device.service