1 Name: bluetooth-firmware-sprd
2 Summary: firmware and tools for bluetooth
7 Source0: bluetooth-firmware-sprd-%{version}.tar.gz
10 BuildRequires: pkgconfig(dlog)
11 BuildRequires: pkgconfig(hal-api-common)
12 BuildRequires: pkgconfig(hal-api-bluetooth)
15 firmware and tools for bluetooth
18 Summary: TM1 firmware and tools for bluetooth
20 Provides: bluetooth-scripts
23 firmware and tools for bluetooth for TM1
26 %setup -q -n bluetooth-firmware-sprd-%{version}
29 export CFLAGS+=" -fpie -fvisibility=hidden"
30 export CXXFLAGS+=" -fpie -fvisibility=hidden"
31 export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
33 cmake ./ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
34 -DPLUGIN_INSTALL_PREFIX=%{_prefix} \
35 -DHAL_LIB_DIR=%{_hal_libdir} \
36 -DHAL_LICENSE_DIR=%{_hal_licensedir} \
37 -DHAL_SYSCONF_DIR=%{_hal_sysconfdir}
45 rm -rf %{_hal_sysconfdir}/bluetooth/bt-dev-start.sh
46 ln -s %{_hal_sysconfdir}/bluetooth/bt-dev-start-TM1.sh %{_hal_sysconfdir}/bluetooth/bt-dev-start.sh
49 %manifest %{name}.manifest
50 %{_hal_licensedir}/%{name}/LICENSE
51 %{_hal_sysconfdir}/bluetooth/bt-dev-end.sh
52 %{_hal_sysconfdir}/bluetooth/bt-dev-start-TM1.sh