Version: 0.2.0
Release: 1
Group: Hardware Support/Handset
-License: Apache-2.0
+License: Apache-2.0 and Broadcom
# 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
%description exynos7270
BT firmware and tools for exynos7270
+%package rpi3
+Summary: bcm firmware and tools for rpi3
+Group: Hardware Support/Handset
+Provides: bluetooth-scripts
+
+%description rpi3
+BT firmware and tools for rpi3
+
%prep
%setup -q
%{_libdir}/systemd/system/bluetooth-hciattach@.service
%{_libdir}/systemd/system/bluetooth-hci-device.service
%manifest %{name}.manifest
+
+%post rpi3
+rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh
+rm -rf %{_prefix}/etc/bluetooth/bt-dev-end.sh
+ln -s %{_prefix}/etc/bluetooth/bt-dev-start-rpi3.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh
+ln -s %{_prefix}/etc/bluetooth/bt-dev-end-rpi3.sh %{_prefix}/etc/bluetooth/bt-dev-end.sh
+mkdir -p /lib/firmware/brcm
+ln -s %{_prefix}/etc/bluetooth/BCM43430A1.hcd /lib/firmware/brcm/
+ln -s %{_prefix}/etc/bluetooth/BCM4345C0.hcd /lib/firmware/brcm/
+
+%files rpi3
+%manifest %{name}.manifest
+%license LICENSE.APLv2 LICENSE.Broadcom
+%defattr(-,root,root,-)
+%{_prefix}/etc/bluetooth/BCM43430A1.hcd
+%{_prefix}/etc/bluetooth/BCM4345C0.hcd
+%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end-rpi3.sh
+%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-rpi3.sh
+%manifest %{name}.manifest