diff --git a/README.md b/README.md index 14bc50c..5009f78 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # pi-bluetooth +Loads BCM43430A1 firmware on boot. diff --git a/pi-bluetooth.spec b/pi-bluetooth.spec new file mode 100644 index 0000000..50c81a9 --- /dev/null +++ b/pi-bluetooth.spec @@ -0,0 +1,64 @@ +Name: pi-bluetooth +Version: 0.20210420 +Release: 2mamba +Summary: Loads BCM43430A1 firmware on boot +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/RPi-Distro/pi-bluetooth +Source: https://github.com/RPi-Distro/pi-bluetooth.git/master/pi-bluetooth-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires: bluez + +%description +Loads BCM43430A1 firmware on boot. + +#% debug_package + +%prep +%setup -q +sed -i "s|dev.serial1|dev/ttyAMA0|" usr/bin/* debian/*.service + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_bindir} +cp usr/bin/* %{buildroot}%{_bindir}/ + +install -D -m0644 debian/pi-bluetooth.bthelper@.service %{buildroot}%{_unitdir}/pi-bluetooth.bthelper@.service +install -D -m0644 debian/pi-bluetooth.hciuart.service %{buildroot}%{_unitdir}/pi-bluetooth.hciuart.service +install -D -m0644 lib/udev/rules.d/90-pi-bluetooth.rules %{buildroot}%{_udevrulesdir}/90-pi-bluetooth.rules + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%preun +%systemd_preun pi-bluetooth.hciuart +: + +%postun +%systemd_postun pi-bluetooth.hciuart +: + +%post +%systemd_post pi-bluetooth.hciuart +: + +%files +%defattr(-,root,root) +%{_bindir}/bthelper +%{_bindir}/btuart +%{_unitdir}/pi-bluetooth.bthelper@.service +%{_unitdir}/pi-bluetooth.hciuart.service +%{_udevrulesdir}/90-pi-bluetooth.rules + +%changelog +* Tue Apr 20 2021 Silvan Calarco 0.20210420-2mamba +- rebuilt with fixes + +* Tue Apr 20 2021 Silvan Calarco 0.20210420-1mamba +- package created using the webbuild interface