added systemd post and preun scripts [release 20170127git-2mamba;Fri Mar 03 2017]

This commit is contained in:
Silvan Calarco 2024-01-05 17:31:47 +01:00
parent 2648d91e34
commit ba758734a8

View File

@ -1,6 +1,6 @@
Name: rtl8723bs_bt
Version: 20170127git
Release: 1mamba
Release: 2mamba
Summary: Bluetooth Code for RTL8723bs
Group: System/Kernel and Hardware
Vendor: openmamba
@ -14,6 +14,7 @@ License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%systemd_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@ -38,6 +39,19 @@ 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
@ -48,5 +62,8 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/rtl8723bs_bt.service
%{_sbindir}/rtk_hciattach
%changelog
* 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