rtl8723bs_bt/rtl8723bs_bt.spec

73 lines
1.9 KiB
RPMSpec

Name: rtl8723bs_bt
Version: 20170127git
Release: 3mamba
Summary: Bluetooth Code for RTL8723bs
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/lwfinger/rtl8723bs_bt
## GITSOURCE https://github.com/lwfinger/rtl8723bs_bt.git master
Source: https://github.com/lwfinger/rtl8723bs_bt.git/master/rtl8723bs_bt-%{version}.tar.bz2
Source1: rtl8723bs_bt.service
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%systemd_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Programs and firmware to operate the Bluetooth section of the RTL8723BS hardware used on a number of tablets.
%debug_package
%prep
%setup -q
%build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0775 %{buildroot}/lib/firmware/rtl_bt
cp -p rtlbt_* %{buildroot}/lib/firmware/rtl_bt/
install -D -m0755 rtk_hciattach %{buildroot}%{_sbindir}/rtk_hciattach
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/rtl8723bs_bt.service
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%systemd_post rtl8723bs_bt
systemctl -q daemon-reload
:
%preun
%systemd_preun rtl8723bs_bt
:
%postun
%systemd_postun rtl8723bs_bt
:
%files
%defattr(-,root,root)
#%dir /lib/firmware/rtl_bt
/lib/firmware/rtl_bt/rtlbt_config
/lib/firmware/rtl_bt/rtlbt_fw
/lib/firmware/rtl_bt/rtlbt_fw_new
%{_unitdir}/rtl8723bs_bt.service
%{_sbindir}/rtk_hciattach
%changelog
* Sat Jul 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 20170127git-3mamba
- don't own /lib/firmware/rtl_bt conflicting with linux-firmware since rpm4
* Fri Mar 03 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20170127git-2mamba
- added systemd post and preun scripts
* Fri Jan 27 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 20170127git-1mamba
- package created using the webbuild interface