Name: bluetooth-firmware-bcm Summary: firmware and tools for bluetooth Version: 0.2.0 Release: 1 Group: Hardware Support/Handset License: Apache-2.0 # NOTE: Source name does not match package name. This should be # resolved in the future, by I don't have that power. - Ryan Ware Source0: %{name}-%{version}.tar.gz Source1: bluetooth-hciattach@.service Source2: bluetooth-hci-device.service Provides: bluetooth-scripts BuildRequires: pkgconfig(vconf) BuildRequires: cmake %description firmware and tools for bluetooth %package exynos3250 Summary: bcm firmware and tools for exynos3250 Group: Hardware Support/Handset Provides: bluetooth-scripts %description exynos3250 bcm firmware and tools for exynos3250 %package artik Summary: bcm firmware and tools for artik Group: Hardware Support/Handset Provides: bluetooth-scripts %description artik bcm firmware and tools for artik %package exynos7270 Summary: bcm firmware and tools for exynos7270 Group: Hardware Support/Handset Provides: bluetooth-scripts %description exynos7270 BT firmware and tools for exynos7270 %prep %setup -q %build cmake ./ -DCMAKE_INSTALL_PREFIX=%{_prefix} -DPLUGIN_INSTALL_PREFIX=%{_prefix} make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %make_install install -D -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/system/bluetooth-hciattach@.service install -D -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-device.service %files %manifest %{name}.manifest %license LICENSE.APLv2 LICENSE.Broadcom %defattr(-,root,root,-) #%{_bindir}/bcmtool_4330b1 %exclude %{_bindir}/bcmtool_4343w %{_bindir}/bcmtool_4358a1 %{_bindir}/setbd #%{_prefix}/etc/bluetooth/BT_FW_BCM4330B1_002.001.003.0221.0265.hcd %{_prefix}/etc/bluetooth/BT_FW_BCM4358A1_001.002.005.0032.0066.hcd %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh %exclude %{_libdir}/systemd/system/bluetooth-hciattach@.service %exclude %{_libdir}/systemd/system/bluetooth-hci-device.service %manifest %{name}.manifest %post exynos3250 rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh ln -s %{_prefix}/etc/bluetooth/bt-dev-start-exynos3250.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh %files exynos3250 %manifest %{name}.manifest %license LICENSE.APLv2 LICENSE.Broadcom %defattr(-,root,root,-) %{_bindir}/bcmtool_4343w %{_bindir}/setbd %{_prefix}/etc/bluetooth/BCM4343A1_001.002.009.0035.0096_ORC_Orbis_WC1-S.hcd %{_prefix}/etc/bluetooth/BCM4343A1_001.002.009.0022.0050_Murata_Type-1FR.hcd %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-exynos3250.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh %{_libdir}/systemd/system/bluetooth-hciattach@.service %{_libdir}/systemd/system/bluetooth-hci-device.service %manifest %{name}.manifest %post artik rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh ln -s %{_prefix}/etc/bluetooth/bt-dev-start-artik.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh %files artik %manifest %{name}.manifest %license LICENSE.APLv2 LICENSE.Broadcom %defattr(644,root,root,-) %{_bindir}/brcm_patchram_plus %{_bindir}/setbd %{_prefix}/etc/bluetooth/BCM4354_003.001.012.0353.0745_Samsung_Artik_ORC.hcd %{_prefix}/etc/bluetooth/BCM4345C0_003.001.025.0111.0205.hcd %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-artik.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh %{_libdir}/systemd/system/bluetooth-hciattach@.service %{_libdir}/systemd/system/bluetooth-hci-device.service %manifest %{name}.manifest %post exynos7270 rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh ln -s %{_prefix}/etc/bluetooth/bt-dev-start-exynos7270.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh rm -rf /lib/firmware/43012B0.hex ln -s /lib/firmware/bcm43012/BCM43012B0_002.001.021.0081.0087.hex /lib/firmware/43012B0.hex %files exynos7270 %manifest %{name}.manifest %license LICENSE.APLv2 LICENSE.Broadcom %defattr(-,root,root,-) %{_bindir}/setbd /lib/firmware/bcm43012/BCM43012B0_002.001.021.0081.0087.hex %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-exynos7270.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh %{_libdir}/systemd/system/bluetooth-hciattach@.service %{_libdir}/systemd/system/bluetooth-hci-device.service %manifest %{name}.manifest