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
14 firmware and tools for bluetooth
17 Summary: TM1 firmware and tools for bluetooth
19 Provides: bluetooth-scripts
22 firmware and tools for bluetooth for TM1
25 %setup -q -n bluetooth-firmware-sprd-%{version}
28 export CFLAGS+=" -fpie -fvisibility=hidden"
29 export CXXFLAGS+=" -fpie -fvisibility=hidden"
30 export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
32 cmake ./ -DCMAKE_INSTALL_PREFIX=%{_prefix} -DPLUGIN_INSTALL_PREFIX=%{_prefix}
39 install -D -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/system/bluetooth-hciattach@.service
40 install -D -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-device.service
41 install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/bluetooth-firmware-sprd-TM1
44 rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh
45 ln -s %{_prefix}/etc/bluetooth/bt-dev-start-TM1.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh
48 %defattr(-,root,root,-)
49 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh
50 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-TM1.sh
51 %{_datadir}/license/bluetooth-firmware-sprd-TM1
52 %{_libdir}/systemd/system/bluetooth-hciattach@.service
53 %{_libdir}/systemd/system/bluetooth-hci-device.service